foleys_gui_magic
WYSWYG editor for JUCE GUIs including Visualisers
Public Types | Public Member Functions | Public Attributes | List of all members
GradientBackground Class Reference

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)
 
juce::String toString () const
 
void clear ()
 
bool isEmpty () const
 

Public Attributes

Type type = none
 
float angle = 0.0f
 
std::map< float, juce::Colour > colours
 

Member Enumeration Documentation

◆ Type

enum Type
Enumerator
none 
linear 
radial 

Constructor & Destructor Documentation

◆ GradientBackground()

Member Function Documentation

◆ drawGradient()

void drawGradient ( juce::Graphics &  g,
juce::Rectangle< float >  bounds,
const juce::Path &  shape 
)

◆ setup()

void setup ( juce::String  text,
const Stylesheet stylesheet 
)

Referenced by Decorator::configure().

◆ toString()

juce::String toString ( ) const

◆ clear()

void clear ( )

◆ isEmpty()

bool isEmpty ( ) const

Member Data Documentation

◆ type

Type type = none

◆ angle

float angle = 0.0f

◆ colours

std::map<float, juce::Colour> colours

The documentation for this class was generated from the following files: