WYSWYG editor for JUCE GUIs including Visualisers
Loading...
Searching...
No Matches
GradientBackground Class Reference

#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
 

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()

◆ setupGradientFill()

void setupGradientFill ( juce::Graphics & g,
juce::Rectangle< float > bounds )

◆ toString()

◆ clear()

◆ isEmpty()

Member Data Documentation

◆ type

◆ angle

◆ colours


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