Kanzi  3.9.8
Kanzi Engine C++ API
kanzi::wayland::XDGShell Class Reference

Wayland XDG Shell abstraction. More...

#include <kanzi/core.ui/platform/windowing_ng/wayland/shells/xdg/wayland_xdg_shell.hpp>

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

Public Types

using InterfaceType = XDGWMBase
 Generic alias to query the underlying interface type. More...
 

Public Member Functions

bool addListener (const xdg_toplevel_listener &listener, void *data) const noexcept
 Adds a listener to the underlying XDGToplevel. More...
 
bool addListener (const xdg_surface_listener &listener, void *data) const noexcept
 Adds a listener to the underlying XDGSurface. More...
 
bool addListener (const xdg_wm_base_listener &listener, void *data) const noexcept
 Adds a listener to the underlying XDGWMBase. More...
 
KZ_NO_DISCARD const XDGSurfacegetXDGSurface () const noexcept
 Gets the underlying XDGSurface. More...
 
KZ_NO_DISCARD const XDGToplevelgetXDGToplevel () const noexcept
 Gets the underlying XDGToplevel. More...
 
bool makeFullscreen () const noexcept
 AbstractWaylandShell::makeFullscreen() implementation. More...
 
bool makeMaximized () const noexcept
 AbstractWaylandShell::makeMaximized() implementation. More...
 
bool makeMinimized () const noexcept
 AbstractWaylandShell::makeMinimized() implementation. More...
 
bool makeRegular () const noexcept
 AbstractWaylandShell::makeRegular() implementation. More...
 
bool setWindowTitle (string_view title) const noexcept
 AbstractWaylandShell::setWindowTitle() implementation. More...
 
 XDGShell (xdg_wm_base *nativeHandle, const WaylandSurface &waylandSurface) noexcept
 Constructor. More...
 
- Public Member Functions inherited from kanzi::wayland::AbstractWaylandShell< XDGShell >
bool bringToFront () const noexcept
 Displays the window on top of all other windows. More...
 
KZ_NO_DISCARD optional< stringgetWindowTitle () noexcept
 Gets the current window title. More...
 
bool hideWindow () noexcept
 Hides the window. More...
 
bool makeFullscreen () const noexcept
 Enters the full-screen mode. More...
 
bool makeMaximized () const noexcept
 Resizes the window to take up the entire screen. More...
 
bool makeMinimized () noexcept
 Minimizes the window. More...
 
bool makeRegular () const noexcept
 Exits the full-screen mode. More...
 
bool setWindowTitle (string_view title) const noexcept
 Sets the window title. More...
 
bool showWindow () noexcept
 Shows the hidden window. More...
 

Static Public Member Functions

static bool bringToFront () noexcept
 AbstractWaylandShell::bringToFront() implementation. More...
 
static KZ_NO_DISCARD optional< stringgetWindowTitle () noexcept
 AbstractWaylandShell::getWindowTitle() implementation. More...
 
static bool hideWindow () noexcept
 AbstractWaylandShell::hideWindow() implementation. More...
 
static bool showWindow () noexcept
 AbstractWaylandShell::showWindow() implementation. More...
 

Detailed Description

Wayland XDG Shell abstraction.

Note
This shell is the successor of the deprecated CoreShell.
Since
Kanzi 3.9.8

Member Typedef Documentation

Generic alias to query the underlying interface type.

Constructor & Destructor Documentation

kanzi::wayland::XDGShell::XDGShell ( xdg_wm_base *  nativeHandle,
const WaylandSurface waylandSurface 
)
explicitnoexcept

Constructor.

Parameters
nativeHandleNative handle provided by Wayland.
waylandSurfaceAssociated Wayland surface.

Member Function Documentation

bool kanzi::wayland::XDGShell::makeFullscreen ( ) const
noexcept
bool kanzi::wayland::XDGShell::makeRegular ( ) const
noexcept
bool kanzi::wayland::XDGShell::makeMaximized ( ) const
noexcept
bool kanzi::wayland::XDGShell::makeMinimized ( ) const
noexcept
static bool kanzi::wayland::XDGShell::bringToFront ( )
staticnoexcept
static bool kanzi::wayland::XDGShell::showWindow ( )
staticnoexcept
static bool kanzi::wayland::XDGShell::hideWindow ( )
staticnoexcept
bool kanzi::wayland::XDGShell::setWindowTitle ( string_view  title) const
noexcept
static KZ_NO_DISCARD optional<string> kanzi::wayland::XDGShell::getWindowTitle ( )
staticnoexcept
KZ_NO_DISCARD const XDGToplevel& kanzi::wayland::XDGShell::getXDGToplevel ( ) const
noexcept

Gets the underlying XDGToplevel.

Returns
XDGToplevel object.
KZ_NO_DISCARD const XDGSurface& kanzi::wayland::XDGShell::getXDGSurface ( ) const
noexcept

Gets the underlying XDGSurface.

Returns
XDGSurface object.
bool kanzi::wayland::XDGShell::addListener ( const xdg_toplevel_listener &  listener,
void data 
) const
noexcept

Adds a listener to the underlying XDGToplevel.

Parameters
listenerListener to attach.
dataData pointer to receive when the listener is called.
Returns
On success, true, otherwise false.
bool kanzi::wayland::XDGShell::addListener ( const xdg_surface_listener &  listener,
void data 
) const
noexcept

Adds a listener to the underlying XDGSurface.

Parameters
listenerListener to attach.
dataData pointer to receive when the listener is called.
Returns
On success, true, otherwise false.
bool kanzi::wayland::XDGShell::addListener ( const xdg_wm_base_listener &  listener,
void data 
) const
noexcept

Adds a listener to the underlying XDGWMBase.

Parameters
listenerListener to attach.
dataData pointer to receive when the listener is called.
Returns
On success, true, otherwise false.

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