Base class: Object

Lua
C++
Edit

Widget

This class handle user interface elements. A variety of widget types are supported.

Property Type Description
items table read-only items list
kids table read-only container of child widgets
size iVec2 read-only widget size
text string read-only widget text
AddItem Method adds a widget item
AddNode Method adds a node to a treeview widget
ClearItems Method removes all widget items
ClientSize Method returns the client area
GetItemText Method gets the widget item text
GetHidden Method returns the widget visibility
GetInterface Method gets the widget interface
GetParent Method returns the widget parent
GetPosition Method gets the button position
GetSelectedItem Method gets the selected widget item
GetSelectedNode Method gets the selected treeview node
GetSize Method gets the widget size
GetState Method gets the widget state
GetText Method gets the widget text
GetValue Method gets a slider's value
Paint Method redraws a widget
RemoveItem Method removes a widget item
SetColor Method sets the widget color
SetFontBold Method sets the widget font weight
SetFontScale Method sets the widget font scale
SetHidden Method hides or shows the widget
SetIcon Method applies an icon to the widget
SetInteractive Method applies an icon to the widget
SetItemState Method modifies the item state
SetItemText Method modifies the item text
SetLayout Method controls the way a widget behaves during resizing
SetParent Method makes this widget the child of the parent widget
SetPixmap Method applies a pixmap to the widget
SetProgress Method sets the progress complete for a progress bar widget
SetShape Method sets the widget position sna size
SetRange Method sets the range of a slider widget
SetState Method sets the button state
SetText Method sets the widget text
SetTexture Method applies a texture to a widget in a 3D interface
SetValue Method sets the value of a slider
SelectItem Method selects a widget item
SelectNode Method selects a treeview node
CreateButton Function creates a button widget
CreateComboBox Function creates a combobox widget
CreateLabel Function creates a label widget
CreateListBox Function creates a listbox widget
CreateMenu Function creates a menu widget
CreatePanel Function creates a panel widget
CreateProgressBar Function creates a progress bar widget
CreateSlider Function creates a slider widget
CreateTextArea Function creates a text area widget
CreateTextField Function creates a text field widget
CreateTreeView Function creates a treeview widget
Copyright © 2024 Ultra Software.
All rights reserved.