35 #define swap(a, b) { int16_t t = a; a = b; b = t; } 54 GFX (
int width,
int height, uint8_t * screenBuffer,
const unsigned char * font);
69 virtual void setAddrWindow (uint8_t x0, uint8_t y0, uint8_t x1, uint8_t y1) = 0;
79 virtual void drawPixel (int16_t x, int16_t y, uint16_t color) = 0;
96 void drawChar (int16_t x, int16_t y, uint8_t data, uint16_t color, uint16_t bg, uint8_t size);
103 void print (std::string msg);
112 mraa::Result
setPixel (
int x,
int y, uint16_t color);
130 void fillRect (int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color);
140 void drawFastVLine(int16_t x, int16_t y, int16_t h, uint16_t color);
151 void drawLine (int16_t x0, int16_t y0, int16_t x1, int16_t y1, uint16_t color);
164 void drawTriangle (int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint16_t color);
174 void drawCircle (int16_t x, int16_t y, int16_t r, uint16_t color);
190 void setTextColor (uint16_t textColor, uint16_t textBGColor);
218 const int16_t WIDTH, HEIGHT;
219 const unsigned char * m_font;
virtual void drawLine(int16_t x0, int16_t y0, int16_t x1, int16_t y1, uint16_t color)
Definition: ili9341_gfx.cxx:46
int m_textSize
Definition: ssd1351_gfx.hpp:446
void setTextSize(uint8_t s)
Definition: ili9341_gfx.cxx:427
int m_cursorY
Definition: ssd1351_gfx.hpp:450
int m_width
Definition: ssd1351_gfx.hpp:444
void setTextWrap(bool w)
Definition: ili9341_gfx.cxx:431
uint8_t * m_map
Definition: st7735_gfx.hpp:215
virtual void drawPixel(int16_t x, int16_t y, uint16_t color)=0
int16_t height(void) const
Definition: ili9341_gfx.cxx:489
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
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
int m_textBGColor
Definition: ssd1351_gfx.hpp:448
C++ API wrapper for the bh1749 driver.
Definition: a110x.hpp:29
int m_cursorX
Definition: ssd1351_gfx.hpp:449
void setCursor(int16_t x, int16_t y)
Definition: ili9341_gfx.cxx:411
int m_wrap
Definition: ssd1351_gfx.hpp:451
virtual void drawFastVLine(int16_t x, int16_t y, int16_t h, uint16_t color)
Definition: ili9341_gfx.cxx:90
int m_textColor
Definition: ssd1351_gfx.hpp:447
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
mraa::Result setPixel(int x, int y, uint16_t color)
Definition: st7735_gfx.cxx:46
int m_height
Definition: ssd1351_gfx.hpp:445
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
virtual void fillRect(int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color)
Definition: ili9341_gfx.cxx:115
virtual void setAddrWindow(uint8_t x0, uint8_t y0, uint8_t x1, uint8_t y1)=0