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.
Dependents: RGB_matrix_Panel RGB_matrix_Panel_modif RGB_matrix_Panel Pmod_OLEDrgb_ALS1_K64F ... more
Adafruit_GFX Class Reference
Adafruit_GFX class. More...
#include <Adafruit_GFX.h>
Public Member Functions | |
| virtual void | drawPixel (int16_t x, int16_t y, uint16_t color)=0 |
| This MUST be defined by the subclass! | |
| virtual void | invertDisplay (bool i) |
| Do nothing, must be subclassed if supported | |
| void | drawCircle (int16_t x0, int16_t y0, int16_t r, uint16_t color) |
| draw a circle outline from the coordinates of the center. | |
| void | fillCircle (int16_t x0, int16_t y0, int16_t r, uint16_t color) |
| draw a circle from the coordinates of the center. | |
| void | drawTriangle (int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint16_t color) |
| draw a triangle outline from the vertex with color. | |
| 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 triangle from the vertex with color. | |
| void | drawRoundRect (int16_t x0, int16_t y0, int16_t w, int16_t h, int16_t radius, uint16_t color) |
| draw a round rectangle outline with color. | |
Detailed Description
Adafruit_GFX class.
This is the Adafruit_GFX class.
drawPixel(int16_t x,int16_t y,uint16_t color) needing implementation in derived implementation class
Definition at line 16 of file Adafruit_GFX.h.
Member Function Documentation
| void drawCircle | ( | int16_t | x0, |
| int16_t | y0, | ||
| int16_t | r, | ||
| uint16_t | color | ||
| ) |
draw a circle outline from the coordinates of the center.
- Parameters:
-
x0 x position y0 y position r Radius of the circle color 16bit color
Definition at line 21 of file Adafruit_GFX.cpp.
| void drawPixel | ( | int16_t | x, |
| int16_t | y, | ||
| uint16_t | color | ||
| ) | [pure virtual] |
This MUST be defined by the subclass!
- Parameters:
-
x x y y color 16bit color
Definition at line 27 of file Adafruit_GFX.h.
| void drawRoundRect | ( | int16_t | x0, |
| int16_t | y0, | ||
| int16_t | w, | ||
| int16_t | h, | ||
| int16_t | radius, | ||
| uint16_t | color | ||
| ) |
draw a round rectangle outline with color.
draw a round rectangle with color.
- Parameters:
-
x0 first vertex x y0 first vertex y w width h height radius radius color 16bit color
Definition at line 215 of file Adafruit_GFX.cpp.
| void drawTriangle | ( | int16_t | x0, |
| int16_t | y0, | ||
| int16_t | x1, | ||
| int16_t | y1, | ||
| int16_t | x2, | ||
| int16_t | y2, | ||
| uint16_t | color | ||
| ) |
draw a triangle outline from the vertex with color.
- Parameters:
-
x0 first vertex x y0 first vertex y x1 second vertex x y1 second vertex y x2 third vertex x y2 third vertex y color 16bit color
Definition at line 243 of file Adafruit_GFX.cpp.
| void fillCircle | ( | int16_t | x0, |
| int16_t | y0, | ||
| int16_t | r, | ||
| uint16_t | color | ||
| ) |
draw a circle from the coordinates of the center.
- Parameters:
-
x0 x position y0 y position r Radius of the circle color 16bit color
Definition at line 93 of file Adafruit_GFX.cpp.
| 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 triangle from the vertex with color.
- Parameters:
-
x0 first vertex x y0 first vertex y x1 second vertex x y1 second vertex y x2 third vertex x y2 third vertex y color 16bit color
Definition at line 253 of file Adafruit_GFX.cpp.
| void invertDisplay | ( | bool | i ) | [virtual] |
Do nothing, must be subclassed if supported
- Parameters:
-
i invert
Definition at line 398 of file Adafruit_GFX.cpp.
Generated on Tue Jul 12 2022 21:11:52 by
1.7.2