RedWindow:
Filter:
redUniverse/Classes (extension) | Red > redUniverse

RedWindow
ExtensionExtension

wrapper for UserView

Description

Convenience class. Replaces Window + UserView. Requires RedVector.

Class Methods

.new

Arguments:

name

Window title.

bounds

Window position and size.

Instance Methods

.draw

Alias for UserView: -drawFunc.

.play

Starts an internal thread on the AppClock updating at rate fps.

.stop

Stop internal thread.

.resize

Change window size while keeping x and y position. The argument can also be a RedVector

.isOpen

Boolean.

.mouse

Returns a RedVector for mouse x and y position. Click&drag in window to set position.

.isPlaying

If the window is updating.

.clear

Clear the internal UserView once. Useful when drawing with the clearOnRefresh flag set to false.

.userView

NOTE: DEPRECATED

Examples