12#include "../containers/box_container.h"
13#include "../shapes/text.h"
20 Slider(
float rangeMin,
float rangeMax);
23 Orientation getOrientation()
const;
24 void setOrientation(Orientation orientation);
26 float getRangeMin()
const;
27 void setRangeMin(
float min);
29 float getRangeMax()
const;
30 void setRangeMax(
float max);
32 float getValue()
const;
33 void setValue(
float value);
35 void addOnPropertyChange(Sml::PropertyChangeListener<float>* listener);
36 const std::list<Sml::PropertyChangeListener<float>*>& getOnPropertyChange();
39 Orientation m_Orientation = Orientation::HORIZONTAL;
45 std::list<Sml::PropertyChangeListener<float>*> m_PropertyChangeListeners;
51 static const int32_t DEFAULT_SPACING;
54 SliderWithLabel(
float rangeMin,
float rangeMax,
const char* format =
"%lg");
61 Slider* m_Slider =
nullptr;
62 Text* m_Label =
nullptr;
63 const char* m_Format =
nullptr;