C

TouchPoint Struct

struct Qul::PlatformInterface::TouchPoint

Represents single touch point. More...

Header: #include <platforminterface/platforminterface.h>
Since: Qt Quick Ultralite (Platform) 1.5

Public Types

enum State { Pressed, Moved, Stationary, Released }

Public Variables

float areaX
float areaY
int id
int positionX
int positionY
float pressure
float rotation

Detailed Description

Member Type Documentation

[since Qt Quick Ultralite (Platform) 1.5] enum TouchPoint::State

This enum type indicates the state of a single touch point

ConstantValueDescription
Qul::PlatformInterface::TouchPoint::Pressed0x01The touch point is pressed.
Qul::PlatformInterface::TouchPoint::Moved0x02The touch point has moved.
Qul::PlatformInterface::TouchPoint::Stationary0x04The touch point was stationary.
Qul::PlatformInterface::TouchPoint::Released0x08The touch point was released.

This enum was introduced or modified in Qt Quick Ultralite (Platform) 1.5.

Member Variable Documentation

[since Qt Quick Ultralite (Platform) 1.5] float TouchPoint::areaX

Dimensions of the elliptical contact patch, unrotated, and centered at position in screen coordinates

This is the horizontal diameter.

This documentation was introduced in Qt Quick Ultralite (Platform) 1.5.

[since Qt Quick Ultralite (Platform) 1.5] float TouchPoint::areaY

Dimensions of the elliptical contact patch, unrotated, and centered at position in screen coordinates

This is the vertical diameter.

This documentation was introduced in Qt Quick Ultralite (Platform) 1.5.

[since Qt Quick Ultralite (Platform) 1.5] int TouchPoint::id

Id of this touch point.

This is currently unused and reserved to later use.

This documentation was introduced in Qt Quick Ultralite (Platform) 1.5.

[since Qt Quick Ultralite (Platform) 1.5] int TouchPoint::positionX

Position of this touch point on the X-axis.

This documentation was introduced in Qt Quick Ultralite (Platform) 1.5.

[since Qt Quick Ultralite (Platform) 1.5] int TouchPoint::positionY

Position of this touch point on the Y-axis.

This documentation was introduced in Qt Quick Ultralite (Platform) 1.5.

[since Qt Quick Ultralite (Platform) 1.5] float TouchPoint::pressure

Pressure applied to the touch point

Values range from 0 to 1.

This documentation was introduced in Qt Quick Ultralite (Platform) 1.5.

[since Qt Quick Ultralite (Platform) 1.5] float TouchPoint::rotation

Rotation applied to the elliptical contact patch

This documentation was introduced in Qt Quick Ultralite (Platform) 1.5.

Available under certain Qt licenses.
Find out more.