Kanzi 3.9.10
kanzi::wayland::ShellWrapper< Shell, ListenerPack > Class Template Reference

Helper class that contains a Shell with associated listeners. More...

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

Public Types

using Listeners
 Helper alias that represents a tuple of associated native listeners.
 

Public Member Functions

void attachListeners (void *waylandContext) const noexcept
 Attaches all associated listeners to the shell.
 
KZ_NO_DISCARD const ListenersgetListeners () const noexcept
 Gets listeners.
 
const ShellgetShell () const noexcept
 Gets shell.
 
ShellWrapperoperator= (const ShellWrapper &)=delete
 Copy assignment operator.
 
ShellWrapperoperator= (ShellWrapper &&) noexcept=delete
 Move assignment operator.
 
template<typename... Args>
 ShellWrapper (Args &&... args)
 Constructor.
 
 ShellWrapper (const ShellWrapper &)=delete
 Copy constructor.
 
 ShellWrapper (ShellWrapper &&) noexcept=delete
 Move constructor.
 
 ~ShellWrapper ()=default
 Destructor.
 

Detailed Description

template<typename Shell, typename... ListenerPack>
class kanzi::wayland::ShellWrapper< Shell, ListenerPack >

Helper class that contains a Shell with associated listeners.

Template Parameters
ShellOne of the shell classes.
ListenerPackAssociated shell listeners.
Since
Kanzi 3.9.8

Member Typedef Documentation

◆ Listeners

template<typename Shell , typename... ListenerPack>
using kanzi::wayland::ShellWrapper< Shell, ListenerPack >::Listeners

Helper alias that represents a tuple of associated native listeners.

Constructor & Destructor Documentation

◆ ShellWrapper() [1/3]

template<typename Shell , typename... ListenerPack>
template<typename... Args>
kanzi::wayland::ShellWrapper< Shell, ListenerPack >::ShellWrapper ( Args &&... args)
inlineexplicit

Constructor.

Template Parameters
ArgsArgument types that are forwared to shell constructor.
Parameters
argsArguments that are forwared to shell constructor.

◆ ~ShellWrapper()

template<typename Shell , typename... ListenerPack>
kanzi::wayland::ShellWrapper< Shell, ListenerPack >::~ShellWrapper ( )
default

Destructor.

◆ ShellWrapper() [2/3]

template<typename Shell , typename... ListenerPack>
kanzi::wayland::ShellWrapper< Shell, ListenerPack >::ShellWrapper ( const ShellWrapper< Shell, ListenerPack > & )
delete

Copy constructor.

◆ ShellWrapper() [3/3]

template<typename Shell , typename... ListenerPack>
kanzi::wayland::ShellWrapper< Shell, ListenerPack >::ShellWrapper ( ShellWrapper< Shell, ListenerPack > && )
deletenoexcept

Move constructor.

Member Function Documentation

◆ operator=() [1/2]

Copy assignment operator.

◆ operator=() [2/2]

template<typename Shell , typename... ListenerPack>
ShellWrapper & kanzi::wayland::ShellWrapper< Shell, ListenerPack >::operator= ( ShellWrapper< Shell, ListenerPack > && )
deletenoexcept

Move assignment operator.

◆ getShell()

template<typename Shell , typename... ListenerPack>
const Shell & kanzi::wayland::ShellWrapper< Shell, ListenerPack >::getShell ( ) const
inlinenoexcept

Gets shell.

Returns
Underlying shell.

◆ getListeners()

template<typename Shell , typename... ListenerPack>
KZ_NO_DISCARD const Listeners & kanzi::wayland::ShellWrapper< Shell, ListenerPack >::getListeners ( ) const
inlinenoexcept

Gets listeners.

Returns
Tuple of listeners associated with the shell.

◆ attachListeners()

template<typename Shell , typename... ListenerPack>
void kanzi::wayland::ShellWrapper< Shell, ListenerPack >::attachListeners ( void * waylandContext) const
inlinenoexcept

Attaches all associated listeners to the shell.

Parameters
waylandContextAbstractDefaultWaylandContext pointer.

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