|
JUCE
|
Represents a 2D grid of LEDs on a block device. More...
Classes | |
| struct | Program |
| A program that can be loaded onto an LEDGrid. More... | |
| struct | ProgramEventMessage |
| A message that can be sent to the currently loaded program. More... | |
| struct | Renderer |
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... | |
| virtual juce::Result | setProgram (Program *)=0 |
| Sets the Program to run on this LEDGrid. More... | |
| virtual Program * | getProgram () const =0 |
| Returns a pointer to the currently loaded program. More... | |
| virtual void | sendProgramEvent (const ProgramEventMessage &)=0 |
| Sends a message to the currently loaded program. More... | |
| virtual void | setDataByte (size_t offset, uint8 value)=0 |
| Sets a single byte on the heap. More... | |
| virtual void | setDataBytes (size_t offset, const void *data, size_t num)=0 |
| Sets multiple bytes on the heap. More... | |
| virtual void | setDataBits (uint32 startBit, uint32 numBits, uint32 value)=0 |
| Sets multiple bits on the heap. More... | |
| virtual uint8 | getDataByte (size_t offset)=0 |
| Gets a byte from the heap. More... | |
| void | setRenderer (Renderer *newRenderer) noexcept |
| Set the visualiser that will create visuals for this block (nullptr for none). More... | |
| Renderer * | getRenderer () const noexcept |
| Returns the visualiser currently attached to this block (nullptr for none). More... | |
Public Attributes | |
| Block & | block |
| The device that this LEDGrid belongs to. More... | |
Represents a 2D grid of LEDs on a block device.
| juce::LEDGrid::LEDGrid | ( | Block & | ) |
|
virtual |
Destructor.
|
pure virtual |
Returns the number of columns in the LED grid.
|
pure virtual |
Returns the number of rows in the LED grid.
|
pure virtual |
|
pure virtual |
Returns a pointer to the currently loaded program.
|
pure virtual |
Sends a message to the currently loaded program.
To receive the message the program must provide a function called handleMessage with the following form:
|
pure virtual |
Sets a single byte on the heap.
|
pure virtual |
Sets multiple bytes on the heap.
|
pure virtual |
Sets multiple bits on the heap.
|
pure virtual |
Gets a byte from the heap.
|
noexcept |
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.
|
noexcept |
Returns the visualiser currently attached to this block (nullptr for none).