VSTGUI  4.10
Graphical User Interface Framework not only for VST plugins
CGradient Class Reference

Gradient Object [new in 4.0]. More...

+ Inheritance diagram for CGradient:

Public Types

using ColorStopMap = std::multimap< double, CColor >
 

Public Member Functions

Member Access
void addColorStop (double start, const CColor &color)
 
virtual void addColorStop (const std::pair< double, CColor > &colorStop)
 
virtual void addColorStop (std::pair< double, CColor > &&colorStop)
 
const ColorStopMapgetColorStops () const
 
- Public Member Functions inherited from ReferenceCounted< T >
 ReferenceCounted ()=default
 
virtual ~ReferenceCounted () noexcept=default
 
 ReferenceCounted (const ReferenceCounted &)
 
ReferenceCountedoperator= (const ReferenceCounted &)
 
void forget () override
 decrease refcount and delete object if refcount == 0 More...
 
void remember () override
 increase refcount More...
 
virtual int32_t getNbReference () const
 get refcount More...
 
virtual void beforeDelete ()
 

Static Public Member Functions

static CGradientcreate (const ColorStopMap &colorStopMap)
 
static CGradientcreate (double color1Start, double color2Start, const CColor &color1, const CColor &color2)
 

Protected Member Functions

 CGradient (double color1Start, double color2Start, const CColor &color1, const CColor &color2)
 
 CGradient (const ColorStopMap &colorStopMap)
 

Protected Attributes

ColorStopMap colorStops
 

Detailed Description

Gradient Object [new in 4.0].

Member Typedef Documentation

◆ ColorStopMap

using ColorStopMap = std::multimap<double, CColor>

Constructor & Destructor Documentation

◆ CGradient() [1/2]

CGradient ( double  color1Start,
double  color2Start,
const CColor color1,
const CColor color2 
)
inlineprotected

◆ CGradient() [2/2]

CGradient ( const ColorStopMap colorStopMap)
inlineexplicitprotected

Member Function Documentation

◆ addColorStop() [1/3]

void addColorStop ( double  start,
const CColor color 
)
inline

◆ addColorStop() [2/3]

virtual void addColorStop ( const std::pair< double, CColor > &  colorStop)
inlinevirtual

◆ addColorStop() [3/3]

virtual void addColorStop ( std::pair< double, CColor > &&  colorStop)
inlinevirtual

◆ create() [1/2]

static CGradient* create ( const ColorStopMap colorStopMap)
static

◆ create() [2/2]

static CGradient* create ( double  color1Start,
double  color2Start,
const CColor color1,
const CColor color2 
)
inlinestatic

◆ getColorStops()

const ColorStopMap& getColorStops ( ) const
inline

Member Data Documentation

◆ colorStops

ColorStopMap colorStops
protected

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