| Line 1... |
Line 1... |
| 1 |
#ifndef ADAFRUIT_GFX_H
|
1 |
#ifndef ADAFRUIT_GFX_H
|
| 2 |
#define ADAFRUIT_GFX_H
|
2 |
#define ADAFRUIT_GFX_H
|
| 3 |
|
3 |
|
| - |
|
4 |
#define GFX_LCD_BUFFER_SIZE 129 // # of chars + null
|
| 4 |
#define GFX_STRING_BUFFER_SIZE 150
|
5 |
#define GFX_STRING_BUFFER_SIZE 32
|
| 5 |
|
6 |
|
| 6 |
typedef struct __GFX_DATA {
|
7 |
typedef struct __GFX_DATA {
|
| 7 |
unsigned char buffer[GFX_STRING_BUFFER_SIZE];
|
8 |
unsigned char buffer[GFX_STRING_BUFFER_SIZE];
|
| - |
|
9 |
unsigned char lcd_buffer[GFX_LCD_BUFFER_SIZE];
|
| 8 |
int WIDTH, HEIGHT; // raw display size
|
10 |
int WIDTH, HEIGHT; // raw display size
|
| 9 |
int _width, _height; // size depending on rotation
|
11 |
int _width, _height; // size depending on rotation
|
| 10 |
int cursor_x, cursor_y;
|
12 |
int cursor_x, cursor_y;
|
| 11 |
unsigned int textcolor, textbgcolor;
|
13 |
unsigned int textcolor, textbgcolor;
|
| 12 |
unsigned char textsize;
|
14 |
unsigned char textsize;
|
| Line 39... |
Line 41... |
| 39 |
void GFX_drawBitmap(int x, int y, const unsigned char *bitmap, int w, int h, unsigned int color);
|
41 |
void GFX_drawBitmap(int x, int y, const unsigned char *bitmap, int w, int h, unsigned int color);
|
| 40 |
void GFX_drawChar(int x, int y, unsigned char c, unsigned int color, unsigned int bg, unsigned char size);
|
42 |
void GFX_drawChar(int x, int y, unsigned char c, unsigned int color, unsigned int bg, unsigned char size);
|
| 41 |
|
43 |
|
| 42 |
void GFX_write(unsigned char c);
|
44 |
void GFX_write(unsigned char c);
|
| 43 |
void GFX_writeString(const rom char *fmt, ...);
|
45 |
void GFX_writeString(const rom char *fmt, ...);
|
| - |
|
46 |
void GFX_appendString(const rom char *fmt, ...);
|
| 44 |
|
47 |
|
| 45 |
void GFX_setCursor(int x, int y);
|
48 |
void GFX_setCursor(int x, int y);
|
| 46 |
void GFX_setTextColor(unsigned int c);
|
49 |
void GFX_setTextColor(unsigned int c);
|
| 47 |
void GFX_setTextColorBG(unsigned int c, unsigned int bg);
|
50 |
void GFX_setTextColorBG(unsigned int c, unsigned int bg);
|
| 48 |
void GFX_setTextSize(unsigned char s);
|
51 |
void GFX_setTextSize(unsigned char s);
|