class
GUIListBoxFieldBase
Base class for GUIListBoxField and GUIEnumListBoxField.
Public
Methods
IsMultiselect
Checks whether the listbox supports multiple selected elements at once.
SelectElement
Selects an element with the specified index.
DeselectElement
Deselect element the element with the specified index.
Only relevant for multi-select list boxes.
GetSelectedElementIndex
Returns the index of the currently selected element.
If the list box allows multi-select, returns the index of the first selected element, or ~0u if none is selected.
GetElementStates
Returns states of all element in the list box (enabled or disabled).
SetElementStates
Sets states for all list box elements.
Only valid for multi-select list boxes. Number of states must match number of list box elements.
Fields
OnSelectionChanged
Triggers when a new element is selected.
Provides index to the element.
Protected
Constructors
GUIListBoxFieldBase
Methods
~GUIListBoxFieldBase
UpdateLayoutForChildren
Calculates sizes and relative positions for all child elements.
Should be preceded with a call to UpdateOptimalLayoutSizes().
CalculateUnconstrainedOptimalSize
Calculates the optimal size for the GUI element, ignoring size constraints.
DoOnSelectionChanged
Triggered when the selected list box element changes.