127 ERROR(F(
"Track number out of bounds (") << offset <<
')', 0xBA41);
129 ERROR(F(
"Line number out of bounds (") <<
line <<
')', 0xBA42);
#define BEGIN_CS_NAMESPACE
An interface for elements that draw to a display.
DisplayInterface & display
An interface for displays.
virtual void setTextColor(uint16_t color)=0
Set the text color.
virtual void setCursor(int16_t x, int16_t y)=0
Set the cursor position.
virtual void setTextSize(uint8_t size)=0
Set the text size.
Displays the text of the Mackie Control Universal LCD screen for a single track.
bool getDirty() const override
Check if this DisplayElement has to be re-drawn.
LCDDisplay(DisplayInterface &display, LCD<> &lcd, uint8_t track, uint8_t line, PixelLocation loc, uint8_t textSize, uint16_t color)
Constructor.
LCDDisplay(DisplayInterface &display, LCD<> &lcd, uint8_t track, PixelLocation loc, uint8_t textSize, uint16_t color)
Constructor.
LCDDisplay(DisplayInterface &display, LCD<> &lcd, const OutputBank &bank, uint8_t track, uint8_t line, PixelLocation loc, uint8_t textSize, uint16_t color)
Constructor.
LCDDisplay(DisplayInterface &display, LCD<> &lcd, const OutputBank &bank, uint8_t track, PixelLocation loc, uint8_t textSize, uint16_t color)
Constructor.
void setLine(uint8_t line)
Set the line number of the LCD to display.
bool separateTracks() const
Check if the display contains a message for each track separately.
void draw() override
Draw this DisplayElement to the display buffer.
const char * getText() const
Get a pointer to the null-terminated display text.
bool getDirty() const
Check if the text was updated since the last time the dirty flag was cleared.
void clearDirty()
Clear the dirty flag.
A class for changing the address of BankableMIDIOutputs.
An array wrapper for easy copying, comparing, and iterating.
A simple struct representing a pixel with integer coordinates.