refactor(display): extract tile layout logic to library helper class
This commit is contained in:
@@ -14,12 +14,11 @@ public:
|
||||
uint16_t getRawTouchZ();
|
||||
HoldState updateHold(unsigned long holdMs) override;
|
||||
void updateHint(int x, int y, bool active) override;
|
||||
int width() override { return DISPLAY_WIDTH; }
|
||||
int height() override { return DISPLAY_HEIGHT; }
|
||||
int width() override { return _tft.width(); }
|
||||
int height() override { return _tft.height(); }
|
||||
|
||||
// Dashboard tiles - library handles grid math, we just draw
|
||||
// Dashboard - uses transform for touch coordinate correction
|
||||
void transformTouch(int* x, int* y) override;
|
||||
void drawTileAt(int x, int y, int w, int h, const char* label, uint16_t bgColor) override;
|
||||
|
||||
private:
|
||||
void drawBoot(const ScreenState& st);
|
||||
|
||||
Reference in New Issue
Block a user