Vuo 2.4.4
Loading...
Searching...
No Matches
Functions
VuoWindow.m File Reference

Description

VuoWindow implementation.

Definition in file VuoWindow.m.

Go to the source code of this file.

Functions

void VuoWindowText_destroy (VuoWindowText vw)
 Deallocates the 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 VuoWindowText_clear (VuoWindowText vw)
 Removes the text in the window.
 
void VuoWindowText_close (VuoWindowText vw)
 Closes the window.
 
void VuoWindowOpenGl_destroy (VuoWindowOpenGl vw)
 Deallocates a VuoWindowOpenGl window.
 
VuoWindowOpenGl VuoWindowOpenGl_make (void(*initCallback)(void *, float backingScaleFactor), void(*updateBackingCallback)(void *, float backingScaleFactor), void(*resizeCallback)(void *, unsigned int, unsigned int), VuoIoSurface(*drawCallback)(void *), void *context)
 Creates and displays a window containing an OpenGL view.
 
void VuoWindowOpenGl_enableTriggers (VuoWindowOpenGl w, VuoOutputTrigger(updatedWindow, VuoRenderedLayers))
 Sets up the window to call the trigger functions when events occur.
 
void VuoWindowOpenGl_enableTriggers_deprecated (VuoWindowOpenGl w, VuoOutputTrigger(showedWindow, VuoWindowReference), VuoOutputTrigger(requestedFrame, VuoReal))
 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)
 Draws the specified window (unless the current display frame has already been drawn).
 
void VuoWindowOpenGl_setProperties (VuoWindowOpenGl w, VuoList_VuoWindowProperty properties)
 Applies a list of properties to a window.
 
void VuoWindowOpenGl_setAspectRatio (VuoWindowOpenGl w, unsigned int pixelsWide, unsigned int pixelsHigh)
 Sets the window's current and preferred aspect ratio.
 
void VuoWindowOpenGl_unlockAspectRatio (VuoWindowOpenGl w)
 Removes the aspect ratio constraint set by VuoWindowOpenGl_setAspectRatio.
 
void VuoWindowOpenGl_close (VuoWindowOpenGl vw, void(^closedHandler)(void))
 Closes the window.
 

Function Documentation

◆ VuoWindowOpenGl_close()

void VuoWindowOpenGl_close ( VuoWindowOpenGl  vw,
void(^)(void)  closedHandler 
)

Closes the window.

This function may be called on any thread except the main thread.

Changed in Vuo 2.0.0:
Added closedHandler argument.

Definition at line 340 of file VuoWindow.m.

◆ VuoWindowOpenGl_destroy()

void VuoWindowOpenGl_destroy ( VuoWindowOpenGl  vw)

Deallocates a VuoWindowOpenGl window.

This function may be called from any thread.

Definition at line 370 of file VuoWindow.m.

◆ VuoWindowOpenGl_disableTriggers()

void VuoWindowOpenGl_disableTriggers ( VuoWindowOpenGl  w)

Stops the window from calling trigger functions when events occur.

This function may be called on any thread except the main thread.

Definition at line 270 of file VuoWindow.m.

◆ VuoWindowOpenGl_enableTriggers()

void VuoWindowOpenGl_enableTriggers ( VuoWindowOpenGl  w,
VuoOutputTrigger(updatedWindow, VuoRenderedLayers  
)

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

This function may be called on any thread except the main thread.

Changed in Vuo 2.0.0:
New.

Definition at line 238 of file VuoWindow.m.

◆ VuoWindowOpenGl_enableTriggers_deprecated()

void VuoWindowOpenGl_enableTriggers_deprecated ( VuoWindowOpenGl  w,
VuoOutputTrigger(showedWindow, VuoWindowReference ,
VuoOutputTrigger(requestedFrame, VuoReal  
)
deprecated

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

This function may be called on any thread except the main thread.

Deprecated:

Definition at line 254 of file VuoWindow.m.

◆ VuoWindowOpenGl_make()

VuoWindowOpenGl VuoWindowOpenGl_make ( void(*)(void *, float backingScaleFactor)  initCallback,
void(*)(void *, float backingScaleFactor)  updateBackingCallback,
void(*)(void *, unsigned int, unsigned int)  resizeCallback,
VuoIoSurface(*)(void *)  drawCallback,
void *  context 
)

Creates and displays a window containing an OpenGL view.

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

This function may be called on any thread except the main thread.

Definition at line 188 of file VuoWindow.m.

◆ VuoWindowOpenGl_redraw()

void VuoWindowOpenGl_redraw ( VuoWindowOpenGl  w)

Draws the specified window (unless the current display frame has already been drawn).

This function may be called from any thread.

Definition at line 282 of file VuoWindow.m.

◆ VuoWindowOpenGl_setAspectRatio()

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.

Definition at line 309 of file VuoWindow.m.

◆ VuoWindowOpenGl_setProperties()

void VuoWindowOpenGl_setProperties ( VuoWindowOpenGl  w,
VuoList_VuoWindowProperty  properties 
)

Applies a list of properties to a window.

This function may be called from any thread.

Definition at line 293 of file VuoWindow.m.

◆ VuoWindowOpenGl_unlockAspectRatio()

void VuoWindowOpenGl_unlockAspectRatio ( VuoWindowOpenGl  w)

Removes the aspect ratio constraint set by VuoWindowOpenGl_setAspectRatio.

After calling this method, the user will be able to resizes the window freely.

Definition at line 324 of file VuoWindow.m.

◆ VuoWindowText_appendLine()

void VuoWindowText_appendLine ( VuoWindowText  vw,
const char *  text 
)

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

This function may be called from any thread.

Definition at line 111 of file VuoWindow.m.

◆ VuoWindowText_clear()

void VuoWindowText_clear ( VuoWindowText  vw)

Removes the text in the window.

This function may be called from any thread.

Definition at line 128 of file VuoWindow.m.

◆ VuoWindowText_close()

void VuoWindowText_close ( VuoWindowText  vw)

Closes the window.

This function may be called on any thread except the main thread.

Definition at line 141 of file VuoWindow.m.

◆ VuoWindowText_destroy()

void VuoWindowText_destroy ( VuoWindowText  vw)

Deallocates the window.

This function may be called from any thread.

Definition at line 170 of file VuoWindow.m.

◆ VuoWindowText_disableTriggers()

void VuoWindowText_disableTriggers ( VuoWindowText  w)

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

This function may be called on any thread except the main thread.

Definition at line 96 of file VuoWindow.m.

◆ VuoWindowText_enableTriggers()

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.

This function may be called on any thread except the main thread.

Definition at line 75 of file VuoWindow.m.

◆ VuoWindowText_make()

VuoWindowText VuoWindowText_make ( void  )

Creates and displays a window containing a text edit widget.

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

This function may be called on any thread except the main thread.

Definition at line 38 of file VuoWindow.m.