OH_NativeXComponent_MouseEvent
typedef struct {...} OH_NativeXComponent_MouseEvent
Overview
Defines a mouse event.
Since: 9
Related module: OH_NativeXComponent Native XComponent
Header file: native_interface_xcomponent.h
Summary
Member Variables
| Name | Description |
|---|---|
| float x | X coordinate of the clicked point relative to the upper left corner of the component. Unit: vp. |
| float y | Y coordinate of the clicked point relative to the upper left corner of the component. Unit: vp. |
| float screenX | X coordinate of the click point relative to the upper left corner of the application screen where the XComponent is located. Unit: vp. |
| float screenY | Y coordinate of the click point relative to the upper left corner of the application screen where the XComponent is located. Unit: vp. |
| int64_t timestamp | Timestamp of the mouse event. It is interval between the time when the event is triggered and the time when the system starts, in nanoseconds. |
| OH_NativeXComponent_MouseEventAction action | Action of the mouse event. |
| OH_NativeXComponent_MouseEventButton button | Button of the mouse event. |
你可能感兴趣的鸿蒙文章
openharmony 鸿蒙 arkts-apis-uicontext-contextmenucontroller
openharmony 鸿蒙 errorcode-canvas
openharmony 鸿蒙 capi-oh-nativexcomponent-native-xcomponent-oh-nativexcomponent
openharmony 鸿蒙 errorcode-bindSheet
openharmony 鸿蒙 js-apis-arkui-uiExtension-sys
openharmony 鸿蒙 capi-arkui-accessibility-arkui-accessibilityeventinfo
openharmony 鸿蒙 capi-arkui-rendernodeutils
openharmony 鸿蒙 js-apis-arkui-node
openharmony 鸿蒙 capi-native-node-h
openharmony 鸿蒙 capi-arkui-nativemodule-arkui-listitemswipeactionitem