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:09] – jedi18 | dev:v3:gui_api:dialog:inputgui1 [2020/07/09 05:16] – 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: | ||
---- | ---- |