32 #define adagfxswap(a, b) { int16_t t = a; a = b; b = t; } 48 GFX(int16_t w, int16_t h);
63 virtual void drawPixel(int16_t x, int16_t y, uint16_t color) = 0;
158 void drawCircle(int16_t x0, int16_t y0, int16_t r, uint16_t color);
183 void fillCircle(int16_t x0, int16_t y0, int16_t r, uint16_t color);
370 virtual void write(uint8_t c);
377 void print(std::string msg);
384 int16_t
width(
void)
const;
391 int16_t
height(
void)
const;
396 const int16_t HEIGHT;
404 uint16_t textbgcolor;
410 static const unsigned char font[];
virtual void drawLine(int16_t x0, int16_t y0, int16_t x1, int16_t y1, uint16_t color)
Definition: ili9341_gfx.cxx:46
void fillTriangle(int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint16_t color)
Definition: ili9341_gfx.cxx:255
void setTextSize(uint8_t s)
Definition: ili9341_gfx.cxx:427
virtual void drawFastHLine(int16_t x, int16_t y, int16_t w, uint16_t color)
Definition: ili9341_gfx.cxx:97
void setTextWrap(bool w)
Definition: ili9341_gfx.cxx:431
GFX helper class.
Definition: ili9341_gfx.hpp:39
virtual void drawPixel(int16_t x, int16_t y, uint16_t color)=0
int16_t height(void) const
Definition: ili9341_gfx.cxx:489
virtual void drawRect(int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color)
Definition: ili9341_gfx.cxx:104
void drawTriangle(int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint16_t color)
Definition: ili9341_gfx.cxx:243
int16_t getCursorX(void) const
Definition: ili9341_gfx.cxx:403
virtual void fillScreen(uint16_t color)
Definition: ili9341_gfx.cxx:125
virtual ~GFX()
Definition: ili9341_gfx.hpp:53
void setTextColor(uint16_t c)
Definition: ili9341_gfx.cxx:416
GFX(int16_t w, int16_t h)
Definition: ili9341_gfx.cxx:32
void setRotation(uint8_t r)
Definition: ili9341_gfx.cxx:439
void drawCircleHelper(int16_t x0, int16_t y0, int16_t r, uint8_t cornername, uint16_t color)
Definition: ili9341_gfx.cxx:166
C++ API wrapper for the bh1749 driver.
Definition: a110x.hpp:29
void setCursor(int16_t x, int16_t y)
Definition: ili9341_gfx.cxx:411
void fillRoundRect(int16_t x0, int16_t y0, int16_t w, int16_t h, int16_t radius, uint16_t color)
Definition: ili9341_gfx.cxx:357
void drawRoundRect(int16_t x0, int16_t y0, int16_t w, int16_t h, int16_t radius, uint16_t color)
Definition: ili9341_gfx.cxx:338
virtual void drawFastVLine(int16_t x, int16_t y, int16_t h, uint16_t color)
Definition: ili9341_gfx.cxx:90
void fillCircleHelper(int16_t x0, int16_t y0, int16_t r, uint8_t cornername, int16_t delta, uint16_t color)
Definition: ili9341_gfx.cxx:210
void drawChar(int16_t x, int16_t y, unsigned char c, uint16_t color, uint16_t bg, uint8_t size)
Definition: ili9341_gfx.cxx:372
void fillCircle(int16_t x0, int16_t y0, int16_t r, uint16_t color)
Definition: ili9341_gfx.cxx:205
uint8_t getRotation(void) const
Definition: ili9341_gfx.cxx:435
int16_t getCursorY(void) const
Definition: ili9341_gfx.cxx:407
void print(std::string msg)
Definition: ili9341_gfx.cxx:478
int16_t width(void) const
Definition: ili9341_gfx.cxx:485
void drawCircle(int16_t x0, int16_t y0, int16_t r, uint16_t color)
Definition: ili9341_gfx.cxx:133
void cp437(bool x)
Definition: ili9341_gfx.cxx:455
virtual void invertDisplay(bool i)
Definition: ili9341_gfx.cxx:129
virtual void write(uint8_t c)
Definition: ili9341_gfx.cxx:459
virtual void fillRect(int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color)
Definition: ili9341_gfx.cxx:115