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

Represents an LED strip on a device. More...

#include <juce_LEDRow.h>

Collaboration diagram for juce::LEDRow:

Public Member Functions

 LEDRow (Block &)
 
virtual ~LEDRow ()
 Destructor. More...
 
virtual int getNumLEDs () const =0
 Return the number of LEDs in the row. More...
 
virtual void resetOverlayColour ()=0
 
virtual void setLEDColour (int index, LEDColour newColour)=0
 Sets the colour of the corresponding LED. More...
 
virtual void setOverlayColour (LEDColour newColour)=0
 Overlays all LEDs with a single colour. More...
 

Public Attributes

Blockblock
 The device that these lights belong to. More...
 

Detailed Description

Represents an LED strip on a device.

{Blocks}

Constructor & Destructor Documentation

◆ LEDRow()

juce::LEDRow::LEDRow ( Block )

◆ ~LEDRow()

virtual juce::LEDRow::~LEDRow ( )
virtual

Destructor.

Member Function Documentation

◆ getNumLEDs()

virtual int juce::LEDRow::getNumLEDs ( ) const
pure virtual

Return the number of LEDs in the row.

◆ resetOverlayColour()

virtual void juce::LEDRow::resetOverlayColour ( )
pure virtual

◆ setLEDColour()

virtual void juce::LEDRow::setLEDColour ( int  index,
LEDColour  newColour 
)
pure virtual

Sets the colour of the corresponding LED.

◆ setOverlayColour()

virtual void juce::LEDRow::setOverlayColour ( LEDColour  newColour)
pure virtual

Overlays all LEDs with a single colour.

Whilst the overlay is set subsequent calls to setLEDColour will happen behind* the overlay, and will be invisible to the user until the overlay is removed.

Member Data Documentation

◆ block

Block& juce::LEDRow::block

The device that these lights belong to.


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