harmony 鸿蒙OH_NativeXComponent_TouchPoint

  • 2023-06-24
  • 浏览 (471)

OH_NativeXComponent_TouchPoint

Overview

Describes the touch point of the touch event.

Since: 8

Related Modules:

Native XComponent

Summary

Member Variables

Name Description
id = 0 Unique identifier of the finger.
screenX = 0.0 X coordinate of the touch point relative to the upper left corner of the application window where the XComponent is located.
screenY = 0.0 Y coordinate of the touch point relative to the upper left corner of the application window where the XComponent is located.
x = 0.0 X coordinate of the touch point relative to the left edge of the XComponent.
y = 0.0 Y coordinate of the touch point relative to the upper edge of the XComponent.
type = OH_NativeXComponent_TouchEventType::OH_NATIVEXCOMPONENT_UNKNOWN Touch type of the touch event.
size = 0.0 Contact area between the finger pad and the screen.
force = 0.0 Pressure of the current touch event.
timeStamp = 0 Timestamp of the current touch event.
isPressed = false Whether the current point is pressed.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Native APIs

harmony 鸿蒙AVCapability

harmony 鸿蒙AVDemuxer

harmony 鸿蒙AVMuxer

harmony 鸿蒙AVScreenCapture

harmony 鸿蒙AVSource

harmony 鸿蒙AudioDecoder

harmony 鸿蒙AudioEncoder

harmony 鸿蒙CodecBase

harmony 鸿蒙Core

0  赞