MIDI Control Surface library for Arduino
|
A class for changing the address of BankableMIDIOutputs.
A class for displaying the setting of a Selector object.
An interface for elements that draw to a display.
void draw() override
Draw this DisplayElement to the display buffer.
An interface for displays.
setting_t get() const
Get the current selection/setting.
Base class for all Selectors exposing the get method, so it can be used by display elements etc,...
virtual void setCursor(int16_t x, int16_t y)=0
Set the cursor position.
#define BEGIN_CS_NAMESPACE
A class for displaying the setting of a Bank object.
A simple struct representing a pixel with integer coordinates.
void draw() override
Draw this DisplayElement to the display buffer.
DisplayInterface & display
virtual void setTextColor(uint16_t color)=0
Set the text color.
uint8_t getOffset() const
Get the offset (number of banks times the index of the selected bank)
BankDisplay(DisplayInterface &display, OutputBank &bank, int16_t offset, PixelLocation loc, uint8_t size, uint16_t color)
SelectorDisplay(DisplayInterface &display, SelectorBase &selector, int16_t offset, int16_t multiplier, PixelLocation loc, uint8_t size, uint16_t color)
virtual void setTextSize(uint8_t size)=0
Set the text size.