This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
dev:v3:gui_api:dialog:inputgui2 [2020/07/09 12:36] – jedi18 | dev:v3:gui_api:dialog:inputgui2 [2020/07/09 12:41] (current) – jedi18 | ||
---|---|---|---|
Line 218: | Line 218: | ||
* <code lua> number1: | * <code lua> number1: | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Slider GUI Class ===== | ||
+ | |||
+ | ---- | ||
+ | |||
+ | [[https:// | ||
+ | <code cpp-qt> namespace lc::ui::api </ | ||
+ | |||
+ | The slider gui widget is used for values that could use a slider input. | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Constructor ==== | ||
+ | |||
+ | ---- | ||
+ | |||
+ | === Description === | ||
+ | |||
+ | Constructs a Slider GUI Widget. | ||
+ | |||
+ | === Examples === | ||
+ | |||
+ | * <code lua> local slider1 = gui.Slider(" | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Get Values ==== | ||
+ | |||
+ | ---- | ||
+ | |||
+ | === Description === | ||
+ | |||
+ | Gets the value of the slider widget. Returns a //double// value. | ||
+ | |||
+ | === Examples === | ||
+ | |||
+ | * <code lua> local val = slider1: | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Set Value ==== | ||
+ | |||
+ | ---- | ||
+ | |||
+ | === Description === | ||
+ | |||
+ | Sets the slider widget value. Expects a //double// parameter. | ||
+ | |||
+ | === Examples === | ||
+ | |||
+ | * <code lua> slider1: | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Add Callback ==== | ||
+ | |||
+ | ---- | ||
+ | |||
+ | === Description === | ||
+ | |||
+ | Add callback for when the slider value is changed. | ||
+ | |||
+ | === Examples === | ||
+ | |||
+ | * <code lua> slider1: | ||
---- | ---- |