Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: Adafruit_GFX.h
- Revision:
- 18:6fc8104e8548
- Parent:
- 14:edb3c36aa1a7
diff -r 2fe73307cb3c -r 6fc8104e8548 Adafruit_GFX.h --- a/Adafruit_GFX.h Thu Mar 12 15:37:16 2020 +0000 +++ b/Adafruit_GFX.h Fri Jul 17 09:26:07 2020 +0000 @@ -46,7 +46,7 @@ * hardware based on application control. * */ -class Adafruit_GFX : public Stream +class Adafruit_GFX { public: Adafruit_GFX(int16_t w, int16_t h) @@ -93,36 +93,36 @@ /** Draw a circle * @note GFX_WANT_ABSTRACTS must be defined in Adafruit_GFX_config.h */ - 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); + virtual void drawCircle(int16_t x0, int16_t y0, int16_t r, uint16_t color); + virtual void drawCircleHelper(int16_t x0, int16_t y0, int16_t r, uint8_t cornername, uint16_t color); /** Draw and fill a circle * @note GFX_WANT_ABSTRACTS must be defined in Adafruit_GFX_config.h */ - void fillCircle(int16_t x0, int16_t y0, int16_t r, uint16_t color); - void fillCircleHelper(int16_t x0, int16_t y0, int16_t r, uint8_t cornername, int16_t delta, uint16_t color); + virtual void fillCircle(int16_t x0, int16_t y0, int16_t r, uint16_t color); + virtual void fillCircleHelper(int16_t x0, int16_t y0, int16_t r, uint8_t cornername, int16_t delta, uint16_t color); /** Draw a triangle * @note GFX_WANT_ABSTRACTS must be defined in Adafruit_GFX_config.h */ - void drawTriangle(int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint16_t color); + virtual void drawTriangle(int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint16_t color); /** Draw and fill a triangle * @note GFX_WANT_ABSTRACTS must be defined in Adafruit_GFX_config.h */ - void fillTriangle(int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint16_t color); + virtual void fillTriangle(int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint16_t color); /** Draw a rounded rectangle * @note GFX_WANT_ABSTRACTS must be defined in Adafruit_GFX_config.h */ - void drawRoundRect(int16_t x0, int16_t y0, int16_t w, int16_t h, int16_t radius, uint16_t color); + virtual void drawRoundRect(int16_t x0, int16_t y0, int16_t w, int16_t h, int16_t radius, uint16_t color); /** Draw and fill a rounded rectangle * @note GFX_WANT_ABSTRACTS must be defined in Adafruit_GFX_config.h */ - void fillRoundRect(int16_t x0, int16_t y0, int16_t w, int16_t h, int16_t radius, uint16_t color); + virtual void fillRoundRect(int16_t x0, int16_t y0, int16_t w, int16_t h, int16_t radius, uint16_t color); /** Draw a bitmap * @note GFX_WANT_ABSTRACTS must be defined in Adafruit_GFX_config.h */ - void drawBitmap(int16_t x, int16_t y, const uint8_t *bitmap, int16_t w, int16_t h, uint16_t color); + virtual void drawBitmap(int16_t x, int16_t y, const uint8_t *bitmap, int16_t w, int16_t h, uint16_t color); #endif #if defined(GFX_WANT_ABSTRACTS) || defined(GFX_SIZEABLE_TEXT)