Kanzi 3.9.10
kanzi::wayland::AbstractWaylandShell< T > Class Template Reference

Represents a Wayland shell class interface boilerplate. More...

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

Public Member Functions

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.
 

Detailed Description

template<typename T>
class kanzi::wayland::AbstractWaylandShell< T >

Represents a Wayland shell class interface boilerplate.

Uses CRTP pattern. The user is encouraged to derive from it and pass itself as a template parameter.

Template Parameters
TCRTP derived class.
Since
Kanzi 3.9.8

Member Function Documentation

◆ makeFullscreen()

template<typename T >
bool kanzi::wayland::AbstractWaylandShell< T >::makeFullscreen ( ) const
inlinenoexcept

Enters the full-screen mode.

See also
WindowedGraphicsOutput::makeFullscreen()
Returns
On success, true, otherwise false.

◆ makeRegular()

template<typename T >
bool kanzi::wayland::AbstractWaylandShell< T >::makeRegular ( ) const
inlinenoexcept

Exits the full-screen mode.

See also
WindowedGraphicsOutput::makeRegular()
Returns
On success, true, otherwise false.

◆ makeMaximized()

template<typename T >
bool kanzi::wayland::AbstractWaylandShell< T >::makeMaximized ( ) const
inlinenoexcept

Resizes the window to take up the entire screen.

See also
WindowedGraphicsOutput::makeMaximized()
Returns
On success, true, otherwise false.

◆ makeMinimized()

template<typename T >
bool kanzi::wayland::AbstractWaylandShell< T >::makeMinimized ( )
inlinenoexcept

Minimizes the window.

See also
WindowedGraphicsOutput::makeMinimized()
Returns
On success, true, otherwise false.

◆ bringToFront()

template<typename T >
bool kanzi::wayland::AbstractWaylandShell< T >::bringToFront ( ) const
inlinenoexcept

Displays the window on top of all other windows.

See also
WindowedGraphicsOutput::bringToFront()
Returns
On success, true, otherwise false.

◆ showWindow()

template<typename T >
bool kanzi::wayland::AbstractWaylandShell< T >::showWindow ( )
inlinenoexcept

Shows the hidden window.

See also
WindowedGraphicsOutput::showWindow()
Returns
On success, true, otherwise false.

◆ hideWindow()

template<typename T >
bool kanzi::wayland::AbstractWaylandShell< T >::hideWindow ( )
inlinenoexcept

Hides the window.

See also
WindowedGraphicsOutput::hideWindow()
Returns
On success, true, otherwise false.

◆ setWindowTitle()

template<typename T >
bool kanzi::wayland::AbstractWaylandShell< T >::setWindowTitle ( string_view title) const
inlinenoexcept

Sets the window title.

See also
WindowedGraphicsOutput::setWindowTitle()
Parameters
titleText to set as the window title.
Returns
On success, true, otherwise false.

◆ getWindowTitle()

template<typename T >
KZ_NO_DISCARD optional< string > kanzi::wayland::AbstractWaylandShell< T >::getWindowTitle ( )
inlinenoexcept

Gets the current window title.

Returns
On success, the current window title, on failure nullopt.

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