Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
event_manager.h File Reference

Events for calling refresh on widgets. More...

#include "utils/backtrace.h"
#include "utils/mpmc_queue.h"
#include "utils/object_pool.h"
#include <glib.h>
Include dependency graph for event_manager.h:

Go to the source code of this file.

Data Structures

struct  EventManager
 Event manager for the UI. More...
 

Macros

#define EVENT_MANAGER   (ZRYTHM->event_manager)
 
#define EVENT_QUEUE   (EVENT_MANAGER->mqueue)
 The event queue.
 
#define EVENT_MANAGER_MAX_EVENTS   4000
 
#define event_queue_push_back_event(q, x)   mpmc_queue_push_back (q, (void *) x)
 
#define event_queue_dequeue_event(q, x)   mpmc_queue_dequeue (q, (void *) x)
 
#define EVENTS_PUSH(et, _arg)
 Push events.
 
#define EVENTS_PUSH_NOW(et, _arg)
 

Functions

EventManagerevent_manager_new (void)
 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.
 
void event_manager_process_event (EventManager *self, ZEvent *ev)
 Processes the given event.
 
void event_manager_process_now (EventManager *self)
 Processes the events now.
 
void event_manager_remove_events_for_obj (EventManager *self, void *obj)
 Removes events where the arg matches the given object.
 
void event_manager_free (EventManager *self)
 

Detailed Description

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.

Definition in file event_manager.h.