diff options
| author | Dominik Kaiser | 2025-10-07 11:27:18 +0200 |
|---|---|---|
| committer | Dominik Kaiser | 2025-10-07 11:27:18 +0200 |
| commit | df4c72f990bc8f293af417bef893ee340874882a (patch) | |
| tree | f333afef3e52e6074aeaa2050b35a30c7cf9103f /src/UI/KnobWithLabel.h | |
| parent | c52f9a8babfffef1413df3e03dc6f16d5ffa2c85 (diff) | |
| download | SchroederReverb-df4c72f990bc8f293af417bef893ee340874882a.tar.gz SchroederReverb-df4c72f990bc8f293af417bef893ee340874882a.zip | |
Add KnobWithLabel class
Diffstat (limited to 'src/UI/KnobWithLabel.h')
| -rw-r--r-- | src/UI/KnobWithLabel.h | 20 |
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); +}; |
