EIC / Adafruit-GFX

Dependents:   RGB_matrix_Panel RGB_matrix_Panel_modif RGB_matrix_Panel Pmod_OLEDrgb_ALS1_K64F ... more

Embed: (wiki syntax)

« Back to documentation index

Adafruit_GFX Class Reference

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:
x0x position
y0y position
rRadius of the circle
color16bit 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:
xx
yy
color16bit 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:
x0first vertex x
y0first vertex y
wwidth
hheight
radiusradius
color16bit 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:
x0first vertex x
y0first vertex y
x1second vertex x
y1second vertex y
x2third vertex x
y2third vertex y
color16bit 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:
x0x position
y0y position
rRadius of the circle
color16bit 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:
x0first vertex x
y0first vertex y
x1second vertex x
y1second vertex y
x2third vertex x
y2third vertex y
color16bit color

Definition at line 253 of file Adafruit_GFX.cpp.

void invertDisplay ( bool  i ) [virtual]

Do nothing, must be subclassed if supported

Parameters:
iinvert

Definition at line 398 of file Adafruit_GFX.cpp.