Vuo
0.4.3
|
VuoWindow implementation.
Functions | |
QString | VuoWindowGetVuoFrameworkPath (void) |
Returns the path to Vuo.framework. | |
void | VuoWindowApplicationInit (void) |
Creates a QApplication instance (if one doesn't already exist). | |
VuoWindowText | VuoWindowTextCreate (void) |
Creates and displays a window containing a text edit widget. | |
void | VuoWindowTextEnableTriggers (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 | VuoWindowTextDisableTriggers (VuoWindowText w) |
Stops the window from calling trigger functions when its text is edited. | |
VuoWindowOpenGL | VuoWindowOpenGLCreate (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 | VuoWindowOpenGLEnableTriggers (VuoWindowOpenGL w, VuoOutputTrigger(frameRequested, VuoInteger), VuoOutputTrigger(mouseMoved, VuoPoint2d), VuoOutputTrigger(mouseLeftPressed, VuoPoint2d)) |
Sets up the window to call the trigger functions when events occur. | |
void | VuoWindowOpenGLDisableTriggers (VuoWindowOpenGL w) |
Stops the window from calling trigger functions when events occur. | |
void | VuoWindowTextAppendLine (VuoWindowText vw, const char *text) |
Appends text and a linebreak to the text edit widget in the window. | |
void | VuoWindowOpenGLRedraw (VuoWindowOpenGL w) |
Schedules the specified window to be redrawn. | |
void | VuoWindowOpenGLSetAspectRatio (VuoWindowOpenGL w, unsigned int pixelsWide, unsigned int pixelsHigh) |
Sets the window's current and preferred aspect ratio. | |
void | VuoWindowTextDestroy (VuoWindowText vw) |
Closes and deallocates a VuoWindowText window. | |
void | VuoWindowOpenGLDestroy (VuoWindowOpenGL vw) |
Closes and deallocates a VuoWindowOpenGL window. | |
void VuoWindowApplicationInit | ( | void | ) |
Creates a QApplication instance (if one doesn't already exist).
Can be called from any thread but the main thread.
QString VuoWindowGetVuoFrameworkPath | ( | void | ) |
Returns the path to Vuo.framework.
Partial clone of VuoCompiler::getVuoFrameworkPath(), which we can't use here because the VuoCompiler
class doesn't get linked with built compositions.
VuoWindowOpenGL VuoWindowOpenGLCreate | ( | 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 VuoWindowOpenGLDestroy | ( | 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 VuoWindowOpenGLDisableTriggers | ( | VuoWindowOpenGL | w | ) |
Stops the window from calling trigger functions when events occur.
Can be called from any thread but the main thread.
void VuoWindowOpenGLEnableTriggers | ( | VuoWindowOpenGL | w, |
VuoOutputTrigger(frameRequested, VuoInteger) | , | ||
VuoOutputTrigger(mouseMoved, VuoPoint2d) | , | ||
VuoOutputTrigger(mouseLeftPressed, VuoPoint2d) | |||
) |
Sets up the window to call the trigger functions when events occur.
Can be called from any thread.
void VuoWindowOpenGLRedraw | ( | VuoWindowOpenGL | w | ) |
Schedules the specified window to be redrawn.
Can be called from any thread.
void VuoWindowOpenGLSetAspectRatio | ( | 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 VuoWindowTextAppendLine | ( | VuoWindowText | vw, |
const char * | text | ||
) |
Appends text and a linebreak to the text edit widget in the window.
Can be called from any thread.
VuoWindowText VuoWindowTextCreate | ( | 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.
void VuoWindowTextDestroy | ( | 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 VuoWindowTextDisableTriggers | ( | 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 VuoWindowTextEnableTriggers | ( | 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.