Wayland display wrapper class.
More...
#include <kanzi/core.ui/platform/windowing_ng/wayland/wayland_display.hpp>
Wayland display wrapper class.
- Since
- Kanzi 3.9.8
kanzi::wayland::WaylandDisplay::WaylandDisplay |
( |
wl_display * |
nativeHandle | ) |
|
|
explicitnoexcept |
Constructor.
- Parameters
-
nativeHandle | Native Wayland handle. |
kanzi::wayland::WaylandDisplay::WaylandDisplay |
( |
const string & |
displayName | ) |
|
|
explicitnoexcept |
Constructor.
- Parameters
-
displayName | Display name to use when connecting. |
kanzi::wayland::WaylandDisplay::WaylandDisplay |
( |
| ) |
|
|
explicitnoexcept |
kanzi::wayland::WaylandDisplay::~WaylandDisplay |
( |
| ) |
|
kanzi::wayland::WaylandDisplay::WaylandDisplay |
( |
const WaylandDisplay & |
| ) |
|
|
delete |
Copy assignment operator.
Move assignment operator.
bool kanzi::wayland::WaylandDisplay::dispatchPending |
( |
| ) |
const |
|
noexcept |
Dispatches queued Wayland events.
If no events are queued, this operation returns without blocking.
- Returns
- On success, true, otherwise false.
bool kanzi::wayland::WaylandDisplay::dispatch |
( |
| ) |
const |
|
noexcept |
Dispatches queued Wayland events.
If no events are queued, this operation blocks until the next event occurs.
- Returns
- On success, true, otherwise false.
bool kanzi::wayland::WaylandDisplay::roundtrip |
( |
| ) |
const |
|
noexcept |
Blocks until compositor processes all requests.
This function is blocking.
- Returns
- On success, true, otherwise false.
bool kanzi::wayland::WaylandDisplay::flush |
( |
| ) |
const |
|
noexcept |
Sends all buffered requests on the display to the server.
- Returns
- On success, true, otherwise false.
bool kanzi::wayland::WaylandDisplay::prepareRead |
( |
| ) |
const |
|
noexcept |
Prepares to read events from the display's file descriptor.
- Returns
- On success, true, otherwise false.
bool kanzi::wayland::WaylandDisplay::readEvents |
( |
| ) |
const |
|
noexcept |
Reads events from a display file descriptor.
- Returns
- On success, true, otherwise false.
void kanzi::wayland::WaylandDisplay::cancelRead |
( |
| ) |
const |
|
noexcept |
Cancels read intention on display's file descriptor.
KZ_NO_DISCARD int kanzi::wayland::WaylandDisplay::getFileDescriptor |
( |
| ) |
const |
|
noexcept |
Gets the underlying file descriptor.
- Returns
- File descriptor that represents this WaylandDisplay.
KZ_NO_DISCARD wl_display* kanzi::wayland::WaylandDisplay::getNativeHandle |
( |
| ) |
const |
|
noexcept |
Gets the underlying native handle.
- Returns
- Native Wayland handle.
The documentation for this class was generated from the following file: