Loading...
Searching...
No Matches
juce::LookAndFeel_V4::ColourScheme Class Reference

Detailed Description

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

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
ColourSchemeoperator= (const ColourScheme &)=default
Colour getUIColour (UIColour colourToGet) const noexcept
 Returns a colour from the scheme.
void setUIColour (UIColour colourToSet, Colour newColour) noexcept
 Sets a scheme colour.
bool operator== (const ColourScheme &) const noexcept
 Returns true if two ColourPalette objects contain the same colours.
bool operator!= (const ColourScheme &) const noexcept
 Returns false if two ColourPalette objects contain the same colours.

Member Enums

◆ UIColour

The standard set of colours to use.

Enumerator
windowBackground 
widgetBackground 
menuBackground 
outline 
defaultText 
defaultFill 
highlightedText 
highlightedFill 
menuText 
numColours 

Constructors and Destructors

◆ ColourScheme() [1/2]

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

References numColours.

Referenced by ColourScheme(), operator!=(), operator=(), and operator==().

◆ ColourScheme() [2/2]

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

References ColourScheme().

Member Functions

◆ operator=()

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

References ColourScheme().

◆ getUIColour()

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

Returns a colour from the scheme.

◆ setUIColour()

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

Sets a scheme colour.

◆ operator==()

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

Returns true if two ColourPalette objects contain the same colours.

References ColourScheme().

◆ operator!=()

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

Returns false if two ColourPalette objects contain the same colours.

References ColourScheme(), and numColours.

linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram