• skip to content

Wiki

User Tools

  • Admin
  • Log In

Site Tools

  • Recent Changes
  • Media Manager
  • Sitemap
Trace:

dev:v3:gui_api:dialog:inputgui1

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
dev:v3:gui_api:dialog:inputgui1 [2020/07/09 12:38] – jedi18dev:v3:gui_api:dialog:inputgui1 [2020/07/10 03:56] (current) – jedi18
Line 178: Line 178:
  
   * <code lua> button1:addCallback(function() message("Button Clicked") end) </code>   * <code lua> button1:addCallback(function() message("Button Clicked") end) </code>
 +
 +----
 +
 +===== RadioButton GUI Class =====
 +
 +----
 +
 +[[https://github.com/LibreCAD/LibreCAD_3/blob/master/lcUI/widgets/guiAPI/radiobuttongui.h|Github Link]]
 +<code cpp-qt> namespace lc::ui::api </code>
 +
 +The RadioButton GUI class is used to add a RadioButton to a radio group of the dialog widget. Callbacks can be added to the button which is called when the radiobutton is checked.
 +
 +----
 +
 +==== Constructor ====
 +
 +----
 +
 +=== Description ===
 +
 +Constructs a radiobutton gui widget.
 +
 +=== Examples ===
 +
 +  * <code lua> local radio1 = gui.RadioButton("radio1") </code>
 +
 +----
 +
 +==== Add Callback ====
 +
 +----
 +
 +=== Description ===
 +
 +Add a callback to be called whenever the user clicks on the button toggling it's checked state.
 +
 +=== Examples ===
 +
 +  * <code lua> radio1:addCallback(function(toggled) message(tostring(toggled)) end) </code>
 +
 +----
 +
 +==== Checked and Set Checked ====
 +
 +----
 +
 +=== Description ===
 +
 +Used to get and the set the value of the radio button i.e. toggle the checked state of the radio button.
 +
 +
 +=== Examples ===
 +
 +  * <code lua> local val = radio1:checked() </code>
 +  * <code lua> radio1:setChecked(false) </code>
  
 ---- ----
dev/v3/gui_api/dialog/inputgui1.1594298332.txt.gz · Last modified: 2020/07/09 12:38 by jedi18

Page Tools

  • Show page
  • Old revisions
  • Backlinks
  • Export to PDF
  • Rename Page
  • Back to top
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki