Louvre
v2.13.0-1
C++ library for Wayland compositors
|
Base class for Louvre objects. More...
Public Member Functions | |
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... | |
Protected Member Functions | |
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... | |
Copy constructor.
|
inlinenoexcept |
Store an unsigned integer value/pointer.
|
inlinenoexcept |
Retrieves the stored unsigned integer value/pointer.
|
protectednoexcept |
Notifies the object destruction.
This method can be invoked from a subclass destructor to notify the object's imminent destruction to all associated LWeak references in advance. If not invoked, the base LObject automatically calls it.
After invocation, all LWeak references are set to nullptr
, preventing the creation of additional references for this object.