The BLOCKS SDK
StatusLight Class Referenceabstract

Description

Represents a status LED on a device.

Public Member Functions

 StatusLight (Block &)
 
virtual ~StatusLight ()
 Destructor. More...
 
virtual juce::String getName () const =0
 Returns a name to describe this light. More...
 
virtual bool setColour (LEDColour newColour)=0
 Changes the light's colour. More...
 

Public Attributes

Blockblock
 The device that this LED belongs to. More...
 

Constructor & Destructor Documentation

◆ StatusLight()

StatusLight::StatusLight ( Block )

◆ ~StatusLight()

virtual StatusLight::~StatusLight ( )
virtual

Destructor.

Member Function Documentation

◆ getName()

virtual juce::String StatusLight::getName ( ) const
pure virtual

Returns a name to describe this light.

◆ setColour()

virtual bool StatusLight::setColour ( LEDColour  newColour)
pure virtual

Changes the light's colour.

Member Data Documentation

◆ block

Block& StatusLight::block

The device that this LED belongs to.


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