Vuo
1.2.3
|
VuoEventLoop interface.
Enumerations | |
enum | VuoEventLoopMode { VuoEventLoop_WaitIndefinitely, VuoEventLoop_RunOnce } |
How to execute the event loop. More... | |
Functions | |
void | VuoEventLoop_processEvent (VuoEventLoopMode mode) |
Handles one or more blocks or application events (e.g., keypresses, mouse moves, window state changes). | |
void | VuoEventLoop_break (void) |
Interrupts VuoEventLoop_processEvent while it is waiting. | |
void | VuoEventLoop_switchToAppMode (void) |
Interrupts VuoEventLoop_processEvent if it's currently blocking, so that it can process NSEvents next time it's invoked. | |
bool | VuoEventLoop_mayBeTerminated (void) |
Returns false if the app is currently waiting on user input in a modal dialog or a window sheet. | |
unsigned long | VuoEventLoop_getDispatchStrictMask (void) |
Returns DISPATCH_TIMER_STRICT if it's supported on the current OS version; otherwise returns 0. | |
enum VuoEventLoopMode |
How to execute the event loop.
void VuoEventLoop_break | ( | void | ) |
Interrupts VuoEventLoop_processEvent while it is waiting.
unsigned long VuoEventLoop_getDispatchStrictMask | ( | void | ) |
Returns DISPATCH_TIMER_STRICT
if it's supported on the current OS version; otherwise returns 0.
bool VuoEventLoop_mayBeTerminated | ( | void | ) |
Returns false if the app is currently waiting on user input in a modal dialog or a window sheet.
void VuoEventLoop_processEvent | ( | VuoEventLoopMode | mode | ) |
Handles one or more blocks or application events (e.g., keypresses, mouse moves, window state changes).
If an NSApp is available:
mode
is VuoEventLoop_WaitIndefinitely, waits until an NSEvent arrives, processes the event, and returns.mode
is VuoEventLoop_RunOnce, processes an NSEvent (if one is ready), and returns.If there's no NSApp, executes the CFRunLoop:
mode
is VuoEventLoop_WaitIndefinitely, returns when the CFRunLoop exits.mode
is VuoEventLoop_RunOnce, returns immediately after a single CFRunLoop iteration.In either case, when mode
is VuoEventLoop_WaitIndefinitely, VuoEventLoop_break will cause this function to return immediately.
This function may only be called on the main thread.
void VuoEventLoop_switchToAppMode | ( | void | ) |
Interrupts VuoEventLoop_processEvent if it's currently blocking, so that it can process NSEvents next time it's invoked.