summaryrefslogtreecommitdiff
path: root/plugingui/knob.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2017-02-17 20:24:10 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2017-02-17 20:24:10 +0100
commited5366c2c39d6f06dc0c394feff75047e30b8a55 (patch)
tree02a353681c566d0f0d69eff8f2b02ac0f7ac4843 /plugingui/knob.h
parent2edbdee2c1c9db7c30a699b1f0c2eeebfd9e3d6b (diff)
Make Knob support ranges other than [0; 1].
Diffstat (limited to 'plugingui/knob.h')
-rw-r--r--plugingui/knob.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugingui/knob.h b/plugingui/knob.h
index 64d66e1..5710b78 100644
--- a/plugingui/knob.h
+++ b/plugingui/knob.h
@@ -44,6 +44,7 @@ public:
bool isFocusable() override { return true; }
void setValue(float value);
+ void setRange(float minimum, float maximum);
float value();
Notifier<float> valueChangedNotifier; // (float newValue)
@@ -69,7 +70,7 @@ private:
state_t state;
- float currentValue;
+ float current_value;
float maximum;
float minimum;