Window
From TargetWiki
Window is an element of a GUI that is a specialization of a Group. All widget and group functions can be called on a window. Since a button is a Lua object, calls should use the object:function() syntax. Also, all Lua object functions can also be called on a window.
[edit]
Functions
- title()
- Returns the <string> title of the window.
- settitle( <string> )
- Sets the title of the window.
- position()
- Returns the x and y position and the width and height of the window relative to its parent, ranging from 0 to 1.
- setposition( <x>, <y>, <width>, <height> )
- Sets the position and size of the window relative to its parent. Values should range from 0 to 1.
Categories: Lua | GUI | Widgets
