#include <foleys_GradientBackground.h>
Public Types | |
enum | Type { none = 0 , linear , radial } |
Public Member Functions | |
GradientBackground () | |
void | drawGradient (juce::Graphics &g, juce::Rectangle< float > bounds, const juce::Path &shape) |
void | setup (juce::String text, const Stylesheet &stylesheet) |
void | setupGradientFill (juce::Graphics &g, juce::Rectangle< float > bounds) |
juce::String | toString () const |
void | clear () |
bool | isEmpty () const |
Public Attributes | |
Type | type = none |
float | angle = 0.0f |
std::map< float, juce::Colour > | colours |
enum Type |
References GradientBackground::colours.
void drawGradient | ( | juce::Graphics & | g, |
juce::Rectangle< float > | bounds, | ||
const juce::Path & | shape ) |
References GradientBackground::isEmpty(), and GradientBackground::setupGradientFill().
Referenced by Decorator::drawDecorator().
void setup | ( | juce::String | text, |
const Stylesheet & | stylesheet ) |
void setupGradientFill | ( | juce::Graphics & | g, |
juce::Rectangle< float > | bounds ) |
juce::String toString | ( | ) | const |
void clear | ( | ) |
References GradientBackground::colours, GradientBackground::none, and GradientBackground::type.
Referenced by Decorator::reset(), and GradientBackground::setup().
bool isEmpty | ( | ) | const |
References GradientBackground::colours, GradientBackground::none, and GradientBackground::type.
Referenced by Decorator::drawDecorator(), and GradientBackground::drawGradient().
float angle = 0.0f |
std::map<float, juce::Colour> colours |