Represents a Wayland seat and abstracts the underlying capabilities.
More...
#include <kanzi/core.ui/platform/input_ng/wayland/wayland_seat.hpp>
Represents a Wayland seat and abstracts the underlying capabilities.
- Since
- Kanzi 3.9.8
kanzi::wayland::WaylandSeat::WaylandSeat |
( |
wl_seat * |
nativeHandle | ) |
|
|
explicitnoexcept |
Constructor.
- Parameters
-
nativeHandle | Native Wayland handle. |
void kanzi::wayland::WaylandSeat::updateCapabilities |
( |
uint32_t |
capabilityMask | ) |
|
|
noexcept |
Updates the capability status with the provided capability mask.
- See also
- updateCapability()
- Parameters
-
capabilityMask | Capability mask provided by Wayland. |
template<typename T >
bool kanzi::wayland::WaylandSeat::hasCapability |
( |
| ) |
const |
|
inlinenoexcept |
Checks whether the capability is supported by the current environment.
- Template Parameters
-
T | Capability type to check. |
- Returns
- If capability is supported, true, otherwise false.
template<typename T >
void kanzi::wayland::WaylandSeat::setCapabilityListener |
( |
const typename T::ListenerType & |
listener, |
|
|
void * |
data |
|
) |
| |
|
inlinenoexcept |
Helper function to register a listener for a capability.
This class stores listener internally and reattaches it to the specified capability whenever this capability becomes available. For example, if keyboard becomes unavailable and then available again, registered listener automatically reattaches to that capability.
- See also
- addCapabilityListener()
- Template Parameters
-
T | Capability type for which to register a listener. |
- Parameters
-
listener | Listener to register. |
data | Data pointer to receive when the listener is called. |
template<typename T >
bool kanzi::wayland::WaylandSeat::addCapabilityListener |
( |
const typename T::ListenerType & |
listener, |
|
|
void * |
data |
|
) |
| const |
|
inlinenoexcept |
Adds a listener to a capability.
- Template Parameters
-
T | Capability type for which to add a listener. |
- Parameters
-
listener | Listener to attach. |
data | Data pointer to receive when the listener is called. |
- Returns
- On success, true, otherwise false.
const wl_interface kanzi::wayland::WaylandSeat::s_nativeInterface |
|
static |
Represents the underlying native interface.
The documentation for this class was generated from the following file: