Louvre
v2.12.0-1
C++ library for Wayland compositors
|
Touch point managed within an LScene. More...
Public Member Functions | |
LScene * | scene () const noexcept |
Scene this touch point belongs to. More... | |
Int32 | id () const noexcept |
Gets the unique identifier of the touch point. More... | |
bool | pressed () const noexcept |
Check if the touch point is currently being pressed. More... | |
const std::vector< LView * > & | views () const noexcept |
Touched views. More... | |
const LPointF & | pos () const noexcept |
Gets the position of the touch point assigned by the last touch-down or move event. More... | |
Public Member Functions inherited from LObject | |
LObject (const LObject &) noexcept | |
Copy constructor. More... | |
LObject & | operator= (const LObject &) noexcept |
Assignment operator (each object has its own individual LWeak reference count). More... | |
void | setUserData (UIntPtr data) const noexcept |
Store an unsigned integer value/pointer. More... | |
UIntPtr | userData () const noexcept |
Retrieves the stored unsigned integer value/pointer. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from LObject | |
LObject () noexcept=default | |
Constructor of the LObject class. More... | |
virtual | ~LObject () noexcept |
Destructor of the LObject class. More... | |
void | notifyDestruction () noexcept |
Notifies the object destruction. More... | |
Touch point managed within an LScene.
This class behaves similarly to LTouchPoint but its lifetime is managed by its parent LScene handleTouchXXX events.
To access all active touch points of an LScene, see LScene::touchPoints().
|
inlinenoexcept |
Scene this touch point belongs to.
|
inlinenoexcept |
Gets the unique identifier of the touch point.
Each touch point is assigned a unique identifier, ensuring that there are no two touch points with the same ID.
|
inlinenoexcept |
Check if the touch point is currently being pressed.
|
inlinenoexcept |
Touched views.
A vector of views being touched by this touch point.
Views with the LView::blockTouchEnabled() property set to false
allow views behind them to receive touch events as well. In such cases, the vector contains the views ordered from topmost to bottommost.
|
inlinenoexcept |
Gets the position of the touch point assigned by the last touch-down or move event.
The position is represented in a coordinate space ranging from 0 to 1 for both the x and y axes.