# ArkUI_IntOffset

> phone 12+ | 2in1 13+ | tablet 12+ | tv 19+ | wearable 18+

```c
typedef struct {...} ArkUI_IntOffset
```

## 概述

> phone | 2in1 | tablet | tv | wearable

偏移量，用于描述当前组件相对于父组件的位置。

**起始版本：** 12

**相关模块：** [ArkUI_NativeModule](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/capi-arkui-nativemodule)

**所在头文件：** [common_type.h](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/capi-common-type-h)

## 汇总

> phone | 2in1 | tablet | tv | wearable

### 成员变量

> phone | 2in1 | tablet | tv | wearable

|名称|描述|
|:--------|:-----------------------------------|
|int32_t x|水平方向的偏移量，单位为px。x为正数时组件向右偏移，为负数时向左偏移。|
|int32_t y|竖直方向的偏移量，单位为px。y为正数时组件向下偏移，为负数时向上偏移。|

