Static Private _announcedStatic Private _guisGet the control given it's unique name.
get the associated control
control's unique name for this control
Private _addPrivate _addPrivate _handlePrivate _initPrivate _selectCreate a button control
a button
unique name for this control
Optional x: numberleft-hand pixel position
Optional y: numbertop pixel position
Optional w: numberwidth
Optional h: numberheight
Get a grid layout for a given pixel position and size in the display area. Initially the grid repreents a single cell but the number and size of horizontal and vertical cells should be set before creating the controls.
1.1.0
the grid layout
left edge position
top edge position
grid width
grid height
Create a side pane. The pane location is either 'north', 'south', 'east' or 'west'.
The pane will fill the whole width/height of the canvas depending on its position. The user controls how far the pane extends into the canvas when open.
a side pane
unique name for this control
the pane position ('north', 'south', 'east' or 'west')
the maximum depth the pane expands into the canvas
Create a single line text input control
a textfield
unique name for this control
Optional x: numberleft-hand pixel position
Optional y: numbertop pixel position
Optional w: numberwidth
Optional h: numberheight
Sets or gets the global tip text size. If no parameter is passed then the global tip text size is returned otherwise it returns this control
the global tip text size or this control
Optional gtts: numbernew global tip text size
Static findStatic getReturns a GUI controller for a given canvas element.
If a GUI has already been created for this canvas it will be returned, otherwise a new GUI will be created and returned
A canvas can have more than one GUI associated with it but in that case each GUI must have a unique name.
a GUI controller
the renderer - the display canvas
the processing instance (required in Instance mode)
Static getReturns a named GUI controller.
If an exisiting GUI has the same name it will be returned, otherwise a new GUI will be created and returned
If the name parameter is not of type 'string' or an empty string then the returned value is undefined.
a GUI controller if valid name provided
unique name for the GUI
the renderer - the display canvas
the processing instance (required in Instance mode)
Generated using TypeDoc
Core class for the canvasGUI library
Use an instance of GUI (the controller) to control all aspects of your gui.