Fcitx
|
Public Member Functions | |
bool | exec () override |
Execute event loop. More... | |
void | exit () override |
Quit event loop. More... | |
const char * | implementation () const override |
Return a static implementation name of event loop. More... | |
void * | nativeHandle () override |
Return the internal native handle to the event loop. More... | |
std::unique_ptr< EventSourceIO > | addIOEvent (int fd, IOEventFlags flags, IOCallback callback) override |
std::unique_ptr< EventSourceTime > | addTimeEvent (clockid_t clock, uint64_t usec, uint64_t accuracy, TimeCallback callback) override |
std::unique_ptr< EventSource > | addExitEvent (EventCallback callback) override |
std::unique_ptr< EventSource > | addDeferEvent (EventCallback callback) override |
std::unique_ptr< EventSource > | addPostEvent (EventCallback callback) override |
std::unique_ptr< EventSourceAsync > | addAsyncEvent (EventCallback callback) override |
Definition at line 62 of file event_sdevent.cpp.
|
overridevirtual |
Execute event loop.
Implements fcitx::EventLoopInterface.
Definition at line 256 of file event_sdevent.cpp.
|
overridevirtual |
Quit event loop.
Request event loop to quit, pending event may still be executed before quit. Also execute exit event right before exiting.
Implements fcitx::EventLoopInterface.
Definition at line 261 of file event_sdevent.cpp.
|
overridevirtual |
Return a static implementation name of event loop.
Fcitx right now supports sd-event and libuv as implementation. The library being used is decided at build time.
Implements fcitx::EventLoopInterface.
Definition at line 252 of file event_sdevent.cpp.
|
overridevirtual |
Return the internal native handle to the event loop.
This can be useful if you want to use the underlying API against event loop.
For libuv, it will be uv_loop_t*. For sd-event, it will be sd_event*.
Implements fcitx::EventLoopInterface.
Definition at line 254 of file event_sdevent.cpp.