The BLOCKS SDK
LEDColour Struct Reference

Description

A simple ARGB colour class for setting LEDs.

Public Member Functions

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

Public Attributes

juce::uint32 argb = 0
 

Constructor & Destructor Documentation

◆ LEDColour() [1/4]

LEDColour::LEDColour ( )
default

◆ LEDColour() [2/4]

LEDColour::LEDColour ( const LEDColour )
default

◆ LEDColour() [3/4]

LEDColour::LEDColour ( juce::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()

juce::uint8 LEDColour::getAlpha ( ) const
noexcept

References argb.

◆ getRed()

juce::uint8 LEDColour::getRed ( ) const
noexcept

References argb.

◆ getGreen()

juce::uint8 LEDColour::getGreen ( ) const
noexcept

References argb.

◆ getBlue()

juce::uint8 LEDColour::getBlue ( ) const
noexcept

References argb.

◆ getARGB()

juce::uint32 LEDColour::getARGB ( ) const
noexcept

References argb.

Member Data Documentation

◆ argb

juce::uint32 LEDColour::argb = 0

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