Vital
Loading...
Searching...
No Matches
macro_knob_section.h
Go to the documentation of this file.
1#pragma once
2
3#include "JuceHeader.h"
4#include "synth_section.h"
5#include "synth_constants.h"
6
7class MacroLabel;
9
21public:
27 MacroKnobSection(String name);
28
33
42 void paintBackground(Graphics& g) override;
43
49 void resized() override;
50
51private:
55 std::unique_ptr<SingleMacroSection> macros_[vital::kNumMacros];
56
57 JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(MacroKnobSection)
58};
A section of the UI dedicated to displaying and editing multiple macro knobs.
Definition macro_knob_section.h:20
MacroKnobSection(String name)
Constructs a new MacroKnobSection.
Definition macro_knob_section.cpp:266
void resized() override
Called when the component is resized.
Definition macro_knob_section.cpp:282
void paintBackground(Graphics &g) override
Paints the background of the macro knob section.
Definition macro_knob_section.cpp:278
~MacroKnobSection()
Destructor.
Definition macro_knob_section.cpp:276
A custom label for displaying macro names.
Definition macro_knob_section.cpp:15
Represents a single macro knob and associated controls (label, edit button, source button).
Definition macro_knob_section.cpp:76
Base class for all synthesizer sections, providing UI layout, painting, and interaction logic.
Definition synth_section.h:193
constexpr int kNumMacros
Number of macro controls available.
Definition synth_constants.h:28