Gin
|
A box for knobs with a header. More...
Public Member Functions | |
ParamBox (const juce::String &name) | |
void | setTitle (const juce::String &name) |
void | addHeader (const juce::StringArray names, int idx, gin::Parameter::Ptr p) |
void | addEnable (gin::Parameter::Ptr p, bool includeButton=true) |
void | addModSource (juce::Component *c) |
void | addControl (juce::Component *c) |
void | addControl (juce::Component *p, juce::Component *c) |
void | addControl (juce::Component *c, int x, int y, int cx=1, int cy=1) |
void | addControl (juce::Component *c, float x, float y, float cx=1.0f, float cy=1.0f) |
ParamHeader & | getHeader () |
juce::Component & | getFrame () |
Public Member Functions inherited from MultiParamComponent | |
MultiParamComponent () | |
~MultiParamComponent () override | |
juce::Colour | dimIfNeeded (const juce::Colour &c) |
Public Member Functions inherited from Parameter::ParameterListener | |
virtual | ~ParameterListener () |
Protected Member Functions | |
void | paramChanged () override |
void | paint (juce::Graphics &g) override |
void | resized () override |
juce::Rectangle< int > | getGridArea (int x, int y, int cx=1, int cy=1) |
juce::Rectangle< int > | getGridArea (float x, float y, float cx=1.0f, float cy=1.0f) |
Protected Member Functions inherited from MultiParamComponent | |
void | showBubble (const juce::String &text, const juce::Rectangle< int > &rc) |
void | hideBubble () |
void | watchParam (Parameter *p) |
void | unwatchParam (Parameter *p) |
void | unwatchParams () |
void | enablementChanged () override |
void | valueUpdated (Parameter *) override |
void | handleAsyncUpdate () override |
Protected Attributes | |
ParamHeader | header |
juce::Component | frame |
juce::OwnedArray< Component > | controls |
juce::OwnedArray< Component > | modSources |
gin::Parameter::Ptr | enableParam = nullptr |
juce::OwnedArray< HeaderButton > | headers |
gin::Parameter::Ptr | headerParam = nullptr |
int | headerIndex = 0 |
Protected Attributes inherited from MultiParamComponent | |
juce::Array< Parameter * > | params |
std::unique_ptr< juce::BubbleMessageComponent > | bubble |
A box for knobs with a header.
ParamBox::ParamBox | ( | const juce::String & | name | ) |
References addAndMakeVisible(), frame, and header.
void ParamBox::setTitle | ( | const juce::String & | name | ) |
References header, and ParamHeader::setTitle().
Referenced by addHeader().
void ParamBox::addHeader | ( | const juce::StringArray | names, |
int | idx, | ||
gin::Parameter::Ptr | p | ||
) |
References header, headerIndex, headerParam, headers, paramChanged(), setTitle(), and MultiParamComponent::watchParam().
void ParamBox::addEnable | ( | gin::Parameter::Ptr | p, |
bool | includeButton = true |
||
) |
References addAndMakeVisible(), controls, enableParam, Assets::power, and MultiParamComponent::watchParam().
void ParamBox::addModSource | ( | juce::Component * | c | ) |
References addAndMakeVisible(), and modSources.
void ParamBox::addControl | ( | juce::Component * | p, |
juce::Component * | c | ||
) |
References controls.
void ParamBox::addControl | ( | juce::Component * | c, |
int | x, | ||
int | y, | ||
int | cx = 1 , |
||
int | cy = 1 |
||
) |
References controls, frame, and getGridArea().
void ParamBox::addControl | ( | juce::Component * | c, |
float | x, | ||
float | y, | ||
float | cx = 1.0f , |
||
float | cy = 1.0f |
||
) |
References controls, frame, and getGridArea().
ParamHeader& ParamBox::getHeader | ( | ) |
References header.
juce::Component& ParamBox::getFrame | ( | ) |
References frame.
|
overrideprotectedvirtual |
Reimplemented from MultiParamComponent.
References enableParam, frame, headerIndex, headerParam, headers, modSources, and MultiParamComponent::paramChanged().
Referenced by addHeader().
|
overrideprotected |
References gradientRect(), GinLookAndFeel::matte1ColourId, and GinLookAndFeel::matte2ColourId.
|
overrideprotected |
References frame, header, headers, and modSources.
|
protected |
Referenced by addControl().
|
protected |
|
protected |
Referenced by addHeader(), getHeader(), ParamBox(), resized(), and setTitle().
|
protected |
Referenced by addControl(), getFrame(), ParamBox(), paramChanged(), and resized().
|
protected |
Referenced by addControl(), and addEnable().
|
protected |
Referenced by addModSource(), paramChanged(), and resized().
|
protected |
Referenced by addEnable(), and paramChanged().
|
protected |
Referenced by addHeader(), paramChanged(), and resized().
|
protected |
Referenced by addHeader(), and paramChanged().
|
protected |
Referenced by addHeader(), and paramChanged().