harmony 鸿蒙OH_NativeXComponent_MouseEvent

  • 2025-06-12
  • 浏览 (5)

OH_NativeXComponent_MouseEvent

Overview

Describes the mouse event.

Since:

9

Related Modules:

Native XComponent

Summary

Member Variables

Name Description
x = 0.0 X coordinate of the clicked point relative to the upper left corner of the component.
y = 0.0 Y coordinate of the clicked point relative to the upper left corner of the component.
screenX = 0.0 X coordinate of the clicked point relative to the upper left corner of the screen.
screenY = 0.0 Y coordinate of the clicked point relative to the upper left corner of the screen.
timestamp = 0 Timestamp of the current mouse event. It is interval between the time when the event is triggered and the time when the system starts, in nanoseconds.
action = OH_NativeXComponent_MouseEventAction::OH_NATIVEXCOMPONENT_MOUSE_NONE Current mouse event action.
button = OH_NativeXComponent_MouseEventButton::OH_NATIVEXCOMPONENT_NONE_BUTTON Mouse event button

你可能感兴趣的鸿蒙文章

harmony 鸿蒙ArkUI

harmony 鸿蒙ARKUI_TextPickerCascadeRangeContent

harmony 鸿蒙ARKUI_TextPickerRangeContent

harmony 鸿蒙ArkUI_AnimateCompleteCallback

harmony 鸿蒙ArkUI_AttributeItem

harmony 鸿蒙ArkUI_ColorStop

harmony 鸿蒙ArkUI_ContextCallback

harmony 鸿蒙ArkUI_EventModule

harmony 鸿蒙ArkUI_ExpectedFrameRateRange

harmony 鸿蒙ArkUI_IntOffset

0  赞