Kanzi  3.9.9
Kanzi Engine C++ API
kanzi::wayland::WaylandKeyboard Class Reference

Wayland keyboard wrapper class. More...

#include <kanzi/core.ui/platform/input_ng/wayland/wayland_keyboard.hpp>

Inheritance diagram for kanzi::wayland::WaylandKeyboard:
[legend]

Public Member Functions

 WaylandKeyboard (wl_keyboard *nativeHandle) noexcept
 Constructor. More...
 
 WaylandKeyboard (const WaylandSeat &seat) noexcept
 Constructor. More...
 
- Public Member Functions inherited from kanzi::wayland::WaylandInterface< WaylandKeyboard, wl_keyboard, wl_keyboard_listener >
bool addListener (enable_if_t<!is_same< L, void >::value, const L & > listener, void *data) const noexcept
 Adds a listener to Wayland object. More...
 
KZ_NO_DISCARD unsigned int askVersion () const noexcept
 Requests compositor which interface version we use. More...
 
KZ_NO_DISCARD wl_keyboard * getNativeHandle () const noexcept
 Gets the underlying native handle. More...
 

Static Public Attributes

static constexpr auto s_capabilityBit
 Generic alias to query for corresponding capability bit. More...
 
static const wl_interface s_nativeInterface
 Represents the underlying native interface. More...
 

Additional Inherited Members

- Public Types inherited from kanzi::wayland::WaylandInterface< WaylandKeyboard, wl_keyboard, wl_keyboard_listener >
using ListenerType = wl_keyboard_listener
 Generic alias to query for appropriate listener type. More...
 
- Static Public Member Functions inherited from kanzi::wayland::WaylandInterface< WaylandKeyboard, wl_keyboard, wl_keyboard_listener >
static KZ_NO_DISCARD unsigned int askVersion (wl_keyboard *handle) noexcept
 Requests compositor which interface version we use. More...
 

Detailed Description

Wayland keyboard wrapper class.

Since
Kanzi 3.9.8

Constructor & Destructor Documentation

kanzi::wayland::WaylandKeyboard::WaylandKeyboard ( wl_keyboard *  nativeHandle)
explicitnoexcept

Constructor.

Parameters
nativeHandleNative handle provided by Wayland.
kanzi::wayland::WaylandKeyboard::WaylandKeyboard ( const WaylandSeat seat)
explicitnoexcept

Constructor.

Constructs a WaylandKeyboard object for a given Wayland seat.

Parameters
seatWaylandSeat used to query for keyboard.

Member Data Documentation

constexpr auto kanzi::wayland::WaylandKeyboard::s_capabilityBit
static

Generic alias to query for corresponding capability bit.

See also
WaylandSeat
const wl_interface kanzi::wayland::WaylandKeyboard::s_nativeInterface
static

Represents the underlying native interface.


The documentation for this class was generated from the following file: