Signed-off-by: falkTX <falktx@falktx.com>pull/498/head
| @@ -144,6 +144,9 @@ public: | |||||
| // NOTE: value is assumed to be scaled if using log | // NOTE: value is assumed to be scaled if using log | ||||
| void setDefault(float def) noexcept; | void setDefault(float def) noexcept; | ||||
| float getMinimum() const noexcept; | |||||
| float getMaximum() const noexcept; | |||||
| // NOTE: value is assumed to be scaled if using log | // NOTE: value is assumed to be scaled if using log | ||||
| void setRange(float min, float max) noexcept; | void setRange(float min, float max) noexcept; | ||||
| @@ -719,6 +719,16 @@ void KnobEventHandler::setDefault(const float def) noexcept | |||||
| pData->usingDefault = true; | pData->usingDefault = true; | ||||
| } | } | ||||
| float KnobEventHandler::getMinimum() const noexcept | |||||
| { | |||||
| return pData->minimum; | |||||
| } | |||||
| float KnobEventHandler::getMaximum() const noexcept | |||||
| { | |||||
| return pData->maximum; | |||||
| } | |||||
| void KnobEventHandler::setRange(const float min, const float max) noexcept | void KnobEventHandler::setRange(const float min, const float max) noexcept | ||||
| { | { | ||||
| pData->setRange(min, max); | pData->setRange(min, max); | ||||