Represents a generic Wayland interface handle with managed lifetime.
More...
#include <kanzi/core.ui/platform/windowing_ng/wayland/wayland_interface.hpp>
template<typename T, typename NativeHandle, typename Listener = void>
class kanzi::wayland::WaylandInterface< T, NativeHandle, Listener >
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.
- Template Parameters
-
T | CRTP derived class. |
NativeHandle | Native Wayland handle type. |
Listener | Native Wayland listener type associated with interface. |
- Since
- Kanzi 3.9.8
template<typename T, typename NativeHandle, typename Listener = void>
Generic alias to query for appropriate listener type.
template<typename T, typename NativeHandle, typename Listener = void>
Requests compositor which interface version we use.
- Returns
- Current interface version.
template<typename T, typename NativeHandle, typename Listener = void>
Requests compositor which interface version we use.
- Returns
- Current interface version.
template<typename T, typename NativeHandle, typename Listener = void>
Gets the underlying native handle.
- Returns
- Native Wayland handle.
template<typename T, typename NativeHandle, typename Listener = void>
template<typename L = Listener>
bool kanzi::wayland::WaylandInterface< T, NativeHandle, Listener >::addListener |
( |
enable_if_t<!is_same< L, void >::value, const L & > |
listener, |
|
|
void * |
data |
|
) |
| const |
|
inlinenoexcept |
Adds a listener to Wayland object.
- Template Parameters
-
- Parameters
-
listener | Listener to attach. |
data | Data pointer to receive when the listener is called. |
- Returns
- On success, true, otherwise false.
The documentation for this class was generated from the following file: