From df4c72f990bc8f293af417bef893ee340874882a Mon Sep 17 00:00:00 2001 From: Dominik Kaiser Date: Tue, 7 Oct 2025 11:27:18 +0200 Subject: Add KnobWithLabel class --- src/UI/KnobWithLabel.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/UI/KnobWithLabel.h (limited to 'src/UI/KnobWithLabel.h') 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 +#include + +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); +}; -- cgit v1.2.3