JUCE
Public Member Functions | Public Attributes | List of all members
LEDColour Struct Reference

A simple ARGB colour class for setting LEDs. More...

Public Member Functions

 LEDColour ()=default
 
 LEDColour (const LEDColour &)=default
 
LEDColouroperator= (const LEDColour &)=default
 
 LEDColour (uint32 argbColour) noexcept
 
template<typename ColourType >
 LEDColour (const ColourType &colour)
 
uint8 getAlpha () const noexcept
 
uint8 getRed () const noexcept
 
uint8 getGreen () const noexcept
 
uint8 getBlue () const noexcept
 
uint32 getARGB () const noexcept
 

Public Attributes

uint32 argb = 0
 

Detailed Description

A simple ARGB colour class for setting LEDs.

Constructor & Destructor Documentation

◆ LEDColour() [1/4]

LEDColour::LEDColour ( )
default

◆ LEDColour() [2/4]

LEDColour::LEDColour ( const LEDColour )
default

◆ LEDColour() [3/4]

LEDColour::LEDColour ( uint32  argbColour)
noexcept

◆ LEDColour() [4/4]

template<typename ColourType >
LEDColour::LEDColour ( const ColourType &  colour)

Member Function Documentation

◆ operator=()

LEDColour& LEDColour::operator= ( const LEDColour )
default

◆ getAlpha()

uint8 LEDColour::getAlpha ( ) const
noexcept

References argb.

◆ getRed()

uint8 LEDColour::getRed ( ) const
noexcept

References argb.

◆ getGreen()

uint8 LEDColour::getGreen ( ) const
noexcept

References argb.

◆ getBlue()

uint8 LEDColour::getBlue ( ) const
noexcept

References argb.

◆ getARGB()

uint32 LEDColour::getARGB ( ) const
noexcept

References argb.

Member Data Documentation

◆ argb

uint32 LEDColour::argb = 0

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