#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 colours.
void drawGradient | ( | juce::Graphics & | g, |
juce::Rectangle< float > | bounds, | ||
const juce::Path & | shape ) |
References isEmpty(), and setupGradientFill().
void setup | ( | juce::String | text, |
const Stylesheet & | stylesheet ) |
void setupGradientFill | ( | juce::Graphics & | g, |
juce::Rectangle< float > | bounds ) |
bool isEmpty | ( | ) | const |
References colours, none, and type.
Referenced by drawGradient().
Referenced by clear(), isEmpty(), setup(), setupGradientFill(), and toString().
float angle = 0.0f |
Referenced by setup(), setupGradientFill(), and toString().
std::map<float, juce::Colour> colours |
Referenced by clear(), GradientBackground(), isEmpty(), setup(), setupGradientFill(), and toString().