gui/backend/event_manager.h file

Contents

Events for calling refresh on widgets.

Note: This is only for refreshing widgets. No logic should be performed here. Any logic must be done before pushing an event.

Classes

struct EventManager
Event manager.

Typedefs

using EventManager = struct EventManager
Event manager.

Functions

auto event_manager_new(void) -> EventManager*
Creates the event queue and starts the event loop.
void event_manager_start_events(EventManager* self)
Starts accepting events.
void event_manager_stop_events(EventManager* self)
Stops events from getting fired.

Defines

#define EVENT_QUEUE
The event queue.
#define EVENTS_PUSH(et, _arg)
Push events.