Adafruit-GFX porting for mbed
Dependents: RGB_matrix_Panel RGB_matrix_Panel_modif RGB_matrix_Panel Pmod_OLEDrgb_ALS1_K64F ... more
Diff: Adafruit_GFX.h
- Revision:
- 1:c2715acb7466
- Parent:
- 0:3e9c32359703
- Child:
- 2:66a3fe0dc83a
diff -r 3e9c32359703 -r c2715acb7466 Adafruit_GFX.h --- a/Adafruit_GFX.h Fri May 23 15:05:48 2014 +0000 +++ b/Adafruit_GFX.h Sun May 25 13:40:59 2014 +0000 @@ -7,24 +7,27 @@ #endif #define swap(a, b) { int16_t t = a; a = b; b = t; } - +/** Adafruit_GFX class +* @bref This is the Adafruit_GFX class.\\ +* drawPixel(int16_t x,int16_t y,uint16_t color) needing implementation in derived implementation class +*/ class Adafruit_GFX : public Stream { public: Adafruit_GFX(int16_t w, int16_t h) : _rawWidth(w) - , _rawHeight(h) - , _width(w) - , _height(h) - , cursor_x(0) - , cursor_y(0) - , textcolor(WHITE) - , textbgcolor(BLACK) - , textsize(1) - , rotation(0) - , wrap(true) - {}; // Constructor + ,_rawHeight(h) + ,_width(w) + ,_height(h) + ,cursor_x(0) + ,cursor_y(0) + ,textcolor(WHITE) + ,textbgcolor(BLACK) + ,textsize(1) + ,rotation(0) + ,wrap(true) + {}; // This MUST be defined by the subclass: virtual void drawPixel(int16_t x, int16_t y, uint16_t color) = 0;