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.
◆ TouchPoint() [1/2]
kanzi::TouchEvent::TouchPoint::TouchPoint |
( |
| ) |
|
|
explicit |
◆ TouchPoint() [2/2]
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.
◆ getId()
size_t kanzi::TouchEvent::TouchPoint::getId |
( |
| ) |
const |
|
inline |
Returns the identifier of the touch point.
◆ getX()
float kanzi::TouchEvent::TouchPoint::getX |
( |
| ) |
const |
|
inline |
Returns the x axis coordinate of the touch point.
◆ getY()
float kanzi::TouchEvent::TouchPoint::getY |
( |
| ) |
const |
|
inline |
Returns the y axis coordinate of the touch point.
◆ getPoint()
Vector2 kanzi::TouchEvent::TouchPoint::getPoint |
( |
| ) |
const |
|
inline |
Returns the the touch point.
- Since
- Kanzi 3.9.0
◆ getPressure()
float kanzi::TouchEvent::TouchPoint::getPressure |
( |
| ) |
const |
|
inline |
Returns the pressure of the touch point.
◆ getRadius()
float kanzi::TouchEvent::TouchPoint::getRadius |
( |
| ) |
const |
|
inline |
Returns the radius of the touch point.
◆ getState()
Returns the state of the touch point.
◆ TouchEvent
Friendship required to access members in transformation.
◆ m_point
Vector2 kanzi::TouchEvent::TouchPoint::m_point |
|
protected |
Holds the x and y axis coordinates of the touch point.
◆ m_pressure
float kanzi::TouchEvent::TouchPoint::m_pressure |
|
protected |
Holds the pressure of the touch point.
◆ m_radius
float kanzi::TouchEvent::TouchPoint::m_radius |
|
protected |
Holds the radius of the touch point.
◆ m_id
size_t kanzi::TouchEvent::TouchPoint::m_id |
|
protected |
Holds the identifier of the touch point.
◆ m_state
Holds the state of the touch point.
The documentation for this class was generated from the following file: