diff --git a/src/UI/UI_dial.cpp b/src/UI/UI_dial.cpp index e1ab129..6f42b4b 100644 --- a/src/UI/UI_dial.cpp +++ b/src/UI/UI_dial.cpp @@ -26,6 +26,16 @@ double UI_dial::value() const return m_value; } +double UI_dial::min() const +{ + return m_min; +} + +double UI_dial::max() const +{ + return m_max; +} + void UI_dial::from_json(const json& j) { UI_item::from_json(j); diff --git a/src/UI/UI_dial.hpp b/src/UI/UI_dial.hpp index b94a85a..36a5950 100644 --- a/src/UI/UI_dial.hpp +++ b/src/UI/UI_dial.hpp @@ -12,6 +12,9 @@ class UI_dial : public UI_item void set_value(double value) override; double value() const; + double min() const; + double max() const; + void from_json(const json& j) override; json to_json() const override; private: diff --git a/src/UI/UI_slider.cpp b/src/UI/UI_slider.cpp index 3f0f763..405fd53 100644 --- a/src/UI/UI_slider.cpp +++ b/src/UI/UI_slider.cpp @@ -31,6 +31,16 @@ double UI_slider::value() const return m_value; } +double UI_slider::min() const +{ + return m_min; +} + +double UI_slider::max() const +{ + return m_max; +} + void UI_slider::from_json(const json& j) { UI_item::from_json(j); diff --git a/src/UI/UI_slider.hpp b/src/UI/UI_slider.hpp index 994b2dd..7cbd816 100644 --- a/src/UI/UI_slider.hpp +++ b/src/UI/UI_slider.hpp @@ -12,6 +12,9 @@ class UI_slider : public UI_item void set_value(double value) override; double value() const; + double min() const; + double max() const; + void from_json(const json& j) override; json to_json() const override; private: diff --git a/src/UI/UI_thermo.cpp b/src/UI/UI_thermo.cpp index be3db8b..fe7a059 100644 --- a/src/UI/UI_thermo.cpp +++ b/src/UI/UI_thermo.cpp @@ -26,6 +26,16 @@ double UI_thermo::value() const return m_value; } +double UI_thermo::min() const +{ + return m_min; +} + +double UI_thermo::max() const +{ + return m_max; +} + void UI_thermo::set_start_color(Color color) { this->m_color_map[0] = color; diff --git a/src/UI/UI_thermo.hpp b/src/UI/UI_thermo.hpp index 12077da..a255771 100644 --- a/src/UI/UI_thermo.hpp +++ b/src/UI/UI_thermo.hpp @@ -13,6 +13,9 @@ class UI_thermo : public UI_item void set_value(double value) override; double value() const; + double min() const; + double max() const; + void set_start_color(Color color); void set_end_color(Color color); void add_color_stop(double value, Color color);