aboutsummaryrefslogtreecommitdiff
path: root/src/UI/KnobWithLabel.h
blob: 6be2316a887830994fddef9d9d806b1caee1954f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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);
};