|
TR-mbed 1.0
|
#include <Adafruit_GFX.h>
Public Member Functions | |
| Adafruit_GFX (int16_t w, int16_t h) | |
| virtual void | drawPixel (int16_t x, int16_t y, uint16_t color)=0 |
| Paint one BLACK or WHITE pixel in the display buffer. | |
| virtual void | invertDisplay (bool i) |
| virtual int | _putc (int value) |
| virtual int | _getc () |
| void | drawChar (int16_t x, int16_t y, unsigned char c, uint16_t color, uint16_t bg, uint8_t size) |
| Draw a text character at a specified pixel location. | |
| size_t | writeChar (uint8_t) |
| Draw a text character at the text cursor location. | |
| int16_t | width (void) |
| Get the width of the display in pixels. | |
| int16_t | height (void) |
| Get the height of the display in pixels. | |
| void | setTextCursor (int16_t x, int16_t y) |
| Set the text cursor location, based on the size of the text. | |
| void | setTextColor (uint16_t c) |
| Set the text foreground and background colors to be the same. | |
| void | setTextColor (uint16_t c, uint16_t b) |
| Set the text foreground and background colors independantly. | |
| void | setTextWrap (bool w) |
| Set text wraping mode true or false. | |
| void | setRotation (uint8_t r) |
| Set the display rotation, 1, 2, 3, or 4. | |
| uint8_t | getRotation (void) |
| Get the current rotation. | |
Protected Attributes | |
| int16_t | _rawWidth |
| int16_t | _rawHeight |
| int16_t | _width |
| int16_t | _height |
| int16_t | cursor_x |
| int16_t | cursor_y |
| uint16_t | textcolor |
| uint16_t | textbgcolor |
| uint8_t | textsize |
| uint8_t | rotation |
| bool | wrap |
This is a Text and Graphics element drawing class. These functions draw to the display buffer.
Display drivers should be derived from here. The Display drivers push the display buffer to the hardware based on application control.
|
inline |
|
inlinevirtual |
| void Adafruit_GFX::drawChar | ( | int16_t | x, |
| int16_t | y, | ||
| unsigned char | c, | ||
| uint16_t | color, | ||
| uint16_t | bg, | ||
| uint8_t | size | ||
| ) |
Draw a text character at a specified pixel location.
|
pure virtual |
Paint one BLACK or WHITE pixel in the display buffer.
Implemented in Adafruit_SSD1306.
|
inline |
Get the current rotation.
|
inline |
Get the height of the display in pixels.
|
inlinevirtual |
Reimplemented in Adafruit_SSD1306.
| void Adafruit_GFX::setRotation | ( | uint8_t | r | ) |
Set the display rotation, 1, 2, 3, or 4.
|
inline |
Set the text foreground and background colors to be the same.
|
inline |
Set the text foreground and background colors independantly.
|
inline |
Set the text cursor location, based on the size of the text.
|
inline |
Set text wraping mode true or false.
|
inline |
Get the width of the display in pixels.
| size_t Adafruit_GFX::writeChar | ( | uint8_t | c | ) |
Draw a text character at the text cursor location.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |