harmony 鸿蒙OH_NativeXComponent_TouchPoint

2025-06-12 浏览 (1)

OH_NativeXComponent_TouchPoint

Overview

Describes the touch point of the touch event.

Since: 8

Related Modules:

Native XComponent

Summary

Member Variables

NameDescription
id = 0Unique identifier of the finger.
screenX = 0.0X coordinate of the touch point relative to the upper left corner of the application window where the XComponent is located.
screenY = 0.0Y coordinate of the touch point relative to the upper left corner of the application window where the XComponent is located.
x = 0.0X coordinate of the touch point relative to the left edge of the XComponent.
y = 0.0Y coordinate of the touch point relative to the upper edge of the XComponent.
type = OH_NativeXComponent_TouchEventType::OH_NATIVEXCOMPONENT_UNKNOWNTouch type of the touch event.
size = 0.0Contact area between the finger pad and the screen.
force = 0.0Pressure of the current touch event.
timeStamp = 0Timestamp of the current touch event. It is interval between the time when the event is triggered and the time when the system starts, in nanoseconds.
isPressed = falseWhether the current point is pressed.

你可能感兴趣的鸿蒙文章

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

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