This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
dev:v3:gui_api:dialog:inputgui1 [2020/07/09 05:16] – jedi18 | dev:v3:gui_api:dialog:inputgui1 [2020/07/09 06:08] – jedi18 | ||
---|---|---|---|
Line 178: | Line 178: | ||
* <code lua> button1: | * <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: | ||
---- | ---- |