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::KeyRepeatGenerator, kanzi::KeyMapEventFilter, and kanzi::LegacyEventSource.
|
pure virtualnoexcept |
Returns a waitable event handle for this event source, if available.
Implemented in kanzi::KeyRepeatGenerator, kanzi::KeyMapEventFilter, and kanzi::LegacyEventSource.