Classes | |
| struct | ClientBounds |
Public Member Functions | |
| Decorator ()=default | |
| void | configure (MagicGUIBuilder &builder, const juce::ValueTree &node) |
| This will get the necessary information from the stylesheet, using inheritance of nodes if needed, to set the margins/borders etc. More... | |
| void | reset () |
| void | updateColours (MagicGUIBuilder &builder, const juce::ValueTree &node) |
| void | drawDecorator (juce::Graphics &g, juce::Rectangle< int > bounds) |
| Decorator::ClientBounds | getClientBounds (juce::Rectangle< int > overallBounds) const |
| juce::String | getTabCaption (const juce::String &defaultName) const |
| juce::Colour | getTabColour () const |
| juce::Colour | getBackgroundColour () const |
|
default |
| void configure | ( | MagicGUIBuilder & | builder, |
| const juce::ValueTree & | node | ||
| ) |
This will get the necessary information from the stylesheet, using inheritance of nodes if needed, to set the margins/borders etc.
for the GuiItem.
References MagicGUIBuilder::getStyleProperty(), MagicGUIBuilder::getStylesheet(), and GradientBackground::setup().
Referenced by GuiItem::updateInternal().
| void reset | ( | ) |
References GradientBackground::clear().
| void updateColours | ( | MagicGUIBuilder & | builder, |
| const juce::ValueTree & | node | ||
| ) |
References MagicGUIBuilder::getStyleProperty(), and MagicGUIBuilder::getStylesheet().
Referenced by GuiItem::updateColours(), and Container::updateColours().
| void drawDecorator | ( | juce::Graphics & | g, |
| juce::Rectangle< int > | bounds | ||
| ) |
References GradientBackground::drawGradient(), Decorator::getClientBounds(), GradientBackground::isEmpty(), and Box< T >::reducedRect().
Referenced by GuiItem::paint().
| Decorator::ClientBounds getClientBounds | ( | juce::Rectangle< int > | overallBounds | ) | const |
References Box< T >::reducedRect().
Referenced by Decorator::drawDecorator(), and GuiItem::getClientBounds().
| juce::String getTabCaption | ( | const juce::String & | defaultName | ) | const |
Referenced by GuiItem::getTabCaption().
| juce::Colour getTabColour | ( | ) | const |
Referenced by GuiItem::getTabColour().
| juce::Colour getBackgroundColour | ( | ) | const |
Referenced by Container::updateLayout().