EventSource class. More...
#include <kanzi/core.ui/input/event_source.hpp>
Public Member Functions | |
virtual void | gatherEvents (EventQueue &queue)=0 |
Amends the given event queue with events received so far. More... | |
virtual KZ_NO_DISCARD optional< NativeEventHandle > | getNativeEventHandle () const noexcept=0 |
Returns a waitable event handle for this event source, if available. More... | |
virtual | ~EventSource ()=default |
Destructor. More... | |
EventSource class.
Interface for event sources.
|
virtualdefault |
Destructor.
|
pure virtual |
Amends the given event queue with events received so far.
queue | Event queue to be amended. Do not clear nor assume to be empty. |
Implemented in kanzi::wayland::DefaultWaylandEGLGraphicsOutput, kanzi::wayland::DefaultWaylandIVIEGLGraphicsOutput, kanzi::win32::DefaultWin32WGLGraphicsOutput, kanzi::qnx::DefaultQnxEGLGraphicsOutput, kanzi::x11::DefaultX11EGLGraphicsOutput, kanzi::qnx::QnxEGLPBufferGraphicsOutput, kanzi::android_ws::DefaultAndroidWSEGLGraphicsOutput, kanzi::KeyRepeatGenerator, kanzi::emscripten::DefaultEmscriptenGraphicsOutput, kanzi::KeyMapEventFilter, and kanzi::LegacyEventSource.
|
pure virtualnoexcept |
Returns a waitable event handle for this event source, if available.
Implemented in kanzi::wayland::DefaultWaylandEGLGraphicsOutput, kanzi::wayland::DefaultWaylandIVIEGLGraphicsOutput, kanzi::win32::DefaultWin32WGLGraphicsOutput, kanzi::qnx::DefaultQnxEGLGraphicsOutput, kanzi::x11::DefaultX11EGLGraphicsOutput, kanzi::qnx::QnxEGLPBufferGraphicsOutput, kanzi::android_ws::DefaultAndroidWSEGLGraphicsOutput, kanzi::emscripten::DefaultEmscriptenGraphicsOutput, kanzi::KeyRepeatGenerator, kanzi::KeyMapEventFilter, and kanzi::LegacyEventSource.