Wayland registry wrapper class. More...
#include <kanzi/core.ui/platform/windowing_ng/wayland/wayland_registry.hpp>
Public Member Functions | |
| KZ_NO_DISCARD void * | bind (const wl_interface *interface, unsigned int registerName, unsigned int version) const noexcept |
| Bind an interface to the display. | |
| template<typename T > | |
| KZ_NO_DISCARD T | bindTo (const wl_interface *interface, unsigned int registerName, unsigned int version) const noexcept |
| Bind and interface to the display and cast to the correct type. | |
| WaylandRegistry (const WaylandDisplay &waylandDisplay) noexcept | |
| Constructor. | |
| WaylandRegistry (wl_registry *nativeHandle) noexcept | |
| Constructor. | |
Public Member Functions inherited from kanzi::wayland::WaylandInterface< WaylandRegistry, wl_registry, wl_registry_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 wl_registry * | getNativeHandle () const noexcept |
| Gets the underlying native handle. | |
Static Public Attributes | |
| static const wl_interface | s_nativeInterface |
| Represents the underlying native interface. | |
Additional Inherited Members | |
Public Types inherited from kanzi::wayland::WaylandInterface< WaylandRegistry, wl_registry, wl_registry_listener > | |
| using | ListenerType |
| Generic alias to query for appropriate listener type. | |
Static Public Member Functions inherited from kanzi::wayland::WaylandInterface< WaylandRegistry, wl_registry, wl_registry_listener > | |
| static KZ_NO_DISCARD unsigned int | askVersion (wl_registry *handle) noexcept |
| Requests compositor which interface version we use. | |
Wayland registry wrapper class.
|
explicitnoexcept |
Constructor.
| nativeHandle | Native Wayland handle. |
|
explicitnoexcept |
Constructor.
| waylandDisplay | WaylandDisplay to construct WaylandRegistry from. |
|
noexcept |
Bind an interface to the display.
| interface | Interface to bind. |
| registerName | Unique numeric name of the interface. |
| version | Version of the interface to request. |
|
inlinenoexcept |
Bind and interface to the display and cast to the correct type.
Prefer using this function instead of bind() because it casts handle to the specified type.
| T | Wayland type to which to cast handle. |
| interface | Interface to bind. |
| registerName | Unique numeric name of the interface. |
| version | Version of the interface to request. |
|
static |
Represents the underlying native interface.