|
Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
|
Event manager for the UI. More...
#include <src/gui/backend/gtk_widgets/event_manager.h>

Public Member Functions | |
| EventManager () | |
| Creates the event queue and starts the event loop. | |
| void | start_events () |
| Starts accepting events. | |
| void | stop_events () |
| Stops events from getting fired. | |
| void | process_event (ZEvent &ev) |
| Processes the given event. | |
| bool | process_events () |
| Source function to process events. | |
| void | process_now () |
| Processes the events now. | |
Data Fields | |
| MPMCQueue< ZEvent * > | mqueue_ |
| Event queue, mainly for GUI events. | |
| ObjectPool< ZEvent > | obj_pool_ |
| Object pool of event structs to avoid real time allocation. | |
| sigc::scoped_connection | process_source_id_ |
| ID of the event processing source func. | |
| bool | pending_soft_recalc_ = false |
| A soft recalculation of the routing graph is pending. | |
Event manager for the UI.
This API is responsible for collecting and processing UI events on the GTK thread.
Definition at line 37 of file event_manager.h.
| EventManager::EventManager | ( | ) |
Creates the event queue and starts the event loop.
Must be called from a GTK thread.
|
inline |
Definition at line 47 of file event_manager.h.
| void EventManager::process_event | ( | ZEvent & | ev | ) |
Processes the given event.
The caller is responsible for putting the event back in the object pool if needed.
| void EventManager::process_now | ( | ) |
Processes the events now.
Must only be called from the GTK thread.
Event queue, mainly for GUI events.
Definition at line 91 of file event_manager.h.
| ObjectPool<ZEvent> EventManager::obj_pool_ |
Object pool of event structs to avoid real time allocation.
Definition at line 97 of file event_manager.h.
| bool EventManager::pending_soft_recalc_ = false |
A soft recalculation of the routing graph is pending.
Definition at line 107 of file event_manager.h.
| sigc::scoped_connection EventManager::process_source_id_ |
ID of the event processing source func.
Will be zero when stopped and non-zero when active.
Definition at line 104 of file event_manager.h.