openharmony 鸿蒙 capi-oh-nativexcomponent-native-xcomponent-oh-nativexcomponent-mouseevent

2026-08-25 浏览 (1)

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

NameDescription
float xX coordinate of the clicked point relative to the upper left corner of the component. Unit: vp.
float yY coordinate of the clicked point relative to the upper left corner of the component. Unit: vp.
float screenXX coordinate of the click point relative to the upper left corner of the application screen where the XComponent is located. Unit: vp.
float screenYY coordinate of the click point relative to the upper left corner of the application screen where the XComponent is located. Unit: vp.
int64_t timestampTimestamp 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 actionAction of the mouse event.
OH_NativeXComponent_MouseEventButton buttonButton 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

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/wypHzxT6