Vuo  0.5.2
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
VuoWindow.m File Reference

Description

VuoWindow implementation.

Functions

void VuoWindowApplication_init (void)
 Creates a VuoWindowApplication instance (if one doesn't already exist).
 
void VuoWindowText_destroy (VuoWindowText vw)
 Closes and deallocates a VuoWindowText window.
 
VuoWindowText VuoWindowText_make (void)
 Creates and displays a window containing a text edit widget.
 
void VuoWindowText_enableTriggers (VuoWindowText w, VuoOutputTrigger(typedLine, VuoText), VuoOutputTrigger(typedWord, VuoText), VuoOutputTrigger(typedCharacter, VuoText))
 Sets up the window to call the trigger functions when its text is edited.
 
void VuoWindowText_disableTriggers (VuoWindowText w)
 Stops the window from calling trigger functions when its text is edited.
 
void VuoWindowText_appendLine (VuoWindowText vw, const char *text)
 Appends text and a linebreak to the text edit widget in the window.
 
void VuoWindowOpenGl_destroy (VuoWindowOpenGl vw)
 Closes and deallocates a VuoWindowOpenGl window.
 
VuoWindowOpenGl VuoWindowOpenGl_make (void(*initCallback)(void *), void(*resizeCallback)(void *, unsigned int, unsigned int), void(*drawCallback)(void *), void *context)
 Creates and displays a window containing an OpenGL view.
 
void VuoWindowOpenGl_enableTriggers (VuoWindowOpenGl w, VuoOutputTrigger(movedMouseTo, VuoPoint2d), VuoOutputTrigger(scrolledMouse, VuoPoint2d), VuoOutputTrigger(usedMouseButton, VuoMouseButtonAction))
 Sets up the window to call the trigger functions when events occur.
 
void VuoWindowOpenGl_disableTriggers (VuoWindowOpenGl w)
 Stops the window from calling trigger functions when events occur.
 
void VuoWindowOpenGl_redraw (VuoWindowOpenGl w)
 Schedules the specified window to be redrawn.
 
void VuoWindowOpenGl_setAspectRatio (VuoWindowOpenGl w, unsigned int pixelsWide, unsigned int pixelsHigh)
 Sets the window's current and preferred aspect ratio.
 

Function Documentation

void VuoWindowApplication_init ( void  )

Creates a VuoWindowApplication instance (if one doesn't already exist).

Must be called from the main thread.

void VuoWindowOpenGl_destroy ( VuoWindowOpenGl  vw)

Closes and deallocates a VuoWindowOpenGl window.

Destroys the current QApplication instance if it no longer contains any widgets.

Can be called from any thread but the main thread.

void VuoWindowOpenGl_disableTriggers ( VuoWindowOpenGl  w)

Stops the window from calling trigger functions when events occur.

Can be called from any thread but the main thread.

void VuoWindowOpenGl_enableTriggers ( VuoWindowOpenGl  w,
VuoOutputTrigger(movedMouseTo, VuoPoint2d ,
VuoOutputTrigger(scrolledMouse, VuoPoint2d ,
VuoOutputTrigger(usedMouseButton, VuoMouseButtonAction  
)

Sets up the window to call the trigger functions when events occur.

Can be called from any thread but the main thread.

VuoWindowOpenGl VuoWindowOpenGl_make ( void(*)(void *)  initCallback,
void(*)(void *, unsigned int, unsigned int)  resizeCallback,
void(*)(void *)  drawCallback,
void *  context 
)

Creates and displays a window containing an OpenGL view.

Creates a new QApplication instance if one did not already exist.

Can be called from any thread but the main thread.

void VuoWindowOpenGl_redraw ( VuoWindowOpenGl  w)

Schedules the specified window to be redrawn.

Can be called from any thread.

void VuoWindowOpenGl_setAspectRatio ( VuoWindowOpenGl  w,
unsigned int  pixelsWide,
unsigned int  pixelsHigh 
)

Sets the window's current and preferred aspect ratio.

If necessary, the window is resized to match the specified aspect ratio. After calling this method, when the user resizes the window, its height is adjusted to match the specified aspect ratio.

void VuoWindowText_appendLine ( VuoWindowText  vw,
const char *  text 
)

Appends text and a linebreak to the text edit widget in the window.

Can be called from any thread.

void VuoWindowText_destroy ( VuoWindowText  vw)

Closes and deallocates a VuoWindowText window.

Destroys the current QApplication instance if it no longer contains any widgets.

Can be called from any thread but the main thread.

void VuoWindowText_disableTriggers ( VuoWindowText  w)

Stops the window from calling trigger functions when its text is edited.

Can be called from any thread but the main thread.

void VuoWindowText_enableTriggers ( VuoWindowText  w,
VuoOutputTrigger(typedLine, VuoText ,
VuoOutputTrigger(typedWord, VuoText ,
VuoOutputTrigger(typedCharacter, VuoText  
)

Sets up the window to call the trigger functions when its text is edited.

Can be called from any thread but the main thread.

VuoWindowText VuoWindowText_make ( void  )

Creates and displays a window containing a text edit widget.

Creates a new QApplication instance if one did not already exist.

Can be called from any thread but the main thread.