class GUIEnumListBoxField

Similar to GUIListBoxField, but allows a integer value associated with each value, and an easy way to retrieve the bitmask of all the set values.

Public

Methods

staticGetGuiTypeName

static const String &GetGuiTypeName()

Returns type name of the GUI element used for finding GUI element styles.

SetBitmask

void SetBitmask(u64 bitmask)

Bitmask of all the selected values in the list box.

GetBitmask

u64 GetBitmask() const

staticCreate

static GUIElementType *Create(const ContentType &contents, const String &styleClass, const TInlineArray<GUIOption, 4> &options)

Creates a new GUI element.

contents
Structure describing the contents of the GUI element to create.
styleClass
Style class that will be used for determining GUI element visuals from the current style sheet. If no class is provided, default style is determined based on GUI element type.
options
Additional options that control GUI element size and position. This will override options set in the style sheet.

Fields

OnValueChanged

Event<void (u64)> OnValueChanged

Triggers when an element is selected or deselected.

Provides a bitmask of all the currently selected elements.

Internal

Constructors

GUIEnumListBoxField

GUIEnumListBoxField(PrivatelyConstruct, const GUIEnumListBoxFieldContent &content, const String &style, const GUISizeConstraints &sizeConstraints)

Private

Methods

DoOnSelectionChanged

void DoOnSelectionChanged(u32 newIndex, bool enabled) override

Triggered when the selected list box element changes.

Fields

mElementValues

Vector<u64> mElementValues