Wayland XDG Shell abstraction. More...
#include <kanzi/core.ui/platform/windowing_ng/wayland/shells/xdg/wayland_xdg_shell.hpp>
Public Types | |
using | InterfaceType |
Generic alias to query the underlying interface type. | |
Public Member Functions | |
bool | addListener (const xdg_surface_listener &listener, void *data) const noexcept |
Adds a listener to the underlying XDGSurface. | |
bool | addListener (const xdg_toplevel_listener &listener, void *data) const noexcept |
Adds a listener to the underlying XDGToplevel. | |
bool | addListener (const xdg_wm_base_listener &listener, void *data) const noexcept |
Adds a listener to the underlying XDGWMBase. | |
KZ_NO_DISCARD const XDGSurface & | getXDGSurface () const noexcept |
Gets the underlying XDGSurface. | |
KZ_NO_DISCARD const XDGToplevel & | getXDGToplevel () const noexcept |
Gets the underlying XDGToplevel. | |
bool | makeFullscreen () const noexcept |
AbstractWaylandShell::makeFullscreen() implementation. | |
bool | makeMaximized () const noexcept |
AbstractWaylandShell::makeMaximized() implementation. | |
bool | makeMinimized () const noexcept |
AbstractWaylandShell::makeMinimized() implementation. | |
bool | makeRegular () const noexcept |
AbstractWaylandShell::makeRegular() implementation. | |
bool | setWindowTitle (string_view title) const noexcept |
AbstractWaylandShell::setWindowTitle() implementation. | |
XDGShell (xdg_wm_base *nativeHandle, const WaylandSurface &waylandSurface) noexcept | |
Constructor. | |
Public Member Functions inherited from kanzi::wayland::AbstractWaylandShell< XDGShell > | |
bool | bringToFront () const noexcept |
Displays the window on top of all other windows. | |
KZ_NO_DISCARD optional< string > | getWindowTitle () noexcept |
Gets the current window title. | |
bool | hideWindow () noexcept |
Hides the window. | |
bool | makeFullscreen () const noexcept |
Enters the full-screen mode. | |
bool | makeMaximized () const noexcept |
Resizes the window to take up the entire screen. | |
bool | makeMinimized () noexcept |
Minimizes the window. | |
bool | makeRegular () const noexcept |
Exits the full-screen mode. | |
bool | setWindowTitle (string_view title) const noexcept |
Sets the window title. | |
bool | showWindow () noexcept |
Shows the hidden window. | |
Static Public Member Functions | |
static bool | bringToFront () noexcept |
AbstractWaylandShell::bringToFront() implementation. | |
static KZ_NO_DISCARD optional< string > | getWindowTitle () noexcept |
AbstractWaylandShell::getWindowTitle() implementation. | |
static bool | hideWindow () noexcept |
AbstractWaylandShell::hideWindow() implementation. | |
static bool | showWindow () noexcept |
AbstractWaylandShell::showWindow() implementation. | |
Wayland XDG Shell abstraction.
Generic alias to query the underlying interface type.
|
explicitnoexcept |
Constructor.
nativeHandle | Native handle provided by Wayland. |
waylandSurface | Associated Wayland surface. |
|
noexcept |
AbstractWaylandShell::makeFullscreen() implementation.
|
noexcept |
AbstractWaylandShell::makeRegular() implementation.
|
noexcept |
AbstractWaylandShell::makeMaximized() implementation.
|
noexcept |
AbstractWaylandShell::makeMinimized() implementation.
AbstractWaylandShell::bringToFront() implementation.
AbstractWaylandShell::showWindow() implementation.
AbstractWaylandShell::hideWindow() implementation.
|
noexcept |
AbstractWaylandShell::setWindowTitle() implementation.
|
staticnoexcept |
AbstractWaylandShell::getWindowTitle() implementation.
|
noexcept |
Gets the underlying XDGToplevel.
|
noexcept |
Gets the underlying XDGSurface.
|
noexcept |
Adds a listener to the underlying XDGToplevel.
listener | Listener to attach. |
data | Data pointer to receive when the listener is called. |
|
noexcept |
Adds a listener to the underlying XDGSurface.
listener | Listener to attach. |
data | Data pointer to receive when the listener is called. |
|
noexcept |
Adds a listener to the underlying XDGWMBase.
listener | Listener to attach. |
data | Data pointer to receive when the listener is called. |