Represents a generic Wayland interface handle with managed lifetime. More...
#include <kanzi/core.ui/platform/windowing_ng/wayland/wayland_interface.hpp>
Public Types | |
| using | ListenerType |
| Generic alias to query for appropriate listener type. | |
Public Member Functions | |
| template<typename L = Listener> | |
| bool | addListener (enable_if_t<!is_same< L, void >::value, const L & > listener, void *data) const noexcept |
| Adds a listener to Wayland object. | |
| KZ_NO_DISCARD unsigned int | askVersion () const noexcept |
| Requests compositor which interface version we use. | |
| KZ_NO_DISCARD NativeHandle * | getNativeHandle () const noexcept |
| Gets the underlying native handle. | |
Static Public Member Functions | |
| static KZ_NO_DISCARD unsigned int | askVersion (NativeHandle *handle) noexcept |
| Requests compositor which interface version we use. | |
Represents a generic Wayland interface handle with managed lifetime.
Uses CRTP pattern. The user is encouraged to derive from it and pass itself as a template parameter.
| T | CRTP derived class. |
| NativeHandle | Native Wayland handle type. |
| Listener | Native Wayland listener type associated with interface. |
| using kanzi::wayland::WaylandInterface< T, NativeHandle, Listener >::ListenerType |
Generic alias to query for appropriate listener type.
|
inlinestaticnoexcept |
Requests compositor which interface version we use.
|
inlinenoexcept |
Requests compositor which interface version we use.
|
inlinenoexcept |
Gets the underlying native handle.
|
inlinenoexcept |
Adds a listener to Wayland object.
| L | Listener type. |
| listener | Listener to attach. |
| data | Data pointer to receive when the listener is called. |