Table of Contents

Input GUI Widgets III


Text GUI Class


Github Link

 namespace lc::ui::api 

The Text GUI widget allows the user to enter data in a text format.


Constructor


Description

Constructs an Text GUI widget.

Examples


Get and Set Values


Description

Used to get and set the desired value for the text widget. Data of type string is returned.

Examples


Add Finish Callback


Description

Add a finish callback which is called when the user presses enter after entering the text or clicks somewhere else and the input gui loses focus. This is different from the dialog widget finish callback.

Examples


Add On Change Callback


Description

Add an on change callback which is called when the user types anything i.e. on any change to the text input.

Examples


Color Picker GUI Class


Github Link

 namespace lc::ui::api 

The Color Picker GUI widget allows the user to enter color data by choosing it visually.


Constructor


Description

Constructs a Color GUI widget.

Examples


Get and Set Values


Description

Used to get and set the desired value for the color widget. Data of type lc::Color is returned. setValue expects a lc::Color as parameter.

Examples


Add Callback


Description

Adds a callback which is called whenever a color is selected in the color gui widget.

Examples


Horizontal Group GUI Class


Github Link

 namespace lc::ui::api 

The Horizontal Group GUI widget allows the user to store the input gui widgets in a horizontal layout.


Constructor


Description

Constructs a Horizontal Group GUi widget. The input gui widgets in the group are added to the final value table but not the horizontal group.

Examples


Add Input GUI Widget


Description

Add an Input GUI widget to the horizontal group. Expects a key and gui widget as parameters.

Examples


RadioButton Group GUI Class


Github Link

 namespace lc::ui::api 

The RadioButton Group GUI widget allows the user to store the radio buttons in a group so that only one radio button can be selected in the group.


Constructor


Description

Constructs a RadioButton Group GUI class.

Examples


Add Radio Button


Description

Add an RadioButton GUI widget to the radio group. Expects a key and radiobutton as parameters.

Examples