31 #define adagfxswap(a, b) { int16_t t = a; a = b; b = t; }
47 GFX(int16_t w, int16_t h);
57 virtual void drawPixel(int16_t x, int16_t y, uint16_t color) = 0;
152 void drawCircle(int16_t x0, int16_t y0, int16_t r, uint16_t color);
177 void fillCircle(int16_t x0, int16_t y0, int16_t r, uint16_t color);
364 virtual void write(uint8_t c);
371 void print(std::string msg);
378 int16_t
width(
void)
const;
385 int16_t
height(
void)
const;
390 const int16_t HEIGHT;
398 uint16_t textbgcolor;
404 static const unsigned char font[];
virtual void drawLine(int16_t x0, int16_t y0, int16_t x1, int16_t y1, uint16_t color)
Definition: gfx.cxx:45
void fillTriangle(int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint16_t color)
Definition: gfx.cxx:254
void setTextSize(uint8_t s)
Definition: gfx.cxx:426
virtual void drawFastHLine(int16_t x, int16_t y, int16_t w, uint16_t color)
Definition: gfx.cxx:96
void setTextWrap(bool w)
Definition: gfx.cxx:430
GFX helper class.
Definition: gfx.h:38
virtual void drawPixel(int16_t x, int16_t y, uint16_t color)=0
int16_t height(void) const
Definition: gfx.cxx:488
virtual void drawRect(int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color)
Definition: gfx.cxx:103
void drawTriangle(int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint16_t color)
Definition: gfx.cxx:242
int16_t getCursorX(void) const
Definition: gfx.cxx:402
virtual void fillScreen(uint16_t color)
Definition: gfx.cxx:124
void setTextColor(uint16_t c)
Definition: gfx.cxx:415
GFX(int16_t w, int16_t h)
Definition: gfx.cxx:31
void setRotation(uint8_t r)
Definition: gfx.cxx:438
void drawCircleHelper(int16_t x0, int16_t y0, int16_t r, uint8_t cornername, uint16_t color)
Definition: gfx.cxx:165
void setCursor(int16_t x, int16_t y)
Definition: gfx.cxx:410
void fillRoundRect(int16_t x0, int16_t y0, int16_t w, int16_t h, int16_t radius, uint16_t color)
Definition: gfx.cxx:356
void drawRoundRect(int16_t x0, int16_t y0, int16_t w, int16_t h, int16_t radius, uint16_t color)
Definition: gfx.cxx:337
virtual void drawFastVLine(int16_t x, int16_t y, int16_t h, uint16_t color)
Definition: gfx.cxx:89
void fillCircleHelper(int16_t x0, int16_t y0, int16_t r, uint8_t cornername, int16_t delta, uint16_t color)
Definition: gfx.cxx:209
void drawChar(int16_t x, int16_t y, unsigned char c, uint16_t color, uint16_t bg, uint8_t size)
Definition: gfx.cxx:371
void fillCircle(int16_t x0, int16_t y0, int16_t r, uint16_t color)
Definition: gfx.cxx:204
uint8_t getRotation(void) const
Definition: gfx.cxx:434
int16_t getCursorY(void) const
Definition: gfx.cxx:406
void print(std::string msg)
Definition: gfx.cxx:477
int16_t width(void) const
Definition: gfx.cxx:484
void drawCircle(int16_t x0, int16_t y0, int16_t r, uint16_t color)
Definition: gfx.cxx:132
void cp437(bool x)
Definition: gfx.cxx:454
virtual void invertDisplay(bool i)
Definition: gfx.cxx:128
virtual void write(uint8_t c)
Definition: gfx.cxx:458
virtual void fillRect(int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color)
Definition: gfx.cxx:114