目录

HandWrite_HistoricalPoint

Overview

Defines the struct of historical touch point information.

System capability: SystemCapability.Stylus.HandWrite

Since: 6.0.0(20)

Related module: HandWrite

Header file: native_handwrite_api.h

Summary

[h2]Member Variables

Name Description
float x X coordinate of the historical touch point relative to the left edge of the touched element, in pixels.
float y Y coordinate of the historical touch point relative to the top edge of the touched element, in pixels.
int64_t timeStamp Timestamp of the current historical touch point, in nanoseconds.
float force Pressure value of the current historical touch point.

Struct Member Variable Description

[h2]x

float HandWrite_HistoricalPoint::x

Description

X coordinate of the historical touch point relative to the left edge of the touched element, in pixels.

[h2]y

float HandWrite_HistoricalPoint::y

Description

Y coordinate of the historical touch point relative to the top edge of the touched element, in pixels.

[h2]timeStamp

int64_t HandWrite_HistoricalPoint::timeStamp

Description

Timestamp of the current historical touch point, in nanoseconds.

[h2]force

float HandWrite_HistoricalPoint::force

Description

Pressure value of the current historical touch point.