JUCE  v5.4.1-191-g0ab5e696f
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::LookAndFeel_V4::ColourScheme Class Reference

A struct containing the set of colours to apply to the GUI. More...

#include <juce_LookAndFeel_V4.h>

Collaboration diagram for juce::LookAndFeel_V4::ColourScheme:

Public Types

enum  UIColour {
  windowBackground = 0,
  widgetBackground,
  menuBackground,
  outline,
  defaultText,
  defaultFill,
  highlightedText,
  highlightedFill,
  menuText,
  numColours
}
 The standard set of colours to use. More...
 

Public Member Functions

template<typename... ItemColours>
 ColourScheme (ItemColours... coloursToUse)
 
 ColourScheme (const ColourScheme &)=default
 
Colour getUIColour (UIColour colourToGet) const noexcept
 Returns a colour from the scheme. More...
 
bool operator!= (const ColourScheme &) const noexcept
 Returns false if two ColourPalette objects contain the same colours. More...
 
ColourSchemeoperator= (const ColourScheme &)=default
 
bool operator== (const ColourScheme &) const noexcept
 Returns true if two ColourPalette objects contain the same colours. More...
 
void setUIColour (UIColour colourToSet, Colour newColour) noexcept
 Sets a scheme colour. More...
 

Private Attributes

Colour palette [numColours]
 

Detailed Description

A struct containing the set of colours to apply to the GUI.

Member Enumeration Documentation

◆ UIColour

The standard set of colours to use.

Enumerator
windowBackground 
widgetBackground 
menuBackground 
outline 
defaultText 
defaultFill 
highlightedText 
highlightedFill 
menuText 
numColours 

Constructor & Destructor Documentation

◆ ColourScheme() [1/2]

template<typename... ItemColours>
juce::LookAndFeel_V4::ColourScheme::ColourScheme ( ItemColours...  coloursToUse)
inline

◆ ColourScheme() [2/2]

juce::LookAndFeel_V4::ColourScheme::ColourScheme ( const ColourScheme )
default

Member Function Documentation

◆ getUIColour()

Colour juce::LookAndFeel_V4::ColourScheme::getUIColour ( UIColour  colourToGet) const
noexcept

Returns a colour from the scheme.

◆ operator!=()

bool juce::LookAndFeel_V4::ColourScheme::operator!= ( const ColourScheme ) const
noexcept

Returns false if two ColourPalette objects contain the same colours.

◆ operator=()

ColourScheme& juce::LookAndFeel_V4::ColourScheme::operator= ( const ColourScheme )
default

◆ operator==()

bool juce::LookAndFeel_V4::ColourScheme::operator== ( const ColourScheme ) const
noexcept

Returns true if two ColourPalette objects contain the same colours.

◆ setUIColour()

void juce::LookAndFeel_V4::ColourScheme::setUIColour ( UIColour  colourToSet,
Colour  newColour 
)
noexcept

Sets a scheme colour.

Member Data Documentation

◆ palette

Colour juce::LookAndFeel_V4::ColourScheme::palette[numColours]
private

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