constexpr setting_t NoSetting
A special setting that indicates an unused or invalid setting.
uint8_t setting_t
The type used for Selectors.
#define BEGIN_CS_NAMESPACE
A class for displaying the setting of a Bank object.
bool getDirty() const override
Check if this DisplayElement has to be re-drawn.
BankDisplay(DisplayInterface &display, OutputBank &bank, int16_t offset, PixelLocation loc, uint8_t size, uint16_t color)
void draw() override
Draw this DisplayElement to the display buffer.
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.
A class for changing the address of BankableMIDIOutputs.
int8_t getOffset() const
Get the address offset (number of banks times the index of the selected bank after applying the offse...
Base class for all Selectors exposing the get method, so it can be used by display elements etc,...
setting_t get() const
Get the current selection/setting.
A class for displaying the setting of a Selector object.
bool getDirty() const override
Check if this DisplayElement has to be re-drawn.
SelectorDisplay(DisplayInterface &display, SelectorBase &selector, int16_t offset, int16_t multiplier, PixelLocation loc, uint8_t size, uint16_t color)
void draw() override
Draw this DisplayElement to the display buffer.
A simple struct representing a pixel with integer coordinates.