Added setTextSize()

This commit is contained in:
CommanderRedYT
2022-12-16 11:19:24 +01:00
parent 0d25b85304
commit e7c33b8726
2 changed files with 4 additions and 0 deletions

View File

@ -27,6 +27,8 @@ public:
void setRotation(uint8_t r) override { m_tft.setRotation(r); }
uint8_t getRotation(void) const { return m_tft.getRotation(); }
void setTextSize(uint8_t s) override { m_tft.setTextSize(s); }
// Graphics drawing
void fillScreen(uint32_t color) override { m_tft.fillScreen(color); }
void drawRect(int32_t x, int32_t y, int32_t w, int32_t h, uint32_t color) override { m_tft.drawRect(x, y, w, h, color); }

View File

@ -25,6 +25,8 @@ public:
virtual void setRotation(uint8_t r) = 0; // Set the display image orientation to 0, 1, 2 or 3
virtual uint8_t getRotation(void) const = 0; // Read the current rotation
virtual void setTextSize(uint8_t size); // Set character size multiplier (this increases pixel size)
// Graphics drawing
virtual void fillScreen(uint32_t color) = 0;
virtual void drawRect(int32_t x, int32_t y, int32_t w, int32_t h, uint32_t color) = 0;