|
SDL3pp
A slim C++ wrapper for SDL3
|
Data about a single finger in a multitouch event. More...
Public Member Functions | |
| constexpr | Finger (const FingerRaw &finger={}) noexcept |
| Wraps Finger. | |
| constexpr | Finger (FingerID id, float x, float y, float pressure) noexcept |
| Constructs from its fields. | |
| constexpr | operator bool () const noexcept |
| Check if valid. | |
| constexpr FingerID | GetId () const noexcept |
| Get the id. | |
| constexpr Finger & | SetId (FingerID newId) noexcept |
| Set the id. | |
| constexpr float | GetX () const noexcept |
| Get the x. | |
| constexpr Finger & | SetX (float newX) noexcept |
| Set the x. | |
| constexpr float | GetY () const noexcept |
| Get the y. | |
| constexpr Finger & | SetY (float newY) noexcept |
| Set the y. | |
| constexpr float | GetPressure () const noexcept |
| Get the pressure. | |
| constexpr Finger & | SetPressure (float newPressure) noexcept |
| Set the pressure. | |
Data about a single finger in a multitouch event.
Each touch event is a collection of fingers that are simultaneously in contact with the touch device (so a "touch" can be a "multitouch," in reality), and this struct reports details of the specific fingers.
|
inlineconstexprnoexcept |
Wraps Finger.
| finger | the value to be wrapped |
|
inlineconstexprnoexcept |
Constructs from its fields.
| id | the value for id. |
| x | the value for x. |
| y | the value for y. |
| pressure | the value for pressure. |
|
inlineconstexprnoexcept |
Get the id.
|
inlineconstexprnoexcept |
Get the pressure.
|
inlineconstexprnoexcept |
Get the x.
|
inlineconstexprnoexcept |
Get the y.
|
inlineexplicitconstexprnoexcept |
Check if valid.
Set the id.
| newId | the new id value. |
|
inlineconstexprnoexcept |
Set the pressure.
| newPressure | the new pressure value. |
|
inlineconstexprnoexcept |
Set the x.
| newX | the new x value. |
|
inlineconstexprnoexcept |
Set the y.
| newY | the new y value. |