目录

ArkUI_IntOffset

typedef struct {...} ArkUI_IntOffset

Overview

Defines an offset, which describes the position of the current component relative to its parent component.

Since: 12

Related module: ArkUI_NativeModule

Header file: native_type.h

Summary

[h2]Member Variables

Name Description
int32_t x Horizontal offset, in px. A positive value means the component moves right, and a negative value means it moves left.
int32_t y Vertical offset, in px. A positive value means the component moves down, and a negative value means it moves up.