harmony 鸿蒙OH_NativeXComponent_TouchEvent
OH_NativeXComponent_TouchEvent
Overview
Defines the touch event.
Since: 8
Related module: Native XComponent
Summary
Member Variables
Name | Description |
---|---|
int32_t id = 0 | Unique identifier of the finger. |
float screenX = 0.0 | X coordinate of the touch point relative to the upper left corner of the application window where the XComponent is located. |
float screenY = 0.0 | Y coordinate of the touch point relative to the upper left corner of the application window where the XComponent is located. |
float x = 0.0 | X coordinate of the touch point relative to the left edge of the XComponent. |
float y = 0.0 | Y coordinate of the touch point relative to the upper edge of the XComponent. |
OH_NativeXComponent_TouchEventTypetype = OH_NativeXComponent_TouchEventType::OH_NATIVEXCOMPONENT_UNKNOWN | Touch type of the touch event. |
double size = 0.0 | Contact area between the finger pad and the screen. |
float force = 0.0 | Pressure of the touch event. |
int64_t deviceId = 0 | ID of the device where the current touch event is triggered. |
long long timeStamp = 0 | Timestamp of the touch point. It is interval between the time when the event is triggered and the time when the system starts, in nanoseconds. |
OH_NativeXComponent_TouchPoint touchPoints [OH_MAX_TOUCH_POINTS_NUMBER] | Array of the touch points. |
uint32_t numPoints = 0 | Number of current touch points. |
你可能感兴趣的鸿蒙文章
harmony 鸿蒙ARKUI_TextPickerCascadeRangeContent
harmony 鸿蒙ARKUI_TextPickerRangeContent
harmony 鸿蒙ArkUI_AnimateCompleteCallback
harmony 鸿蒙ArkUI_ContextCallback
0
赞
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦