• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# OH_NativeXComponent_MouseEvent
2<!--Kit: ArkUI-->
3<!--Subsystem: ArkUI-->
4<!--Owner: @zjsxstar-->
5<!--Designer: @sunbees-->
6<!--Tester: @liuli0427-->
7<!--Adviser: @HelloCrease-->
8
9## 概述
10
11鼠标事件。
12
13**起始版本:** 9
14
15**相关模块:** [OH_NativeXComponent Native XComponent](capi-oh-nativexcomponent-native-xcomponent.md)
16
17**所在头文件:** [native_interface_xcomponent.h](capi-native-interface-xcomponent-h.md)
18
19## 汇总
20
21### 成员变量
22
23| 名称 | 描述 |
24| -- | -- |
25| float x | 点击触点相对于当前组件左上角的x轴坐标。 |
26| float y | 点击触点相对于当前组件左上角的y轴坐标。 |
27| float screenX | 点击触点相对于XComponent所在应用屏幕左上角的x轴坐标。 |
28| float screenY | 点击触点相对于XComponent所在应用屏幕左上角的y轴坐标。 |
29| int64_t timestamp | 当前鼠标事件的时间戳。触发事件时距离系统启动的时间间隔,单位纳秒。 |
30| [OH_NativeXComponent_MouseEventAction](capi-native-interface-xcomponent-h.md#oh_nativexcomponent_mouseeventaction) action | 当前鼠标事件动作。 |
31| [OH_NativeXComponent_MouseEventButton](capi-native-interface-xcomponent-h.md#oh_nativexcomponent_mouseeventbutton) button | 鼠标事件按键。 |
32
33
34