Kanzi 4.0.0-beta2
kanzi::wayland::AbstractDefaultWaylandContext Class Referenceabstract

Class that represents an interface for Wayland callbacks. More...

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

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

Public Member Functions

 AbstractDefaultWaylandContext ()=default
 Constructor.
 
 AbstractDefaultWaylandContext (AbstractDefaultWaylandContext &&) noexcept=delete
 Move constructor.
 
 AbstractDefaultWaylandContext (const AbstractDefaultWaylandContext &)=delete
 Copy constructor.
 
virtual void eventNotification (const WaylandEvent &event)=0
 Called by the Wayland listener when it receives an event.
 
virtual void modeChangeNotification (WaylandOutput::NativeHandleType nativeOutput, unsigned int flags, int width, int height, int refresh)=0
 Called by the Wayland listener when monitor mode changes.
 
AbstractDefaultWaylandContextoperator= (AbstractDefaultWaylandContext &&) noexcept=delete
 Move assignment operator.
 
AbstractDefaultWaylandContextoperator= (const AbstractDefaultWaylandContext &)=delete
 Copy assignment operator.
 
virtual void registryAddedNotification (uint32_t name, const char *interfaceName, uint32_t version)=0
 Called by the Wayland listener when a global interface is added to registry.
 
virtual void registryRemovedNotification (uint32_t name)=0
 Called by the Wayland listener when a global interface is removed from registry.
 
virtual void resizeNotification (int width, int height)=0
 Called by the Wayland listener when the size of a window changes.
 
virtual void seatCapabilitiesNotification (WaylandSeat::NativeHandleType nativeSeat, uint32_t capabilities)=0
 Called by the Wayland listener when seat capabilities change.
 
virtual ~AbstractDefaultWaylandContext ()=default
 Destructor.
 

Detailed Description

Class that represents an interface for Wayland callbacks.

Since
Kanzi 3.9.8

Constructor & Destructor Documentation

◆ AbstractDefaultWaylandContext() [1/3]

kanzi::wayland::AbstractDefaultWaylandContext::AbstractDefaultWaylandContext ( )
explicitdefault

Constructor.

◆ ~AbstractDefaultWaylandContext()

virtual kanzi::wayland::AbstractDefaultWaylandContext::~AbstractDefaultWaylandContext ( )
virtualdefault

Destructor.

◆ AbstractDefaultWaylandContext() [2/3]

kanzi::wayland::AbstractDefaultWaylandContext::AbstractDefaultWaylandContext ( const AbstractDefaultWaylandContext & )
delete

Copy constructor.

◆ AbstractDefaultWaylandContext() [3/3]

kanzi::wayland::AbstractDefaultWaylandContext::AbstractDefaultWaylandContext ( AbstractDefaultWaylandContext && )
deletenoexcept

Move constructor.

Member Function Documentation

◆ operator=() [1/2]

AbstractDefaultWaylandContext & kanzi::wayland::AbstractDefaultWaylandContext::operator= ( const AbstractDefaultWaylandContext & )
delete

Copy assignment operator.

◆ operator=() [2/2]

AbstractDefaultWaylandContext & kanzi::wayland::AbstractDefaultWaylandContext::operator= ( AbstractDefaultWaylandContext && )
deletenoexcept

Move assignment operator.

◆ resizeNotification()

virtual void kanzi::wayland::AbstractDefaultWaylandContext::resizeNotification ( int width,
int height )
pure virtual

Called by the Wayland listener when the size of a window changes.

Parameters
widthNew window width.
heightNew window height.

Implemented in kanzi::wayland::DefaultWaylandEGLGraphicsOutput, and kanzi::wayland::WaylandIVIEGLGraphicsOutput.

◆ modeChangeNotification()

virtual void kanzi::wayland::AbstractDefaultWaylandContext::modeChangeNotification ( WaylandOutput::NativeHandleType nativeOutput,
unsigned int flags,
int width,
int height,
int refresh )
pure virtual

Called by the Wayland listener when monitor mode changes.

Parameters
nativeOutputNative output handle whose mode changed.
flagsMonitor flags.
widthNew monitor width.
heightNew monitor height.
refreshRefresh rate.

Implemented in kanzi::wayland::DefaultWaylandEGLGraphicsOutput, and kanzi::wayland::WaylandIVIEGLGraphicsOutput.

◆ eventNotification()

virtual void kanzi::wayland::AbstractDefaultWaylandContext::eventNotification ( const WaylandEvent & event)
pure virtual

Called by the Wayland listener when it receives an event.

See also
WaylandEvent
Parameters
eventReceived event.

Implemented in kanzi::wayland::DefaultWaylandEGLGraphicsOutput, and kanzi::wayland::WaylandIVIEGLGraphicsOutput.

◆ seatCapabilitiesNotification()

virtual void kanzi::wayland::AbstractDefaultWaylandContext::seatCapabilitiesNotification ( WaylandSeat::NativeHandleType nativeSeat,
uint32_t capabilities )
pure virtual

Called by the Wayland listener when seat capabilities change.

Parameters
nativeSeatNative seat handle whose capabilities changed.
capabilitiesCapabilities mask.
Since
Kanzi 4.0.0 accepts seat as an argument.

Implemented in kanzi::wayland::DefaultWaylandEGLGraphicsOutput, and kanzi::wayland::WaylandIVIEGLGraphicsOutput.

◆ registryAddedNotification()

virtual void kanzi::wayland::AbstractDefaultWaylandContext::registryAddedNotification ( uint32_t name,
const char * interfaceName,
uint32_t version )
pure virtual

Called by the Wayland listener when a global interface is added to registry.

Parameters
nameUnique global interface ID.
interfaceNameInterface name.
versionSupported interface version.

Implemented in kanzi::wayland::DefaultWaylandEGLGraphicsOutput, and kanzi::wayland::WaylandIVIEGLGraphicsOutput.

◆ registryRemovedNotification()

virtual void kanzi::wayland::AbstractDefaultWaylandContext::registryRemovedNotification ( uint32_t name)
pure virtual

Called by the Wayland listener when a global interface is removed from registry.

Parameters
nameUnique global interface ID.
Since
Kanzi 4.0.0

Implemented in kanzi::wayland::DefaultWaylandEGLGraphicsOutput, and kanzi::wayland::WaylandIVIEGLGraphicsOutput.


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