aboutsummaryrefslogtreecommitdiff
path: root/src/UI/KnobWithLabel.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/UI/KnobWithLabel.h')
-rw-r--r--src/UI/KnobWithLabel.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/UI/KnobWithLabel.h b/src/UI/KnobWithLabel.h
new file mode 100644
index 0000000..6be2316
--- /dev/null
+++ b/src/UI/KnobWithLabel.h
@@ -0,0 +1,20 @@
+#pragma once
+
+#include <juce_audio_processors/juce_audio_processors.h>
+#include <juce_gui_basics/juce_gui_basics.h>
+
+class KnobWithLabel : public juce::Component
+{
+ public:
+ KnobWithLabel(const juce::String& text, juce::AudioParameterFloat* param);
+ ~KnobWithLabel();
+
+ void resized() override;
+
+ private:
+ juce::Slider knob;
+ juce::Label label;
+ juce::AudioParameterFloat* param = nullptr;
+
+ JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(KnobWithLabel);
+};