Kanzi  3.9.9
Kanzi Engine C++ API
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 = tuple< decltype(ListenerPack::s_nativeListener)... >
 Helper alias that represents a tuple of associated native listeners. More...
 

Public Member Functions

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

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

template<typename Shell , typename... ListenerPack>
using kanzi::wayland::ShellWrapper< Shell, ListenerPack >::Listeners = tuple<decltype(ListenerPack::s_nativeListener)...>

Helper alias that represents a tuple of associated native listeners.

Constructor & Destructor Documentation

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.
template<typename Shell , typename... ListenerPack>
kanzi::wayland::ShellWrapper< Shell, ListenerPack >::~ShellWrapper ( )
default

Destructor.

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

Copy constructor.

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

Move constructor.

Member Function Documentation

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

Copy assignment operator.

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

Move assignment operator.

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

Gets shell.

Returns
Underlying shell.
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.
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: