Clone of the Adafruit Graphics Library
Fork of Adafruit_GFX by
Diff: Adafruit_GFX.h
- Revision:
- 3:04b9498d00d8
- Parent:
- 2:a7d4ac7ed08a
- Child:
- 4:256d9b541ab0
diff -r a7d4ac7ed08a -r 04b9498d00d8 Adafruit_GFX.h --- a/Adafruit_GFX.h Fri Jul 17 09:37:26 2015 +0000 +++ b/Adafruit_GFX.h Mon Jul 27 23:09:51 2015 +0000 @@ -51,16 +51,16 @@ //void constructor(int16_t w, int16_t h); virtual void drawPixel(int16_t x, int16_t y, uint16_t color) = 0; - virtual void invertDisplay(boolean i); + void invertDisplay(boolean i); // these are 'generic' drawing functions, so we can share them! - void drawLine(int16_t x0, int16_t y0, int16_t x1, int16_t y1,uint16_t color); + virtual void drawLine(int16_t x0, int16_t y0, int16_t x1, int16_t y1,uint16_t color); virtual void drawFastVLine(int16_t x, int16_t y, int16_t h, uint16_t color); virtual void drawFastHLine(int16_t x, int16_t y, int16_t w, uint16_t color); virtual void drawRect(int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color); virtual void fillRect(int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color); virtual void fillScreen(uint16_t color); - + void drawCircle(int16_t x0, int16_t y0, int16_t r, uint16_t color); void drawCircleHelper(int16_t x0, int16_t y0, int16_t r, uint8_t cornername, uint16_t color); void fillCircle(int16_t x0, int16_t y0, int16_t r, uint16_t color);