iPlug2 - C++ Audio Plug-in Framework
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
IVColorSpec Struct Reference

Contains a set of 9 colors used to theme IVControls. More...

#include <IGraphicsStructs.h>

Public Member Functions

const IColorGetColor (EVColor color) const
 
 IVColorSpec ()
 Create a new IVColorSpec object with default colors. More...
 
 IVColorSpec (const std::initializer_list< IColor > &colors)
 Create a new IVColorSpec object specifying the colors. More...
 
void ResetColors ()
 Reset the colors to the defaults. More...
 

Static Public Member Functions

static const IColorGetDefaultColor (EVColor idx)
 

Public Attributes

IColor mColors [kNumVColors]
 

Detailed Description

Contains a set of 9 colors used to theme IVControls.

Definition at line 2391 of file IGraphicsStructs.h.

Constructor & Destructor Documentation

◆ IVColorSpec() [1/2]

IVColorSpec::IVColorSpec ( )
inline

Create a new IVColorSpec object with default colors.

Definition at line 2421 of file IGraphicsStructs.h.

References ResetColors().

◆ IVColorSpec() [2/2]

IVColorSpec::IVColorSpec ( const std::initializer_list< IColor > &  colors)
inline

Create a new IVColorSpec object specifying the colors.

Parameters
colorsInitializer list of IColors

Definition at line 2428 of file IGraphicsStructs.h.

References GetDefaultColor().

Member Function Documentation

◆ GetColor()

const IColor & IVColorSpec::GetColor ( EVColor  color) const
inline
Returns
The IColor for the EVColor in this ColorSpec

Definition at line 2396 of file IGraphicsStructs.h.

Referenced by IVectorBase::GetColor().

◆ GetDefaultColor()

static const IColor & IVColorSpec::GetDefaultColor ( EVColor  idx)
inlinestatic
Returns
The default IColor for an EVColor

Definition at line 2402 of file IGraphicsStructs.h.

Referenced by IVColorSpec(), and ResetColors().

◆ ResetColors()

void IVColorSpec::ResetColors ( )
inline

Reset the colors to the defaults.

Definition at line 2446 of file IGraphicsStructs.h.

References GetDefaultColor().

Referenced by IVColorSpec().

Member Data Documentation

◆ mColors

IColor IVColorSpec::mColors[kNumVColors]

Definition at line 2393 of file IGraphicsStructs.h.


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