Wayland registry wrapper class.
More...
#include <kanzi/core.ui/platform/windowing_ng/wayland/wayland_registry.hpp>
Wayland registry wrapper class.
- Since
- Kanzi 3.9.8
kanzi::wayland::WaylandRegistry::WaylandRegistry |
( |
wl_registry * |
nativeHandle | ) |
|
|
explicitnoexcept |
Constructor.
- Parameters
-
nativeHandle | Native Wayland handle. |
kanzi::wayland::WaylandRegistry::WaylandRegistry |
( |
const WaylandDisplay & |
waylandDisplay | ) |
|
|
explicitnoexcept |
KZ_NO_DISCARD void* kanzi::wayland::WaylandRegistry::bind |
( |
const wl_interface * |
interface, |
|
|
unsigned int |
registerName, |
|
|
unsigned int |
version |
|
) |
| const |
|
noexcept |
Bind an interface to the display.
- Parameters
-
interface | Interface to bind. |
registerName | Unique numeric name of the interface. |
version | Version of the interface to request. |
- Returns
- Handle to the bound interface.
template<typename T >
KZ_NO_DISCARD T kanzi::wayland::WaylandRegistry::bindTo |
( |
const wl_interface * |
interface, |
|
|
unsigned int |
registerName, |
|
|
unsigned int |
version |
|
) |
| const |
|
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.
- See also
- bind()
- Template Parameters
-
T | Wayland type to which to cast handle. |
- Parameters
-
interface | Interface to bind. |
registerName | Unique numeric name of the interface. |
version | Version of the interface to request. |
- Returns
- Handle to the bound interface.
const wl_interface kanzi::wayland::WaylandRegistry::s_nativeInterface |
|
static |
Represents the underlying native interface.
The documentation for this class was generated from the following file: