Kanzi  3.9.9
Kanzi Engine C++ API
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 KeyboardEnterEvent &event)
 Handles a KeyboardEnterEvent. More...
 
bool operator() (const KeyboardLeaveEvent &event)
 Handles a KeyboardLeaveEvent. More...
 
bool operator() (const KeyEvent &event)
 Handles a KeyEvent. More...
 
bool operator() (const KeyModEvent &event)
 Handles a KeyModEvent. More...
 
bool operator() (const PointerEnterEvent &event)
 Handles a PointerEnterEvent. More...
 
bool operator() (const PointerLeaveEvent &event)
 Handles a PointerLeaveEvent. More...
 
bool operator() (const PointerButtonEvent &event)
 Handles a PointerButtonEvent. More...
 
bool operator() (const PointerMotionEvent &event)
 Handles a PointerMotionEvent. More...
 
bool operator() (const PointerAxisEvent &event)
 Handles a PointerAxisEvent. More...
 
bool operator() (const PointerFrameEvent &event)
 Handles a PointerFrameEvent. More...
 
bool operator() (const TouchDownEvent &event)
 Handles a TouchDownEvent. More...
 
bool operator() (const TouchUpEvent &event)
 Handles a TouchUpEvent. More...
 
bool operator() (const TouchMotionEvent &event)
 Handles a TouchMotionEvent. More...
 
bool operator() (const TouchCancelEvent &event)
 Handles a TouchCancelEvent. More...
 
bool operator() (const TouchFrameEvent &event)
 Handles a TouchFrameEvent. More...
 
bool operator() (const ExitRequestEvent &event)
 Handles a ExitRequestEvent. More...
 
 WaylandEventVisitor (EventQueue &eventQueue, WaylandEGLWindow &waylandEGLWindow, WaylandInputMode waylandInputMode=WaylandInputMode::Retained)
 Constructor. More...
 

Detailed Description

Visitor class that operates on different types of Wayland events.

Since
Kanzi 3.9.8

Constructor & Destructor Documentation

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

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

Handles a KeyboardEnterEvent.

Parameters
eventEvent to process.
Returns
On success, true, otherwise false.
bool kanzi::wayland::WaylandEventVisitor::operator() ( const KeyboardLeaveEvent event)

Handles a KeyboardLeaveEvent.

Parameters
eventEvent to process.
Returns
On success, true, otherwise false.
bool kanzi::wayland::WaylandEventVisitor::operator() ( const KeyEvent event)

Handles a KeyEvent.

Parameters
eventEvent to process.
Returns
On success, true, otherwise false.
bool kanzi::wayland::WaylandEventVisitor::operator() ( const KeyModEvent event)

Handles a KeyModEvent.

Parameters
eventEvent to process.
Returns
On success, true, otherwise false.
bool kanzi::wayland::WaylandEventVisitor::operator() ( const PointerEnterEvent event)

Handles a PointerEnterEvent.

Parameters
eventEvent to process.
Returns
On success, true, otherwise false.
bool kanzi::wayland::WaylandEventVisitor::operator() ( const PointerLeaveEvent event)

Handles a PointerLeaveEvent.

Parameters
eventEvent to process.
Returns
On success, true, otherwise false.
bool kanzi::wayland::WaylandEventVisitor::operator() ( const PointerButtonEvent event)

Handles a PointerButtonEvent.

Parameters
eventEvent to process.
Returns
On success, true, otherwise false.
bool kanzi::wayland::WaylandEventVisitor::operator() ( const PointerMotionEvent event)

Handles a PointerMotionEvent.

Parameters
eventEvent to process.
Returns
On success, true, otherwise false.
bool kanzi::wayland::WaylandEventVisitor::operator() ( const PointerAxisEvent event)

Handles a PointerAxisEvent.

Parameters
eventEvent to process.
Returns
On success, true, otherwise false.
bool kanzi::wayland::WaylandEventVisitor::operator() ( const PointerFrameEvent event)

Handles a PointerFrameEvent.

Parameters
eventEvent to process.
Returns
On success, true, otherwise false.
bool kanzi::wayland::WaylandEventVisitor::operator() ( const TouchDownEvent event)

Handles a TouchDownEvent.

Parameters
eventEvent to process.
Returns
On success, true, otherwise false.
bool kanzi::wayland::WaylandEventVisitor::operator() ( const TouchUpEvent event)

Handles a TouchUpEvent.

Parameters
eventEvent to process.
Returns
On success, true, otherwise false.
bool kanzi::wayland::WaylandEventVisitor::operator() ( const TouchMotionEvent event)

Handles a TouchMotionEvent.

Parameters
eventEvent to process.
Returns
On success, true, otherwise false.
bool kanzi::wayland::WaylandEventVisitor::operator() ( const TouchCancelEvent event)

Handles a TouchCancelEvent.

Parameters
eventEvent to process.
Returns
On success, true, otherwise false.
bool kanzi::wayland::WaylandEventVisitor::operator() ( const TouchFrameEvent event)

Handles a TouchFrameEvent.

Parameters
eventEvent to process.
Returns
On success, true, otherwise false.
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: