Kanzi 3.9.10
kanzi::wayland::CoreShell Class Reference

Wayland Core Shell abstraction. More...

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

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

Public Types

using InterfaceType
 Generic alias to query the underlying interface type.
 

Public Member Functions

bool addListener (const wl_shell_surface_listener &listener, void *data) const noexcept
 Adds a listener to the underlying WaylandShellSurface.
 
bool bringToFront () const noexcept
 AbstractWaylandShell::bringToFront() implementation.
 
 CoreShell (wl_shell *nativeHandle, const WaylandSurface &waylandSurface) noexcept
 Constructor.
 
KZ_NO_DISCARD const WaylandShellSurfacegetShellSurface () const noexcept
 Gets the underlying WaylandShellSurface.
 
bool makeFullscreen () const noexcept
 AbstractWaylandShell::makeFullscreen() implementation.
 
bool makeMaximized () const noexcept
 AbstractWaylandShell::makeMaximized() implementation.
 
bool makeRegular () const noexcept
 AbstractWaylandShell::makeRegular() implementation.
 
bool setWindowTitle (string_view title) const noexcept
 AbstractWaylandShell::setWindowTitle() implementation.
 
- Public Member Functions inherited from kanzi::wayland::AbstractWaylandShell< CoreShell >
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 KZ_NO_DISCARD optional< string > getWindowTitle () noexcept
 AbstractWaylandShell::getWindowTitle() implementation.
 
static bool hideWindow () noexcept
 AbstractWaylandShell::hideWindow() implementation.
 
static bool makeMinimized () noexcept
 AbstractWaylandShell::makeMinimized() implementation.
 
static bool showWindow () noexcept
 AbstractWaylandShell::showWindow() implementation.
 

Detailed Description

Wayland Core Shell abstraction.

Note
This shell has been deprecated by Wayland community and is not supported by many compositors. However, this was the original shell available in Wayland and is still the only shell supported on old systems. On modern systems, use XDG shell instead.
See also
XDGShell
Since
Kanzi 3.9.8

Member Typedef Documentation

◆ InterfaceType

Generic alias to query the underlying interface type.

Constructor & Destructor Documentation

◆ CoreShell()

kanzi::wayland::CoreShell::CoreShell ( wl_shell * nativeHandle,
const WaylandSurface & waylandSurface )
explicitnoexcept

Constructor.

Parameters
nativeHandleNative handle provided by Wayland.
waylandSurfaceAssociated Wayland surface.

Member Function Documentation

◆ makeFullscreen()

bool kanzi::wayland::CoreShell::makeFullscreen ( ) const
noexcept

◆ makeRegular()

bool kanzi::wayland::CoreShell::makeRegular ( ) const
noexcept

◆ makeMaximized()

bool kanzi::wayland::CoreShell::makeMaximized ( ) const
noexcept

◆ makeMinimized()

static bool kanzi::wayland::CoreShell::makeMinimized ( )
staticnoexcept

◆ bringToFront()

bool kanzi::wayland::CoreShell::bringToFront ( ) const
noexcept

◆ showWindow()

static bool kanzi::wayland::CoreShell::showWindow ( )
staticnoexcept

◆ hideWindow()

static bool kanzi::wayland::CoreShell::hideWindow ( )
staticnoexcept

◆ setWindowTitle()

bool kanzi::wayland::CoreShell::setWindowTitle ( string_view title) const
noexcept

◆ getWindowTitle()

static KZ_NO_DISCARD optional< string > kanzi::wayland::CoreShell::getWindowTitle ( )
staticnoexcept

◆ addListener()

bool kanzi::wayland::CoreShell::addListener ( const wl_shell_surface_listener & listener,
void * data ) const
noexcept

Adds a listener to the underlying WaylandShellSurface.

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

◆ getShellSurface()

KZ_NO_DISCARD const WaylandShellSurface & kanzi::wayland::CoreShell::getShellSurface ( ) const
noexcept

Gets the underlying WaylandShellSurface.

Returns
WaylandShellSurface object.

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