14 const char* kModulationStrings[] = {
22 other_modulations_ = std::make_unique<ModulationTabSelector>(
"OTHER", 2, kModulationStrings);
23 other_modulations_->getButton(0)->overrideText(
"PITCH WHL");
24 other_modulations_->getButton(1)->overrideText(
"MOD WHL");
25 other_modulations_->drawBorders(
true);
27 other_modulations_->registerModulationButtons(
this);
28 other_modulations_->setVertical(
true);
31 macro_knobs_ = std::make_unique<MacroKnobSection>(
"MACRO");
40 Rectangle<int> bounds = getLocalArea(other_modulations_.get(), other_modulations_->getLocalBounds());
41 g.reduceClipRegion(bounds);
42 g.setOrigin(bounds.getTopLeft());
43 other_modulations_->paintBackground(g);
63 int macro_height = 4 * (2 * knob_section_height - widget_margin + padding) - padding;
64 int mod_height = getHeight() - macro_height - padding;
67 macro_knobs_->setBounds(0, 0, getWidth(), macro_height);
68 other_modulations_->setBounds(0, macro_height + padding, getWidth(), mod_height);
Base class for all synthesizer sections, providing UI layout, painting, and interaction logic.
Definition synth_section.h:193
float getModFontSize()
Definition synth_section.cpp:672
float getPadding()
Definition synth_section.cpp:660
virtual void paintBackgroundShadow(Graphics &g)
Stub for painting background shadows. Overridden by subclasses if needed.
Definition synth_section.h:445
void addSubSection(SynthSection *section, bool show=true)
Adds a subsection (another SynthSection) as a child.
Definition synth_section.cpp:457
virtual void resized() override
Called when the component is resized. Arranges layout of child components.
Definition synth_section.cpp:35
void paintChildrenBackgrounds(Graphics &g)
Paints the backgrounds for all child sections.
Definition synth_section.cpp:274
float getKnobSectionHeight()
Definition synth_section.cpp:633
virtual void paintTabShadow(Graphics &g)
Paints a tab-like shadow effect around the component.
Definition synth_section.cpp:188
float getWidgetMargin()
Definition synth_section.cpp:676
A struct holding references and data used by the GUI to interact with the SynthBase.
Definition synth_gui_interface.h:27