Vuo
1.2.5
|
A window containing a VuoGraphicsView.
Instance Methods | |
(instancetype) | - initWithInitCallback:updateBackingCallback:resizeCallback:drawCallback:userData: |
Creates a window with the default size and position. | |
(void) | - scheduleRedraw |
Schedules the OpenGL view to be redrawn. | |
(bool) | - isFullScreen |
Returns YES if this window is currently fullscreen. | |
(void) | - finishFullScreenTransition |
Ends the programmatic-resizing event-block, and explicitly fires the resize handler once. | |
(void) | - enableShowedWindowTrigger:requestedFrameTrigger: |
Sets up the window to call trigger functions. | |
(void) | - disableTriggers |
Stops the window from calling trigger functions. | |
(void) | - setProperties: |
Applies a list of properties to this window. | |
(void) | - setAspectRatioToWidth:height: |
Constrains the window's aspect ratio to pixelsWide/pixelsHigh . | |
(void) | - unlockAspectRatio |
Removes the aspect ratio constraint set by VuoWindowOpenGl_setAspectRatio. | |
(void) | - executeWithWindowContext: |
Executes the specifed block on the window's rootContext, then returns. | |
(void) | - initDrag |
Helper for VuoGraphicsWindow's init method. | |
(void) | - addDragEnteredCallback:dragMovedToCallback:dragCompletedCallback:dragExitedCallback: |
Adds callbacks to be invoked when files are dragged from Finder. | |
(void) | - removeDragEnteredCallback:dragMovedToCallback:dragCompletedCallback:dragExitedCallback: |
Removes callbacks that would have been invoked when files were dragged from Finder. | |
Properties | |
NSRect | contentRectCached |
The window's content area. | |
float | backingScaleFactorCached |
The number of pixels per point in the window's content area. | |
NSMenu * | oldMenu |
The host app's menu, before the window was activated. | |
BOOL | isClosed |
Has the window been closed? | |
VuoWindowRecorder * | recorder |
nil if recording is inactive. | |
NSURL * | temporaryMovieURL |
The temporary file to which the movie is being saved. | |
bool | programmaticallyResizingWindow |
True if a programmatic resize of the window is in progress. | |
bool | programmaticallyTransitioningFullScreen |
True if a programmatic Mac-fullscreen transition is in progress. | |
bool | userResizedWindow |
True if the user has manually resized the window. | |
BOOL | isInMacFullScreenMode |
Is Mac OS X's fullscreen mode (green arrow button in titlebar) currently active? | |
VuoCursor | cursor |
The current mouse cursor for this window. | |
BOOL | maintainsPixelSizeWhenBackingChanges |
When the window is dragged between a retina and non-retina screen, should it maintain its size in points or pixels? | |
NSString * | titleBackup |
The window's title (stored since it gets cleared when switching to fullscreen mode). | |
NSUInteger | styleMaskWhenWindowed |
The window's style mask, prior to switching to full-screen. | |
NSRect | contentRectWhenWindowed |
The position and size of the window's content area, prior to switching to full-screen. In points (not pixels). | |
uint64_t | compositionUid |
The composition that contains this window. | |
void * | dragEntered |
A VuoTriggerSet of callbacks invoked when a Finder drag first moves into the window. | |
void * | dragMovedTo |
A VuoTriggerSet of callbacks invoked when a Finder drag moves around within the window. | |
void * | dragCompleted |
A VuoTriggerSet of callbacks invoked when a Finder drag is released over the window. | |
void * | dragExited |
A VuoTriggerSet of callbacks invoked when a Finder drag leaves the window without being released. | |
VuoGraphicsWindowShowedWindowCallback | showedWindow |
Callback to invoke when the window is shown, moved, and resized. | |
VuoGraphicsWindowRequestedFrameCallback | requestedFrame |
Callback to invoke when the display is ready for the next frame. | |
- (void) addDragEnteredCallback: | (VuoGraphicsWindowDragCallback) | dragEnteredCallback | |
dragMovedToCallback: | (VuoGraphicsWindowDragCallback) | dragMovedCallback | |
dragCompletedCallback: | (VuoGraphicsWindowDragCallback) | dragCompletedCallback | |
dragExitedCallback: | (VuoGraphicsWindowDragCallback) | dragExitedCallback | |
Adds callbacks to be invoked when files are dragged from Finder.
Provided by category VuoGraphicsWindow(Drag).
- (void) disableTriggers |
Stops the window from calling trigger functions.
This function may be called from any thread.
- (void) enableShowedWindowTrigger: | (VuoGraphicsWindowShowedWindowCallback) | showedWindow | |
requestedFrameTrigger: | (VuoGraphicsWindowRequestedFrameCallback) | requestedFrame | |
Sets up the window to call trigger functions.
This function may be called from any thread.
- (void) executeWithWindowContext: | (VuoGlContext glContext) | blockToExecute |
Executes the specifed block on the window's rootContext, then returns.
Ensures that nobody else is using the OpenGL context at that time (by synchronizing with the window's drawQueue
).
This function may be called from any thread.
- (void) finishFullScreenTransition |
Ends the programmatic-resizing event-block, and explicitly fires the resize handler once.
To be called when the delegate receives -windowDidEnter/ExitFullScreen:
.
- (void) initDrag |
Helper for VuoGraphicsWindow's init method.
Provided by category VuoGraphicsWindow(Drag).
- (instancetype) initWithInitCallback: | (VuoGraphicsWindowInitCallback) | initCallback | |
updateBackingCallback: | (VuoGraphicsWindowUpdateBackingCallback) | updateBackingCallback | |
resizeCallback: | (VuoGraphicsWindowResizeCallback) | resizeCallback | |
drawCallback: | (VuoGraphicsWindowDrawCallback) | drawCallback | |
userData: | (void *) | userData | |
Creates a window with the default size and position.
- (bool) isFullScreen |
Returns YES if this window is currently fullscreen.
- (void) removeDragEnteredCallback: | (VuoGraphicsWindowDragCallback) | dragEnteredCallback | |
dragMovedToCallback: | (VuoGraphicsWindowDragCallback) | dragMovedCallback | |
dragCompletedCallback: | (VuoGraphicsWindowDragCallback) | dragCompletedCallback | |
dragExitedCallback: | (VuoGraphicsWindowDragCallback) | dragExitedCallback | |
Removes callbacks that would have been invoked when files were dragged from Finder.
Provided by category VuoGraphicsWindow(Drag).
- (void) scheduleRedraw |
Schedules the OpenGL view to be redrawn.
This can be used in both windowed and full-screen mode.
This function may be called from any thread.
- (void) setAspectRatioToWidth: | (unsigned int) | pixelsWide | |
height: | (unsigned int) | pixelsHigh | |
Constrains the window's aspect ratio to pixelsWide/pixelsHigh
.
Also resizes the window to pixelsWide
by pixelsHigh
, unless the user has manually resized the window (in which case the width is preserved) or the requested size is larger than the window's screen (in which case the window is scaled to fit the screen).
This function may only be called on the main thread.
- (void) setProperties: | (VuoList_VuoWindowProperty) | properties |
Applies a list of properties to this window.
This function may only be called on the main thread.
- (void) unlockAspectRatio |
Removes the aspect ratio constraint set by VuoWindowOpenGl_setAspectRatio.
This function may only be called on the main thread.
|
readwriteatomicassign |
The number of pixels per point in the window's content area.
|
readwriteatomic |
The composition that contains this window.
|
readwriteatomicassign |
The window's content area.
|
readwriteatomic |
The position and size of the window's content area, prior to switching to full-screen. In points (not pixels).
|
readwriteatomic |
The current mouse cursor for this window.
|
readwriteatomic |
A VuoTriggerSet of callbacks invoked when a Finder drag is released over the window.
|
readwriteatomic |
A VuoTriggerSet of callbacks invoked when a Finder drag first moves into the window.
|
readwriteatomic |
A VuoTriggerSet of callbacks invoked when a Finder drag leaves the window without being released.
|
readwriteatomic |
A VuoTriggerSet of callbacks invoked when a Finder drag moves around within the window.
|
readwriteatomic |
Has the window been closed?
|
readwriteatomic |
Is Mac OS X's fullscreen mode (green arrow button in titlebar) currently active?
|
readwriteatomic |
When the window is dragged between a retina and non-retina screen, should it maintain its size in points or pixels?
|
readwriteatomicretain |
The host app's menu, before the window was activated.
|
readwriteatomic |
True if a programmatic resize of the window is in progress.
|
readwriteatomic |
True if a programmatic Mac-fullscreen transition is in progress.
|
readwriteatomicassign |
nil if recording is inactive.
|
readwriteatomicassign |
Callback to invoke when the display is ready for the next frame.
|
readwriteatomicassign |
Callback to invoke when the window is shown, moved, and resized.
|
readwriteatomic |
The window's style mask, prior to switching to full-screen.
|
readwriteatomicretain |
The temporary file to which the movie is being saved.
|
readwriteatomicretain |
The window's title (stored since it gets cleared when switching to fullscreen mode).
|
readwriteatomic |
True if the user has manually resized the window.