1# ArkUI_NodeTouchPoint 2 3 4## 概述 5 6定义Touch事件触控点信息的数据结构。 7 8**起始版本:** 12 9 10**相关模块:**[ArkUI_NativeModule](_ark_u_i___native_module.md) 11 12 13## 汇总 14 15 16### 成员变量 17 18| 名称 | 描述 | 19| -------- | -------- | 20| int32_t [id](#id) | 触控事件标识。 | 21| int64_t [pressedTime](#pressedtime) | 手指按下的时间戳,单位为微秒(us)。 | 22| int32_t [screenX](#screenx) | 触摸位置所属的屏幕X坐标。 | 23| int32_t [screenY](#screeny) | 触摸位置所属的屏幕Y坐标。 | 24| int32_t [windowX](#windowx) | 触摸位置在窗口中的X坐标。 | 25| int32_t [windowY](#windowy) | 触摸位置在窗口中的Y坐标。 | 26| int32_t [nodeX](#nodex) | 触摸位置在当前触发事件组件中的X坐标。 | 27| int32_t [nodeY](#nodey) | 触摸位置在当前触发事件组件中的Y坐标。 | 28| double [pressure](#pressure) | 压力值,取值范围是[0.0, 1.0],0.0表示不支持。 | 29| int32_t [contactAreaWidth](#contactareawidth) | 触摸区域的宽度。 | 30| int32_t [contactAreaHeight](#contactareaheight) | 触摸区域的高度。 | 31| double [tiltX](#tiltx) | 相对YZ平面的角度,取值范围是[-90, 90],其中正值是向右倾斜。 | 32| double [tiltY](#tilty) | 相对XZ平面的角度,取值范围是[-90, 90],其中正值是向下倾斜。 | 33| int32_t [toolX](#toolx) | 工具区域的中心点X坐标。 | 34| int32_t [toolY](#tooly) | 工具区域的中心点Y坐标。 | 35| int32_t [toolWidth](#toolwidth) | 工具接触区域的宽度。 | 36| int32_t [toolHeight](#toolheight) | 工具接触区域的高度。 | 37| int32_t [rawX](#rawx) | 输入设备上的X坐标。 | 38| int32_t [rawY](#rawy) | 输入设备上的Y坐标。 | 39| [ArkUI_NodeToolType](_ark_u_i___native_module.md#arkui_nodetooltype)[toolType](#tooltype) | 工具类型。 | 40 41 42## 结构体成员变量说明 43 44 45### contactAreaHeight 46 47``` 48int32_t ArkUI_NodeTouchPoint::contactAreaHeight 49``` 50**描述:** 51 52触摸区域的高度。 53 54 55### contactAreaWidth 56 57``` 58int32_t ArkUI_NodeTouchPoint::contactAreaWidth 59``` 60**描述:** 61 62触摸区域的宽度。 63 64 65### id 66 67``` 68int32_t ArkUI_NodeTouchPoint::id 69``` 70**描述:** 71 72触控事件标识。 73 74 75### nodeX 76 77``` 78int32_t ArkUI_NodeTouchPoint::nodeX 79``` 80**描述:** 81 82触摸位置在当前触发事件组件中的X坐标。 83 84 85### nodeY 86 87``` 88int32_t ArkUI_NodeTouchPoint::nodeY 89``` 90**描述:** 91 92触摸位置在当前触发事件组件中的Y坐标。 93 94 95### pressedTime 96 97``` 98int64_t ArkUI_NodeTouchPoint::pressedTime 99``` 100**描述:** 101 102手指按下的时间戳,单位为微秒(us)。 103 104 105### pressure 106 107``` 108double ArkUI_NodeTouchPoint::pressure 109``` 110**描述:** 111 112压力值,取值范围是[0.0, 1.0],0.0表示不支持。 113 114 115### rawX 116 117``` 118int32_t ArkUI_NodeTouchPoint::rawX 119``` 120**描述:** 121 122输入设备上的X坐标。 123 124 125### rawY 126 127``` 128int32_t ArkUI_NodeTouchPoint::rawY 129``` 130**描述:** 131 132输入设备上的Y坐标。 133 134 135### screenX 136 137``` 138int32_t ArkUI_NodeTouchPoint::screenX 139``` 140**描述:** 141 142触摸位置所属的屏幕X坐标。 143 144 145### screenY 146 147``` 148int32_t ArkUI_NodeTouchPoint::screenY 149``` 150**描述:** 151 152触摸位置所属的屏幕Y坐标。 153 154 155### tiltX 156 157``` 158double ArkUI_NodeTouchPoint::tiltX 159``` 160 161**描述:** 162 163相对YZ平面的角度,取值范围是[-90, 90],其中正值是向右倾斜。 164 165 166### tiltY 167 168``` 169double ArkUI_NodeTouchPoint::tiltY 170``` 171**描述:** 172 173相对XZ平面的角度,取值范围是[-90, 90],其中正值是向下倾斜。 174 175 176### toolHeight 177 178``` 179int32_t ArkUI_NodeTouchPoint::toolHeight 180``` 181**描述:** 182 183工具接触区域的高度。 184 185 186### toolType 187 188``` 189ArkUI_NodeToolType ArkUI_NodeTouchPoint::toolType 190``` 191**描述:** 192 193工具类型。 194 195 196### toolWidth 197 198``` 199int32_t ArkUI_NodeTouchPoint::toolWidth 200``` 201**描述:** 202 203工具接触区域的宽度。 204 205 206### toolX 207 208``` 209int32_t ArkUI_NodeTouchPoint::toolX 210``` 211**描述:** 212 213工具区域的中心点X坐标。 214 215 216### toolY 217 218``` 219int32_t ArkUI_NodeTouchPoint::toolY 220``` 221**描述:** 222 223工具区域的中心点Y坐标。 224 225 226### windowX 227 228``` 229int32_t ArkUI_NodeTouchPoint::windowX 230``` 231**描述:** 232 233触摸位置在窗口中的X坐标。 234 235 236### windowY 237 238``` 239int32_t ArkUI_NodeTouchPoint::windowY 240``` 241**描述:** 242 243触摸位置在窗口中的Y坐标。 244