refactor(display): extract dashboard tile grid logic to DisplayManager
This commit is contained in:
@@ -12,12 +12,15 @@ public:
|
||||
void render(const ScreenState& state) override;
|
||||
TouchEvent readTouch() override;
|
||||
uint16_t getRawTouchZ();
|
||||
int dashboardTouch(int x, int y) override;
|
||||
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; }
|
||||
|
||||
// Dashboard tiles - library handles grid math, we just draw
|
||||
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);
|
||||
void drawAlert(const ScreenState& st);
|
||||
|
||||
Reference in New Issue
Block a user