Kanzi 3.9.10
kanzi::wayland::XDGToplevel Class Reference

XDG toplevel wrapper class. More...

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

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

Public Member Functions

void setFullscreenOnDefaultDisplay () const noexcept
 Sets the toplevel as full-screen on the default display.
 
void setMaximizedOnDefaultDisplay () const noexcept
 Sets the toplevel as maximized on the default display.
 
void setMinimizedOnDefaultDisplay () const noexcept
 Sets the toplevel as minimized on the default display.
 
void setTitle (string_view title) const noexcept
 Sets the window title.
 
void unsetFullscreenOnDefaultDisplay () const noexcept
 Unsets the toplevel as full-screen on the default display.
 
void unsetMaximizedOnDefaultDisplay () const noexcept
 Unsets the toplevel as maximized on the default display.
 
 XDGToplevel (const XDGSurface &xdgSurface) noexcept
 Constructor.
 
 XDGToplevel (xdg_toplevel *nativeHandle) noexcept
 Constructor.
 
- 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.
 
KZ_NO_DISCARD unsigned int askVersion () const noexcept
 Requests compositor which interface version we use.
 
KZ_NO_DISCARD xdg_toplevel * getNativeHandle () const noexcept
 Gets the underlying native handle.
 

Static Public Attributes

static const wl_interface s_nativeInterface
 Represents the underlying native interface.
 

Additional Inherited Members

- Public Types inherited from kanzi::wayland::WaylandInterface< XDGToplevel, xdg_toplevel, xdg_toplevel_listener >
using ListenerType
 Generic alias to query for appropriate listener type.
 
- 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.
 

Detailed Description

XDG toplevel wrapper class.

Since
Kanzi 3.9.8

Constructor & Destructor Documentation

◆ XDGToplevel() [1/2]

kanzi::wayland::XDGToplevel::XDGToplevel ( xdg_toplevel * nativeHandle)
explicitnoexcept

Constructor.

Parameters
nativeHandleNative Wayland handle.

◆ XDGToplevel() [2/2]

kanzi::wayland::XDGToplevel::XDGToplevel ( const XDGSurface & xdgSurface)
explicitnoexcept

Constructor.

Parameters
xdgSurfaceXDG surface to construct XDGToplevel from.

Member Function Documentation

◆ setFullscreenOnDefaultDisplay()

void kanzi::wayland::XDGToplevel::setFullscreenOnDefaultDisplay ( ) const
noexcept

Sets the toplevel as full-screen on the default display.

◆ unsetFullscreenOnDefaultDisplay()

void kanzi::wayland::XDGToplevel::unsetFullscreenOnDefaultDisplay ( ) const
noexcept

Unsets the toplevel as full-screen on the default display.

◆ setMaximizedOnDefaultDisplay()

void kanzi::wayland::XDGToplevel::setMaximizedOnDefaultDisplay ( ) const
noexcept

Sets the toplevel as maximized on the default display.

◆ unsetMaximizedOnDefaultDisplay()

void kanzi::wayland::XDGToplevel::unsetMaximizedOnDefaultDisplay ( ) const
noexcept

Unsets the toplevel as maximized on the default display.

◆ setMinimizedOnDefaultDisplay()

void kanzi::wayland::XDGToplevel::setMinimizedOnDefaultDisplay ( ) const
noexcept

Sets the toplevel as minimized on the default display.

◆ setTitle()

void kanzi::wayland::XDGToplevel::setTitle ( string_view title) const
noexcept

Sets the window title.

Parameters
titleTitle to set.

Member Data Documentation

◆ s_nativeInterface

const wl_interface kanzi::wayland::XDGToplevel::s_nativeInterface
static

Represents the underlying native interface.


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