LuciadCPillar 2024.0.08
|
Touch point that results from a user touch interaction. More...
#include <luciad/input/touch/TouchPoint.h>
Public Member Functions | |
constexpr | TouchPoint (Coordinate location, TouchPointState state, size_t id) |
Creates a touch point. More... | |
constexpr bool | operator!= (const TouchPoint &rhs) const |
Inequality comparison operator. More... | |
constexpr bool | operator== (const TouchPoint &rhs) const |
Equality comparison operator. More... | |
Public Attributes | |
size_t | id |
The unique identifier of this touch point, valid until this touch point is released. More... | |
Coordinate | location |
The screen location of the touch point, expressed in device independent pixels. More... | |
TouchPointState | state |
The current TouchPointState for this touch point. More... | |
Touch point that results from a user touch interaction.
|
inlineconstexpr |
Creates a touch point.
location | The location of the touch point, defined in device independent pixels. |
state | The status of the touch point. |
id | The touch device ID, such as an index assigned for each finger for example. |
|
inlineconstexpr |
Inequality comparison operator.
Two touch points are not equal if either their id, state or location differ.
rhs | The TouchPoint that this instance is being compared to. |
|
inlineconstexpr |
Equality comparison operator.
Two touch points are equal if their id, state and location are the same.
rhs | The TouchPoint that this instance is being compared to. |
size_t luciad::TouchPoint::id |
The unique identifier of this touch point, valid until this touch point is released.
Coordinate luciad::TouchPoint::location |
The screen location of the touch point, expressed in device independent pixels.
TouchPointState luciad::TouchPoint::state |
The current TouchPointState for this touch point.