Viewport widget.
More...
|
|
number | alpha |
| | transparency value between 0.0 and 1.0
|
| |
|
table | bounds |
| | widget bounding rect {x,y,width,height}
|
| |
|
function | changed |
| | callback function used by child widgets to be notified of changes
|
| |
|
string | displayName |
| | widget display name
|
| |
|
bool | enabled |
| | boolean flag to enable / disable the widget
|
| |
|
int | height |
| | widget height in pixels
|
| |
|
bool | interceptsMouseClicks |
| | boolean flag to toggle mouse handling on widget
|
| |
|
string | name |
| | widget name
|
| |
|
bool | persistent |
| | flag to tell if the widget values should be serialized when saving. True by default. Persistent widgets will call their changed function on reload
|
| |
|
table | position |
| | widget position {x,y}
|
| |
|
string | scrollBarBackgroundColour |
| | scrollBar background colour. It can be either a named colour like "blue" or "red" or an hexadecimal string in RGB ("#FF00CC") or ARGB ("#3C00FECD") format
|
| |
|
string | scrollBarThumbColour |
| | scrollBar thumb colour. It can be either a named colour like "blue" or "red" or an hexadecimal string in RGB ("#FF00CC") or ARGB ("#3C00FECD") format
|
| |
|
string | scrollBarTrackColour |
| | scrollBar track colour. It can be either a named colour like "blue" or "red" or an hexadecimal string in RGB ("#FF00CC") or ARGB ("#3C00FECD") format
|
| |
|
bool | showLabel |
| | show widgets label if any
|
| |
|
table | size |
| | widget size {width, height}
|
| |
|
string | tooltip |
| | widget tooltip, default is name
|
| |
|
bool | visible |
| | boolean flag to toggle widget visibility
|
| |
|
int | width |
| | widget width in pixels
|
| |
|
int | x |
| | x position in pixels
|
| |
|
int | y |
| | y position in pixels
|
| |
Viewport widget.
creates a Viewport widget on the user inteface.
local panel = viewport:
Panel("panel")
| Viewport::Viewport |
( |
string |
name) | |
|
creates a Viewport widget on the user inteface.
- Parameters
-
| name | the name to give to the widget |