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

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

#include <juce_LEDGrid.h>

Collaboration diagram for juce::LEDColour:

Public Member Functions

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

Public Attributes

uint32 argb = 0
 

Detailed Description

A simple ARGB colour class for setting LEDs.

{Blocks}

Constructor & Destructor Documentation

◆ LEDColour() [1/4]

juce::LEDColour::LEDColour ( )
defaultnoexcept

◆ LEDColour() [2/4]

juce::LEDColour::LEDColour ( const LEDColour )
defaultnoexcept

◆ LEDColour() [3/4]

juce::LEDColour::LEDColour ( uint32  argbColour)
inlinenoexcept

◆ LEDColour() [4/4]

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

Member Function Documentation

◆ getAlpha()

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

References argb.

◆ getARGB()

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

References argb.

◆ getBlue()

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

References argb.

◆ getGreen()

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

References argb.

◆ getRed()

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

References argb.

◆ operator=()

LEDColour& juce::LEDColour::operator= ( const LEDColour )
defaultnoexcept

Member Data Documentation

◆ argb

uint32 juce::LEDColour::argb = 0

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