Expose title dimensions as variables
This commit is contained in:
@ -14,7 +14,7 @@ void DisplayWithTitle::initScreen(TftInterface &tft)
|
||||
|
||||
// tft.fillRect(0, 0, tft.width(), 35, TFT_GREY);
|
||||
|
||||
tft.fillRect(0, 34, tft.width(), 2, TFT_GREY);
|
||||
tft.fillRect(0, TITLE_HEIGHT, tft.width(), TITLE_BORDER, TFT_GREY);
|
||||
}
|
||||
|
||||
void DisplayWithTitle::redraw(TftInterface &tft)
|
||||
|
@ -14,6 +14,9 @@ class DisplayWithTitle :
|
||||
using Base = Display;
|
||||
|
||||
public:
|
||||
constexpr static int TITLE_HEIGHT = 34;
|
||||
constexpr static int TITLE_BORDER = 2;
|
||||
|
||||
TitleInterface *asTitleInterface() override { return this; }
|
||||
const TitleInterface *asTitleInterface() const override { return this; }
|
||||
|
||||
|
Reference in New Issue
Block a user