Kanzi 3.9.10
kanzi::wayland::WaylandEventVisitor Class Reference

Visitor class that operates on different types of Wayland events. More...

#include <kanzi/core.ui/platform/input_ng/wayland/wayland_event_visitor.hpp>

Public Member Functions

bool operator() (const ExitRequestEvent &event)
 Handles a ExitRequestEvent.
 
bool operator() (const KeyboardEnterEvent &event)
 Handles a KeyboardEnterEvent.
 
bool operator() (const KeyboardLeaveEvent &event)
 Handles a KeyboardLeaveEvent.
 
bool operator() (const KeyEvent &event)
 Handles a KeyEvent.
 
bool operator() (const KeyModEvent &event)
 Handles a KeyModEvent.
 
bool operator() (const PointerAxisEvent &event)
 Handles a PointerAxisEvent.
 
bool operator() (const PointerButtonEvent &event)
 Handles a PointerButtonEvent.
 
bool operator() (const PointerEnterEvent &event)
 Handles a PointerEnterEvent.
 
bool operator() (const PointerFrameEvent &event)
 Handles a PointerFrameEvent.
 
bool operator() (const PointerLeaveEvent &event)
 Handles a PointerLeaveEvent.
 
bool operator() (const PointerMotionEvent &event)
 Handles a PointerMotionEvent.
 
bool operator() (const TouchCancelEvent &event)
 Handles a TouchCancelEvent.
 
bool operator() (const TouchDownEvent &event)
 Handles a TouchDownEvent.
 
bool operator() (const TouchFrameEvent &event)
 Handles a TouchFrameEvent.
 
bool operator() (const TouchMotionEvent &event)
 Handles a TouchMotionEvent.
 
bool operator() (const TouchUpEvent &event)
 Handles a TouchUpEvent.
 
 WaylandEventVisitor (EventQueue &eventQueue, WaylandEGLWindow &waylandEGLWindow, WaylandInputMode waylandInputMode=WaylandInputMode::Retained)
 Constructor.
 

Detailed Description

Visitor class that operates on different types of Wayland events.

Since
Kanzi 3.9.8

Constructor & Destructor Documentation

◆ WaylandEventVisitor()

kanzi::wayland::WaylandEventVisitor::WaylandEventVisitor ( EventQueue & eventQueue,
WaylandEGLWindow & waylandEGLWindow,
WaylandInputMode waylandInputMode = WaylandInputMode::Retained )
explicit

Constructor.

Parameters
eventQueueEvent queue to which to add events.
waylandEGLWindowWayland EGL Window that is used to close the window.
waylandInputModeControls Wayland input mode.
Since
Kanzi 3.9.9 added waylandInputMode.

Member Function Documentation

◆ operator()() [1/16]

bool kanzi::wayland::WaylandEventVisitor::operator() ( const KeyboardEnterEvent & event)

Handles a KeyboardEnterEvent.

Parameters
eventEvent to process.
Returns
On success, true, otherwise false.

◆ operator()() [2/16]

bool kanzi::wayland::WaylandEventVisitor::operator() ( const KeyboardLeaveEvent & event)

Handles a KeyboardLeaveEvent.

Parameters
eventEvent to process.
Returns
On success, true, otherwise false.

◆ operator()() [3/16]

bool kanzi::wayland::WaylandEventVisitor::operator() ( const KeyEvent & event)

Handles a KeyEvent.

Parameters
eventEvent to process.
Returns
On success, true, otherwise false.

◆ operator()() [4/16]

bool kanzi::wayland::WaylandEventVisitor::operator() ( const KeyModEvent & event)

Handles a KeyModEvent.

Parameters
eventEvent to process.
Returns
On success, true, otherwise false.

◆ operator()() [5/16]

bool kanzi::wayland::WaylandEventVisitor::operator() ( const PointerEnterEvent & event)

Handles a PointerEnterEvent.

Parameters
eventEvent to process.
Returns
On success, true, otherwise false.

◆ operator()() [6/16]

bool kanzi::wayland::WaylandEventVisitor::operator() ( const PointerLeaveEvent & event)

Handles a PointerLeaveEvent.

Parameters
eventEvent to process.
Returns
On success, true, otherwise false.

◆ operator()() [7/16]

bool kanzi::wayland::WaylandEventVisitor::operator() ( const PointerButtonEvent & event)

Handles a PointerButtonEvent.

Parameters
eventEvent to process.
Returns
On success, true, otherwise false.

◆ operator()() [8/16]

bool kanzi::wayland::WaylandEventVisitor::operator() ( const PointerMotionEvent & event)

Handles a PointerMotionEvent.

Parameters
eventEvent to process.
Returns
On success, true, otherwise false.

◆ operator()() [9/16]

bool kanzi::wayland::WaylandEventVisitor::operator() ( const PointerAxisEvent & event)

Handles a PointerAxisEvent.

Parameters
eventEvent to process.
Returns
On success, true, otherwise false.

◆ operator()() [10/16]

bool kanzi::wayland::WaylandEventVisitor::operator() ( const PointerFrameEvent & event)

Handles a PointerFrameEvent.

Parameters
eventEvent to process.
Returns
On success, true, otherwise false.

◆ operator()() [11/16]

bool kanzi::wayland::WaylandEventVisitor::operator() ( const TouchDownEvent & event)

Handles a TouchDownEvent.

Parameters
eventEvent to process.
Returns
On success, true, otherwise false.

◆ operator()() [12/16]

bool kanzi::wayland::WaylandEventVisitor::operator() ( const TouchUpEvent & event)

Handles a TouchUpEvent.

Parameters
eventEvent to process.
Returns
On success, true, otherwise false.

◆ operator()() [13/16]

bool kanzi::wayland::WaylandEventVisitor::operator() ( const TouchMotionEvent & event)

Handles a TouchMotionEvent.

Parameters
eventEvent to process.
Returns
On success, true, otherwise false.

◆ operator()() [14/16]

bool kanzi::wayland::WaylandEventVisitor::operator() ( const TouchCancelEvent & event)

Handles a TouchCancelEvent.

Parameters
eventEvent to process.
Returns
On success, true, otherwise false.

◆ operator()() [15/16]

bool kanzi::wayland::WaylandEventVisitor::operator() ( const TouchFrameEvent & event)

Handles a TouchFrameEvent.

Parameters
eventEvent to process.
Returns
On success, true, otherwise false.

◆ operator()() [16/16]

bool kanzi::wayland::WaylandEventVisitor::operator() ( const ExitRequestEvent & event)

Handles a ExitRequestEvent.

Parameters
eventEvent to process.
Returns
On success, true, otherwise false.

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