5 #include <libraries/Gui/Gui.h>
14 std::vector<GuiSlider> _sliders;
21 int sendSliderValue(
int sliderIndex);
29 int setup(
Gui *gui, std::string name);
33 int addSlider(std::string name,
float value = 0.5f,
float min = 0.0f,
float max = 1.0,
float step = 0.001f);
35 float getSliderValue(
int sliderIndex);
36 int setSliderValue(
int sliderIndex,
float value);
37 GuiSlider& getSlider(
int sliderIndex) {
return _sliders.at(sliderIndex); };
39 std::string getName() {
return _name; };
41 int getNumSliders() {
return _sliders.size(); };
43 static bool controlCallback(JSONObject &root,
void* param);
Definition: GuiSlider.h:6
static float min(float x, float y)
Returns the maximum of two numbers.
Definition: Utilities.h:92
Definition: GuiController.h:12
static float max(float x, float y)
Returns the minimum of two numbers.
Definition: Utilities.h:88