harmony 鸿蒙OH_NativeXComponent_MouseEvent

  • 2022-10-28
  • 浏览 (363)

OH_NativeXComponent_MouseEvent

概述

鼠标事件。

起始版本:

9

相关模块:

Native XComponent

汇总

成员变量

成员变量名称 描述
x = 0.0 点击触点相对于当前组件左上角的x轴坐标。
y = 0.0 点击触点相对于当前组件左上角的y轴坐标。
screenX = 0.0 点击触点相对于XComponent所在应用窗口左上角的x轴坐标。
screenY = 0.0 点击触点相对于XComponent所在应用窗口左上角的y轴坐标。
timestamp = 0 当前鼠标事件的时间戳。
action = OH_NativeXComponent_MouseEventAction::OH_NATIVEXCOMPONENT_MOUSE_NONE 当前鼠标事件动作。
button = OH_NativeXComponent_MouseEventButton::OH_NATIVEXCOMPONENT_NONE_BUTTON 鼠标事件按键。

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Native API

harmony 鸿蒙AVCapability

harmony 鸿蒙AVDemuxer

harmony 鸿蒙AVMuxer

harmony 鸿蒙AVScreenCapture

harmony 鸿蒙AVSource

harmony 鸿蒙AudioDecoder

harmony 鸿蒙AudioEncoder

harmony 鸿蒙CodecBase

harmony 鸿蒙Core

0  赞