This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
dev:v3:gui_api:dialog:inputgui1 [2020/07/09 05:09] – jedi18 | dev:v3:gui_api:dialog:inputgui1 [2020/07/09 06:08] – jedi18 | ||
---|---|---|---|
Line 139: | Line 139: | ||
* <code lua> angle1: | * <code lua> angle1: | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Button GUI Class ===== | ||
+ | |||
+ | ---- | ||
+ | |||
+ | [[https:// | ||
+ | <code cpp-qt> namespace lc::ui::api </ | ||
+ | |||
+ | The Button GUI class is used to add a button to the dialog widget. Callbacks can be added to the button which is called when the button is clicked. | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Constructor ==== | ||
+ | |||
+ | ---- | ||
+ | |||
+ | === Description === | ||
+ | |||
+ | Constructs an button gui widget | ||
+ | |||
+ | === Examples === | ||
+ | |||
+ | * <code lua> local button1 = gui.ButtonGUI(" | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Add Callback ==== | ||
+ | |||
+ | ---- | ||
+ | |||
+ | === Description === | ||
+ | |||
+ | Add a callback to be called whenever the user clicks on the button. | ||
+ | |||
+ | === Examples === | ||
+ | |||
+ | * <code lua> button1: | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Checkbox GUI Class ===== | ||
+ | |||
+ | ---- | ||
+ | |||
+ | [[https:// | ||
+ | <code cpp-qt> namespace lc::ui::api </ | ||
+ | |||
+ | The Checkbox GUI class is used to add a checkbox to the dialog widget. Callbacks can be added to the checkbox which is called when the checkbox is checked or unchecked. | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Constructor ==== | ||
+ | |||
+ | ---- | ||
+ | |||
+ | === Description === | ||
+ | |||
+ | Constructs an checkbox gui widget | ||
+ | |||
+ | === Examples === | ||
+ | |||
+ | * <code lua> local check1 = gui.CheckBoxGUI(" | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Add Callback ==== | ||
+ | |||
+ | ---- | ||
+ | |||
+ | === Description === | ||
+ | |||
+ | Add a callback to be called whenever the user checks or unchecks the checkbox.Passes in a bool representing whether the button is checked or not. | ||
+ | |||
+ | === Examples === | ||
+ | |||
+ | * <code lua> check1: | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Set checked and Is checked ==== | ||
+ | |||
+ | ---- | ||
+ | |||
+ | === Description === | ||
+ | |||
+ | Check if the checkbox is checked or set the checkbox to be checked/ | ||
+ | |||
+ | === Examples === | ||
+ | |||
+ | * <code lua> local isChecked = check1: | ||
+ | * <code lua> check1: | ||
---- | ---- |