This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| dev:v3:gui_api:dialog:inputgui3 [2020/07/09 14:56] – created jedi18 | dev:v3:gui_api:dialog:inputgui3 [2020/07/10 03:49] (current) – jedi18 | ||
|---|---|---|---|
| Line 68: | Line 68: | ||
| * <code lua> text1: | * <code lua> text1: | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ===== Color Picker GUI Class ===== | ||
| + | |||
| + | ---- | ||
| + | |||
| + | [[https:// | ||
| + | <code cpp-qt> 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 === | ||
| + | |||
| + | * <code lua> local color1 = gui.Color(" | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ==== Get and Set Values ==== | ||
| + | |||
| + | ---- | ||
| + | |||
| + | === Description === | ||
| + | |||
| + | Used to get and set the desired value for the color widget. Data of type // | ||
| + | |||
| + | === Examples === | ||
| + | |||
| + | * <code lua> local col = color1: | ||
| + | * <code lua> color1: | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ==== Add Callback ==== | ||
| + | |||
| + | ---- | ||
| + | |||
| + | === Description === | ||
| + | |||
| + | Adds a callback which is called whenever a color is selected in the color gui widget. | ||
| + | |||
| + | === Examples === | ||
| + | |||
| + | * <code lua> color1: | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ===== Horizontal Group GUI Class ===== | ||
| + | |||
| + | ---- | ||
| + | |||
| + | [[https:// | ||
| + | <code cpp-qt> 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 === | ||
| + | |||
| + | * <code lua> local horiz1 = gui.HorizontalGroup(" | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ==== Add Input GUI Widget ==== | ||
| + | |||
| + | ---- | ||
| + | |||
| + | === Description === | ||
| + | |||
| + | Add an Input GUI widget to the horizontal group. Expects a key and gui widget as parameters. | ||
| + | |||
| + | === Examples === | ||
| + | |||
| + | * <code lua> local angle1 = gui.Angle(" | ||
| + | | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ===== RadioButton Group GUI Class ===== | ||
| + | |||
| + | ---- | ||
| + | |||
| + | [[https:// | ||
| + | <code cpp-qt> 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 === | ||
| + | |||
| + | * <code lua> local radiogroup1 = gui.RadioGroup(" | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ==== Add Radio Button ==== | ||
| + | |||
| + | ---- | ||
| + | |||
| + | === Description === | ||
| + | |||
| + | Add an RadioButton GUI widget to the radio group. Expects a key and radiobutton as parameters. | ||
| + | |||
| + | === Examples === | ||
| + | |||
| + | * <code lua> local radio1 = gui.RadioButton(" | ||
| + | | ||
| ---- | ---- | ||