The TouchPoint class holds information about a touch point, such as a finger.
More...
#include <kanzi/core.ui/platform/input/common/events.hpp>
The TouchPoint class holds information about a touch point, such as a finger.
kanzi::TouchEvent::TouchPoint::TouchPoint |
( |
| ) |
|
|
explicit |
kanzi::TouchEvent::TouchPoint::TouchPoint |
( |
size_t |
id, |
|
|
TouchPointState |
state, |
|
|
float |
x, |
|
|
float |
y, |
|
|
float |
pressure = 1.0f , |
|
|
float |
radius = 1.0f |
|
) |
| |
|
explicit |
Constructs a touch point with the given data.
size_t kanzi::TouchEvent::TouchPoint::getId |
( |
| ) |
const |
|
inline |
Returns the identifier of the touch point.
float kanzi::TouchEvent::TouchPoint::getX |
( |
| ) |
const |
|
inline |
Returns the x axis coordinate of the touch point.
float kanzi::TouchEvent::TouchPoint::getY |
( |
| ) |
const |
|
inline |
Returns the y axis coordinate of the touch point.
Vector2 kanzi::TouchEvent::TouchPoint::getPoint |
( |
| ) |
const |
|
inline |
Returns the the touch point.
- Since
- Kanzi 3.9.0
float kanzi::TouchEvent::TouchPoint::getPressure |
( |
| ) |
const |
|
inline |
Returns the pressure of the touch point.
float kanzi::TouchEvent::TouchPoint::getRadius |
( |
| ) |
const |
|
inline |
Returns the radius of the touch point.
Returns the state of the touch point.
Friendship required to access members in transformation.
Vector2 kanzi::TouchEvent::TouchPoint::m_point |
|
protected |
Holds the x and y axis coordinates of the touch point.
float kanzi::TouchEvent::TouchPoint::m_pressure |
|
protected |
Holds the pressure of the touch point.
float kanzi::TouchEvent::TouchPoint::m_radius |
|
protected |
Holds the radius of the touch point.
size_t kanzi::TouchEvent::TouchPoint::m_id |
|
protected |
Holds the identifier of the touch point.
Holds the state of the touch point.
The documentation for this class was generated from the following file: