Control Surface main
MIDI Control Surface library for Arduino
Loading...
Searching...
No Matches
SelectorDisplay.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <Banks/Bank.hpp>
6
8
39
68
constexpr setting_t NoSetting
A special setting that indicates an unused or invalid setting.
Definition Def.hpp:53
#define END_CS_NAMESPACE
#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.
OutputBank & bank
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.
Definition Bank.hpp:16
int8_t getOffset() const
Get the address offset (number of banks times the index of the selected bank after applying the offse...
Definition Bank.hpp:58
Base class for all Selectors exposing the get method, so it can be used by display elements etc,...
Definition Selector.hpp:39
setting_t get() const
Get the current selection/setting.
Definition Selector.hpp:46
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)
SelectorBase & selector
void draw() override
Draw this DisplayElement to the display buffer.
An array wrapper for easy copying, comparing, and iterating.
Definition Array.hpp:32
A simple struct representing a pixel with integer coordinates.
Definition Def.hpp:62