Vuo  1.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Macros | Functions
VuoEventLoop.m File Reference

Description

VuoEventLoop implementation.

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.
 

Function Documentation

void VuoEventLoop_break ( void  )

Interrupts VuoEventLoop_processEvent while it is waiting.

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:

  • If mode is VuoEventLoop_WaitIndefinitely, waits until an NSEvent arrives, processes the event, and returns.
  • If mode is VuoEventLoop_RunOnce, processes an NSEvent (if one is ready), and returns.

If there's no NSApp, executes the CFRunLoop:

  • If mode is VuoEventLoop_WaitIndefinitely, returns when the CFRunLoop exits.
  • If 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.