XDG toplevel wrapper class. More...
#include <kanzi/core.ui/platform/windowing_ng/wayland/shells/xdg/wayland_xdg_toplevel.hpp>
Public Member Functions | |
void | setFullscreenOnDefaultDisplay () const noexcept |
Sets the toplevel as full-screen on the default display. More... | |
void | setMaximizedOnDefaultDisplay () const noexcept |
Sets the toplevel as maximized on the default display. More... | |
void | setMinimizedOnDefaultDisplay () const noexcept |
Sets the toplevel as minimized on the default display. More... | |
void | setTitle (string_view title) const noexcept |
Sets the window title. More... | |
void | unsetFullscreenOnDefaultDisplay () const noexcept |
Unsets the toplevel as full-screen on the default display. More... | |
void | unsetMaximizedOnDefaultDisplay () const noexcept |
Unsets the toplevel as maximized on the default display. More... | |
XDGToplevel (xdg_toplevel *nativeHandle) noexcept | |
Constructor. More... | |
XDGToplevel (const XDGSurface &xdgSurface) noexcept | |
Constructor. More... | |
Public Member Functions inherited from kanzi::wayland::WaylandInterface< XDGToplevel, xdg_toplevel, xdg_toplevel_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 xdg_toplevel * | getNativeHandle () const noexcept |
Gets the underlying native handle. More... | |
Static Public Attributes | |
static const wl_interface | s_nativeInterface |
Represents the underlying native interface. More... | |
Additional Inherited Members | |
Public Types inherited from kanzi::wayland::WaylandInterface< XDGToplevel, xdg_toplevel, xdg_toplevel_listener > | |
using | ListenerType = xdg_toplevel_listener |
Generic alias to query for appropriate listener type. More... | |
Static Public Member Functions inherited from kanzi::wayland::WaylandInterface< XDGToplevel, xdg_toplevel, xdg_toplevel_listener > | |
static KZ_NO_DISCARD unsigned int | askVersion (xdg_toplevel *handle) noexcept |
Requests compositor which interface version we use. More... | |
XDG toplevel wrapper class.
|
explicitnoexcept |
Constructor.
nativeHandle | Native Wayland handle. |
|
explicitnoexcept |
Constructor.
xdgSurface | XDG surface to construct XDGToplevel from. |
|
noexcept |
Sets the toplevel as full-screen on the default display.
|
noexcept |
Unsets the toplevel as full-screen on the default display.
|
noexcept |
Sets the toplevel as maximized on the default display.
|
noexcept |
Unsets the toplevel as maximized on the default display.
|
noexcept |
Sets the toplevel as minimized on the default display.
|
noexcept |
Sets the window title.
title | Title to set. |
|
static |
Represents the underlying native interface.