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

Represents a 2D grid of LEDs on a block device. More...

#include <juce_LEDGrid.h>

Collaboration diagram for juce::LEDGrid:

Classes

struct  Renderer
 An interface to use for LEDGrid rendering. More...
 

Public Member Functions

 LEDGrid (Block &)
 
virtual ~LEDGrid ()
 Destructor. More...
 
virtual int getNumColumns () const =0
 Returns the number of columns in the LED grid. More...
 
virtual int getNumRows () const =0
 Returns the number of rows in the LED grid. More...
 
Renderer::Ptr getRenderer () const noexcept
 Returns the visualiser currently attached to this block (nullptr for none). More...
 
void setRenderer (Renderer::Ptr newRenderer) noexcept
 Set the visualiser that will create visuals for this block (nullptr for none). More...
 

Public Attributes

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

Private Attributes

Renderer::Ptr renderer
 

Detailed Description

Represents a 2D grid of LEDs on a block device.

{Blocks}

Constructor & Destructor Documentation

◆ LEDGrid()

juce::LEDGrid::LEDGrid ( Block )

◆ ~LEDGrid()

virtual juce::LEDGrid::~LEDGrid ( )
virtual

Destructor.

Member Function Documentation

◆ getNumColumns()

virtual int juce::LEDGrid::getNumColumns ( ) const
pure virtual

Returns the number of columns in the LED grid.

◆ getNumRows()

virtual int juce::LEDGrid::getNumRows ( ) const
pure virtual

Returns the number of rows in the LED grid.

◆ getRenderer()

Renderer::Ptr juce::LEDGrid::getRenderer ( ) const
inlinenoexcept

Returns the visualiser currently attached to this block (nullptr for none).

◆ setRenderer()

void juce::LEDGrid::setRenderer ( Renderer::Ptr  newRenderer)
inlinenoexcept

Set the visualiser that will create visuals for this block (nullptr for none).

Note that the LEDGrid will NOT take ownership of this object, so the caller must ensure that it doesn't get deleted while in use here.

Member Data Documentation

◆ block

Block& juce::LEDGrid::block

The device that this LEDGrid belongs to.

◆ renderer

Renderer::Ptr juce::LEDGrid::renderer
private

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