From a5e82cff65a18ae95baae6fe6b9f7d6d5f713a43 Mon Sep 17 00:00:00 2001 From: Doxygen CI Date: Mon, 14 Mar 2022 17:33:43 +0000 Subject: [PATCH] Deploy docs to GitHub Pages from commit 2fbbfa224f Commit: 2fbbfa224f6c79db9a64d754837818caa8f3d7a6 GitHub Actions run: 1982126651 --- html/_adafruit___g_f_x_8h_source.html | 122 +++++++++--------- html/_adafruit___s_p_i_t_f_t_8h_source.html | 2 +- html/class_adafruit___g_f_x-members.html | 40 +++--- html/class_adafruit___g_f_x.html | 114 ++++++++++++++++ ...class_adafruit___gray_o_l_e_d-members.html | 46 +++---- html/class_adafruit___gray_o_l_e_d.html | 6 + .../class_adafruit___s_p_i_t_f_t-members.html | 2 +- html/class_adafruit___s_p_i_t_f_t.html | 12 ++ html/class_g_f_xcanvas1-members.html | 40 +++--- html/class_g_f_xcanvas1.html | 6 + html/class_g_f_xcanvas16-members.html | 40 +++--- html/class_g_f_xcanvas16.html | 6 + html/class_g_f_xcanvas8-members.html | 40 +++--- html/class_g_f_xcanvas8.html | 6 + html/functions_func.html | 6 +- html/functions_h.html | 8 +- html/functions_s.html | 3 +- html/functions_w.html | 3 +- html/search/all_10.js | 2 +- html/search/all_12.js | 2 +- html/search/all_8.js | 2 +- html/search/functions_10.js | 2 +- html/search/functions_e.js | 2 +- html/search/variables_6.js | 2 +- 24 files changed, 339 insertions(+), 175 deletions(-) diff --git a/html/_adafruit___g_f_x_8h_source.html b/html/_adafruit___g_f_x_8h_source.html index 85e9a93..5821bd6 100644 --- a/html/_adafruit___g_f_x_8h_source.html +++ b/html/_adafruit___g_f_x_8h_source.html @@ -62,76 +62,78 @@ $(function() {
Adafruit_GFX.h
-
1 #ifndef _ADAFRUIT_GFX_H
2 #define _ADAFRUIT_GFX_H
3 
4 #if ARDUINO >= 100
5 #include "Arduino.h"
6 #include "Print.h"
7 #else
8 #include "WProgram.h"
9 #endif
10 #include "gfxfont.h"
11 
15 class Adafruit_GFX : public Print {
16 
17 public:
18  Adafruit_GFX(int16_t w, int16_t h); // Constructor
19 
20  /**********************************************************************/
28  /**********************************************************************/
29  virtual void drawPixel(int16_t x, int16_t y, uint16_t color) = 0;
30 
31  // TRANSACTION API / CORE DRAW API
32  // These MAY be overridden by the subclass to provide device-specific
33  // optimized code. Otherwise 'generic' versions are used.
34  virtual void startWrite(void);
35  virtual void writePixel(int16_t x, int16_t y, uint16_t color);
36  virtual void writeFillRect(int16_t x, int16_t y, int16_t w, int16_t h,
37  uint16_t color);
38  virtual void writeFastVLine(int16_t x, int16_t y, int16_t h, uint16_t color);
39  virtual void writeFastHLine(int16_t x, int16_t y, int16_t w, uint16_t color);
40  virtual void writeLine(int16_t x0, int16_t y0, int16_t x1, int16_t y1,
41  uint16_t color);
42  virtual void endWrite(void);
43 
44  // CONTROL API
45  // These MAY be overridden by the subclass to provide device-specific
46  // optimized code. Otherwise 'generic' versions are used.
47  virtual void setRotation(uint8_t r);
48  virtual void invertDisplay(bool i);
49 
50  // BASIC DRAW API
51  // These MAY be overridden by the subclass to provide device-specific
52  // optimized code. Otherwise 'generic' versions are used.
53 
54  // It's good to implement those, even if using transaction API
55  virtual void drawFastVLine(int16_t x, int16_t y, int16_t h, uint16_t color);
56  virtual void drawFastHLine(int16_t x, int16_t y, int16_t w, uint16_t color);
57  virtual void fillRect(int16_t x, int16_t y, int16_t w, int16_t h,
58  uint16_t color);
59  virtual void fillScreen(uint16_t color);
60  // Optional and probably not necessary to change
61  virtual void drawLine(int16_t x0, int16_t y0, int16_t x1, int16_t y1,
62  uint16_t color);
63  virtual void drawRect(int16_t x, int16_t y, int16_t w, int16_t h,
64  uint16_t color);
65 
66  // These exist only with Adafruit_GFX (no subclass overrides)
67  void drawCircle(int16_t x0, int16_t y0, int16_t r, uint16_t color);
68  void drawCircleHelper(int16_t x0, int16_t y0, int16_t r, uint8_t cornername,
69  uint16_t color);
70  void fillCircle(int16_t x0, int16_t y0, int16_t r, uint16_t color);
71  void fillCircleHelper(int16_t x0, int16_t y0, int16_t r, uint8_t cornername,
72  int16_t delta, uint16_t color);
73  void drawTriangle(int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2,
74  int16_t y2, uint16_t color);
75  void fillTriangle(int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2,
76  int16_t y2, uint16_t color);
77  void drawRoundRect(int16_t x0, int16_t y0, int16_t w, int16_t h,
78  int16_t radius, uint16_t color);
79  void fillRoundRect(int16_t x0, int16_t y0, int16_t w, int16_t h,
80  int16_t radius, uint16_t color);
81  void drawBitmap(int16_t x, int16_t y, const uint8_t bitmap[], int16_t w,
82  int16_t h, uint16_t color);
83  void drawBitmap(int16_t x, int16_t y, const uint8_t bitmap[], int16_t w,
84  int16_t h, uint16_t color, uint16_t bg);
85  void drawBitmap(int16_t x, int16_t y, uint8_t *bitmap, int16_t w, int16_t h,
86  uint16_t color);
87  void drawBitmap(int16_t x, int16_t y, uint8_t *bitmap, int16_t w, int16_t h,
88  uint16_t color, uint16_t bg);
89  void drawXBitmap(int16_t x, int16_t y, const uint8_t bitmap[], int16_t w,
90  int16_t h, uint16_t color);
91  void drawGrayscaleBitmap(int16_t x, int16_t y, const uint8_t bitmap[],
92  int16_t w, int16_t h);
93  void drawGrayscaleBitmap(int16_t x, int16_t y, uint8_t *bitmap, int16_t w,
94  int16_t h);
95  void drawGrayscaleBitmap(int16_t x, int16_t y, const uint8_t bitmap[],
96  const uint8_t mask[], int16_t w, int16_t h);
97  void drawGrayscaleBitmap(int16_t x, int16_t y, uint8_t *bitmap, uint8_t *mask,
98  int16_t w, int16_t h);
99  void drawRGBBitmap(int16_t x, int16_t y, const uint16_t bitmap[], int16_t w,
100  int16_t h);
101  void drawRGBBitmap(int16_t x, int16_t y, uint16_t *bitmap, int16_t w,
102  int16_t h);
103  void drawRGBBitmap(int16_t x, int16_t y, const uint16_t bitmap[],
104  const uint8_t mask[], int16_t w, int16_t h);
105  void drawRGBBitmap(int16_t x, int16_t y, uint16_t *bitmap, uint8_t *mask,
106  int16_t w, int16_t h);
107  void drawChar(int16_t x, int16_t y, unsigned char c, uint16_t color,
108  uint16_t bg, uint8_t size);
109  void drawChar(int16_t x, int16_t y, unsigned char c, uint16_t color,
110  uint16_t bg, uint8_t size_x, uint8_t size_y);
111  void getTextBounds(const char *string, int16_t x, int16_t y, int16_t *x1,
112  int16_t *y1, uint16_t *w, uint16_t *h);
113  void getTextBounds(const __FlashStringHelper *s, int16_t x, int16_t y,
114  int16_t *x1, int16_t *y1, uint16_t *w, uint16_t *h);
115  void getTextBounds(const String &str, int16_t x, int16_t y, int16_t *x1,
116  int16_t *y1, uint16_t *w, uint16_t *h);
117  void setTextSize(uint8_t s);
118  void setTextSize(uint8_t sx, uint8_t sy);
119  void setFont(const GFXfont *f = NULL);
120 
121  /**********************************************************************/
127  /**********************************************************************/
128  void setCursor(int16_t x, int16_t y) {
129  cursor_x = x;
130  cursor_y = y;
131  }
132 
133  /**********************************************************************/
140  /**********************************************************************/
141  void setTextColor(uint16_t c) { textcolor = textbgcolor = c; }
142 
143  /**********************************************************************/
149  /**********************************************************************/
150  void setTextColor(uint16_t c, uint16_t bg) {
151  textcolor = c;
152  textbgcolor = bg;
153  }
154 
155  /**********************************************************************/
161  /**********************************************************************/
162  void setTextWrap(bool w) { wrap = w; }
163 
164  /**********************************************************************/
177  /**********************************************************************/
178  void cp437(bool x = true) { _cp437 = x; }
179 
180  using Print::write;
181 #if ARDUINO >= 100
182  virtual size_t write(uint8_t);
183 #else
184  virtual void write(uint8_t);
185 #endif
186 
187  /************************************************************************/
192  /************************************************************************/
193  int16_t width(void) const { return _width; };
194 
195  /************************************************************************/
200  /************************************************************************/
201  int16_t height(void) const { return _height; }
202 
203  /************************************************************************/
208  /************************************************************************/
209  uint8_t getRotation(void) const { return rotation; }
210 
211  // get current cursor position (get rotation safe maximum values,
212  // using: width() for x, height() for y)
213  /************************************************************************/
218  /************************************************************************/
219  int16_t getCursorX(void) const { return cursor_x; }
220 
221  /************************************************************************/
226  /************************************************************************/
227  int16_t getCursorY(void) const { return cursor_y; };
228 
229 protected:
230  void charBounds(unsigned char c, int16_t *x, int16_t *y, int16_t *minx,
231  int16_t *miny, int16_t *maxx, int16_t *maxy);
232  int16_t WIDTH;
233  int16_t HEIGHT;
234  int16_t _width;
235  int16_t _height;
236  int16_t cursor_x;
237  int16_t cursor_y;
238  uint16_t textcolor;
239  uint16_t textbgcolor;
240  uint8_t textsize_x;
241  uint8_t textsize_y;
242  uint8_t rotation;
243  bool wrap;
244  bool _cp437;
246 };
247 
250 
251 public:
252  Adafruit_GFX_Button(void);
253  // "Classic" initButton() uses center & size
254  void initButton(Adafruit_GFX *gfx, int16_t x, int16_t y, uint16_t w,
255  uint16_t h, uint16_t outline, uint16_t fill,
256  uint16_t textcolor, char *label, uint8_t textsize);
257  void initButton(Adafruit_GFX *gfx, int16_t x, int16_t y, uint16_t w,
258  uint16_t h, uint16_t outline, uint16_t fill,
259  uint16_t textcolor, char *label, uint8_t textsize_x,
260  uint8_t textsize_y);
261  // New/alt initButton() uses upper-left corner & size
262  void initButtonUL(Adafruit_GFX *gfx, int16_t x1, int16_t y1, uint16_t w,
263  uint16_t h, uint16_t outline, uint16_t fill,
264  uint16_t textcolor, char *label, uint8_t textsize);
265  void initButtonUL(Adafruit_GFX *gfx, int16_t x1, int16_t y1, uint16_t w,
266  uint16_t h, uint16_t outline, uint16_t fill,
267  uint16_t textcolor, char *label, uint8_t textsize_x,
268  uint8_t textsize_y);
269  void drawButton(bool inverted = false);
270  bool contains(int16_t x, int16_t y);
271 
272  /**********************************************************************/
277  /**********************************************************************/
278  void press(bool p) {
279  laststate = currstate;
280  currstate = p;
281  }
282 
283  bool justPressed();
284  bool justReleased();
285 
286  /**********************************************************************/
291  /**********************************************************************/
292  bool isPressed(void) { return currstate; };
293 
294 private:
295  Adafruit_GFX *_gfx;
296  int16_t _x1, _y1; // Coordinates of top-left corner
297  uint16_t _w, _h;
298  uint8_t _textsize_x;
299  uint8_t _textsize_y;
300  uint16_t _outlinecolor, _fillcolor, _textcolor;
301  char _label[10];
302 
303  bool currstate, laststate;
304 };
305 
307 class GFXcanvas1 : public Adafruit_GFX {
308 public:
309  GFXcanvas1(uint16_t w, uint16_t h);
310  ~GFXcanvas1(void);
311  void drawPixel(int16_t x, int16_t y, uint16_t color);
312  void fillScreen(uint16_t color);
313  void drawFastVLine(int16_t x, int16_t y, int16_t h, uint16_t color);
314  void drawFastHLine(int16_t x, int16_t y, int16_t w, uint16_t color);
315  bool getPixel(int16_t x, int16_t y) const;
316  /**********************************************************************/
321  /**********************************************************************/
322  uint8_t *getBuffer(void) const { return buffer; }
323 
324 protected:
325  bool getRawPixel(int16_t x, int16_t y) const;
326  void drawFastRawVLine(int16_t x, int16_t y, int16_t h, uint16_t color);
327  void drawFastRawHLine(int16_t x, int16_t y, int16_t w, uint16_t color);
328 
329 private:
330  uint8_t *buffer;
331 
332 #ifdef __AVR__
333  // Bitmask tables of 0x80>>X and ~(0x80>>X), because X>>Y is slow on AVR
334  static const uint8_t PROGMEM GFXsetBit[], GFXclrBit[];
335 #endif
336 };
337 
339 class GFXcanvas8 : public Adafruit_GFX {
340 public:
341  GFXcanvas8(uint16_t w, uint16_t h);
342  ~GFXcanvas8(void);
343  void drawPixel(int16_t x, int16_t y, uint16_t color);
344  void fillScreen(uint16_t color);
345  void drawFastVLine(int16_t x, int16_t y, int16_t h, uint16_t color);
346  void drawFastHLine(int16_t x, int16_t y, int16_t w, uint16_t color);
347  uint8_t getPixel(int16_t x, int16_t y) const;
348  /**********************************************************************/
353  /**********************************************************************/
354  uint8_t *getBuffer(void) const { return buffer; }
355 
356 protected:
357  uint8_t getRawPixel(int16_t x, int16_t y) const;
358  void drawFastRawVLine(int16_t x, int16_t y, int16_t h, uint16_t color);
359  void drawFastRawHLine(int16_t x, int16_t y, int16_t w, uint16_t color);
360 
361 private:
362  uint8_t *buffer;
363 };
364 
366 class GFXcanvas16 : public Adafruit_GFX {
367 public:
368  GFXcanvas16(uint16_t w, uint16_t h);
369  ~GFXcanvas16(void);
370  void drawPixel(int16_t x, int16_t y, uint16_t color);
371  void fillScreen(uint16_t color);
372  void byteSwap(void);
373  void drawFastVLine(int16_t x, int16_t y, int16_t h, uint16_t color);
374  void drawFastHLine(int16_t x, int16_t y, int16_t w, uint16_t color);
375  uint16_t getPixel(int16_t x, int16_t y) const;
376  /**********************************************************************/
381  /**********************************************************************/
382  uint16_t *getBuffer(void) const { return buffer; }
383 
384 protected:
385  uint16_t getRawPixel(int16_t x, int16_t y) const;
386  void drawFastRawVLine(int16_t x, int16_t y, int16_t h, uint16_t color);
387  void drawFastRawHLine(int16_t x, int16_t y, int16_t w, uint16_t color);
388 
389 private:
390  uint16_t *buffer;
391 };
392 
393 #endif // _ADAFRUIT_GFX_H
uint8_t * getBuffer(void) const
Get a pointer to the internal buffer memory.
Definition: Adafruit_GFX.h:354
-
void fillCircleHelper(int16_t x0, int16_t y0, int16_t r, uint8_t cornername, int16_t delta, uint16_t color)
Quarter-circle drawer with fill, used for circles and roundrects.
Definition: Adafruit_GFX.cpp:471
-
bool isPressed(void)
Query whether the button is currently pressed.
Definition: Adafruit_GFX.h:292
+
1 #ifndef _ADAFRUIT_GFX_H
2 #define _ADAFRUIT_GFX_H
3 
4 #if ARDUINO >= 100
5 #include "Arduino.h"
6 #include "Print.h"
7 #else
8 #include "WProgram.h"
9 #endif
10 #include "gfxfont.h"
11 
15 class Adafruit_GFX : public Print {
16 
17 public:
18  Adafruit_GFX(int16_t w, int16_t h); // Constructor
19 
20  /**********************************************************************/
28  /**********************************************************************/
29  virtual void drawPixel(int16_t x, int16_t y, uint16_t color) = 0;
30 
31  // TRANSACTION API / CORE DRAW API
32  // These MAY be overridden by the subclass to provide device-specific
33  // optimized code. Otherwise 'generic' versions are used.
34  virtual void startWrite(void);
35  virtual void setAddrWindow(uint16_t x, uint16_t y, uint16_t w, uint16_t h);
36  virtual void writeColor(uint16_t color, uint32_t len);
37  virtual void writePixel(int16_t x, int16_t y, uint16_t color);
38  virtual void writeFillRect(int16_t x, int16_t y, int16_t w, int16_t h,
39  uint16_t color);
40  virtual void writeFastVLine(int16_t x, int16_t y, int16_t h, uint16_t color);
41  virtual void writeFastHLine(int16_t x, int16_t y, int16_t w, uint16_t color);
42  virtual void writeLine(int16_t x0, int16_t y0, int16_t x1, int16_t y1,
43  uint16_t color);
44  virtual void endWrite(void);
45 
46  // CONTROL API
47  // These MAY be overridden by the subclass to provide device-specific
48  // optimized code. Otherwise 'generic' versions are used.
49  virtual void setRotation(uint8_t r);
50  virtual void invertDisplay(bool i);
51 
52  // BASIC DRAW API
53  // These MAY be overridden by the subclass to provide device-specific
54  // optimized code. Otherwise 'generic' versions are used.
55 
56  // It's good to implement those, even if using transaction API
57  virtual void drawFastVLine(int16_t x, int16_t y, int16_t h, uint16_t color);
58  virtual void drawFastHLine(int16_t x, int16_t y, int16_t w, uint16_t color);
59  virtual void fillRect(int16_t x, int16_t y, int16_t w, int16_t h,
60  uint16_t color);
61  virtual void fillScreen(uint16_t color);
62  // Optional and probably not necessary to change
63  virtual void drawLine(int16_t x0, int16_t y0, int16_t x1, int16_t y1,
64  uint16_t color);
65  virtual void drawRect(int16_t x, int16_t y, int16_t w, int16_t h,
66  uint16_t color);
67 
68  // These exist only with Adafruit_GFX (no subclass overrides)
69  void drawCircle(int16_t x0, int16_t y0, int16_t r, uint16_t color);
70  void drawCircleHelper(int16_t x0, int16_t y0, int16_t r, uint8_t cornername,
71  uint16_t color);
72  void fillCircle(int16_t x0, int16_t y0, int16_t r, uint16_t color);
73  void fillCircleHelper(int16_t x0, int16_t y0, int16_t r, uint8_t cornername,
74  int16_t delta, uint16_t color);
75  void drawTriangle(int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2,
76  int16_t y2, uint16_t color);
77  void fillTriangle(int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2,
78  int16_t y2, uint16_t color);
79  void drawRoundRect(int16_t x0, int16_t y0, int16_t w, int16_t h,
80  int16_t radius, uint16_t color);
81  void fillRoundRect(int16_t x0, int16_t y0, int16_t w, int16_t h,
82  int16_t radius, uint16_t color);
83  void drawBitmap(int16_t x, int16_t y, const uint8_t bitmap[], int16_t w,
84  int16_t h, uint16_t color);
85  void drawBitmap(int16_t x, int16_t y, const uint8_t bitmap[], int16_t w,
86  int16_t h, uint16_t color, uint16_t bg);
87  void drawBitmap(int16_t x, int16_t y, uint8_t *bitmap, int16_t w, int16_t h,
88  uint16_t color);
89  void drawBitmap(int16_t x, int16_t y, uint8_t *bitmap, int16_t w, int16_t h,
90  uint16_t color, uint16_t bg);
91  void drawXBitmap(int16_t x, int16_t y, const uint8_t bitmap[], int16_t w,
92  int16_t h, uint16_t color);
93  void drawGrayscaleBitmap(int16_t x, int16_t y, const uint8_t bitmap[],
94  int16_t w, int16_t h);
95  void drawGrayscaleBitmap(int16_t x, int16_t y, uint8_t *bitmap, int16_t w,
96  int16_t h);
97  void drawGrayscaleBitmap(int16_t x, int16_t y, const uint8_t bitmap[],
98  const uint8_t mask[], int16_t w, int16_t h);
99  void drawGrayscaleBitmap(int16_t x, int16_t y, uint8_t *bitmap, uint8_t *mask,
100  int16_t w, int16_t h);
101  void drawRGBBitmap(int16_t x, int16_t y, const uint16_t bitmap[], int16_t w,
102  int16_t h);
103  void drawRGBBitmap(int16_t x, int16_t y, uint16_t *bitmap, int16_t w,
104  int16_t h);
105  void drawRGBBitmap(int16_t x, int16_t y, const uint16_t bitmap[],
106  const uint8_t mask[], int16_t w, int16_t h);
107  void drawRGBBitmap(int16_t x, int16_t y, uint16_t *bitmap, uint8_t *mask,
108  int16_t w, int16_t h);
109  void drawChar(int16_t x, int16_t y, unsigned char c, uint16_t color,
110  uint16_t bg, uint8_t size);
111  void drawChar(int16_t x, int16_t y, unsigned char c, uint16_t color,
112  uint16_t bg, uint8_t size_x, uint8_t size_y);
113  void getTextBounds(const char *string, int16_t x, int16_t y, int16_t *x1,
114  int16_t *y1, uint16_t *w, uint16_t *h);
115  void getTextBounds(const __FlashStringHelper *s, int16_t x, int16_t y,
116  int16_t *x1, int16_t *y1, uint16_t *w, uint16_t *h);
117  void getTextBounds(const String &str, int16_t x, int16_t y, int16_t *x1,
118  int16_t *y1, uint16_t *w, uint16_t *h);
119  void setTextSize(uint8_t s);
120  void setTextSize(uint8_t sx, uint8_t sy);
121  void setFont(const GFXfont *f = NULL);
122 
123  /**********************************************************************/
129  /**********************************************************************/
130  void setCursor(int16_t x, int16_t y) {
131  cursor_x = x;
132  cursor_y = y;
133  }
134 
135  /**********************************************************************/
142  /**********************************************************************/
143  void setTextColor(uint16_t c) { textcolor = textbgcolor = c; }
144 
145  /**********************************************************************/
151  /**********************************************************************/
152  void setTextColor(uint16_t c, uint16_t bg) {
153  textcolor = c;
154  textbgcolor = bg;
155  }
156 
157  /**********************************************************************/
163  /**********************************************************************/
164  void setTextWrap(bool w) { wrap = w; }
165 
166  /**********************************************************************/
179  /**********************************************************************/
180  void cp437(bool x = true) { _cp437 = x; }
181 
182  using Print::write;
183 #if ARDUINO >= 100
184  virtual size_t write(uint8_t);
185 #else
186  virtual void write(uint8_t);
187 #endif
188 
189  /************************************************************************/
194  /************************************************************************/
195  int16_t width(void) const { return _width; };
196 
197  /************************************************************************/
202  /************************************************************************/
203  int16_t height(void) const { return _height; }
204 
205  /************************************************************************/
210  /************************************************************************/
211  uint8_t getRotation(void) const { return rotation; }
212 
213  // get current cursor position (get rotation safe maximum values,
214  // using: width() for x, height() for y)
215  /************************************************************************/
220  /************************************************************************/
221  int16_t getCursorX(void) const { return cursor_x; }
222 
223  /************************************************************************/
228  /************************************************************************/
229  int16_t getCursorY(void) const { return cursor_y; };
230 
231 protected:
232  void charBounds(unsigned char c, int16_t *x, int16_t *y, int16_t *minx,
233  int16_t *miny, int16_t *maxx, int16_t *maxy);
234  int16_t WIDTH;
235  int16_t HEIGHT;
236  int16_t _width;
237  int16_t _height;
238  int16_t cursor_x;
239  int16_t cursor_y;
240  uint16_t textcolor;
241  uint16_t textbgcolor;
242  uint8_t textsize_x;
243  uint8_t textsize_y;
244  uint8_t rotation;
245  bool wrap;
246  bool _cp437;
248 };
249 
252 
253 public:
254  Adafruit_GFX_Button(void);
255  // "Classic" initButton() uses center & size
256  void initButton(Adafruit_GFX *gfx, int16_t x, int16_t y, uint16_t w,
257  uint16_t h, uint16_t outline, uint16_t fill,
258  uint16_t textcolor, char *label, uint8_t textsize);
259  void initButton(Adafruit_GFX *gfx, int16_t x, int16_t y, uint16_t w,
260  uint16_t h, uint16_t outline, uint16_t fill,
261  uint16_t textcolor, char *label, uint8_t textsize_x,
262  uint8_t textsize_y);
263  // New/alt initButton() uses upper-left corner & size
264  void initButtonUL(Adafruit_GFX *gfx, int16_t x1, int16_t y1, uint16_t w,
265  uint16_t h, uint16_t outline, uint16_t fill,
266  uint16_t textcolor, char *label, uint8_t textsize);
267  void initButtonUL(Adafruit_GFX *gfx, int16_t x1, int16_t y1, uint16_t w,
268  uint16_t h, uint16_t outline, uint16_t fill,
269  uint16_t textcolor, char *label, uint8_t textsize_x,
270  uint8_t textsize_y);
271  void drawButton(bool inverted = false);
272  bool contains(int16_t x, int16_t y);
273 
274  /**********************************************************************/
279  /**********************************************************************/
280  void press(bool p) {
281  laststate = currstate;
282  currstate = p;
283  }
284 
285  bool justPressed();
286  bool justReleased();
287 
288  /**********************************************************************/
293  /**********************************************************************/
294  bool isPressed(void) { return currstate; };
295 
296 private:
297  Adafruit_GFX *_gfx;
298  int16_t _x1, _y1; // Coordinates of top-left corner
299  uint16_t _w, _h;
300  uint8_t _textsize_x;
301  uint8_t _textsize_y;
302  uint16_t _outlinecolor, _fillcolor, _textcolor;
303  char _label[10];
304 
305  bool currstate, laststate;
306 };
307 
309 class GFXcanvas1 : public Adafruit_GFX {
310 public:
311  GFXcanvas1(uint16_t w, uint16_t h);
312  ~GFXcanvas1(void);
313  void drawPixel(int16_t x, int16_t y, uint16_t color);
314  void fillScreen(uint16_t color);
315  void drawFastVLine(int16_t x, int16_t y, int16_t h, uint16_t color);
316  void drawFastHLine(int16_t x, int16_t y, int16_t w, uint16_t color);
317  bool getPixel(int16_t x, int16_t y) const;
318  /**********************************************************************/
323  /**********************************************************************/
324  uint8_t *getBuffer(void) const { return buffer; }
325 
326 protected:
327  bool getRawPixel(int16_t x, int16_t y) const;
328  void drawFastRawVLine(int16_t x, int16_t y, int16_t h, uint16_t color);
329  void drawFastRawHLine(int16_t x, int16_t y, int16_t w, uint16_t color);
330 
331 private:
332  uint8_t *buffer;
333 
334 #ifdef __AVR__
335  // Bitmask tables of 0x80>>X and ~(0x80>>X), because X>>Y is slow on AVR
336  static const uint8_t PROGMEM GFXsetBit[], GFXclrBit[];
337 #endif
338 };
339 
341 class GFXcanvas8 : public Adafruit_GFX {
342 public:
343  GFXcanvas8(uint16_t w, uint16_t h);
344  ~GFXcanvas8(void);
345  void drawPixel(int16_t x, int16_t y, uint16_t color);
346  void fillScreen(uint16_t color);
347  void drawFastVLine(int16_t x, int16_t y, int16_t h, uint16_t color);
348  void drawFastHLine(int16_t x, int16_t y, int16_t w, uint16_t color);
349  uint8_t getPixel(int16_t x, int16_t y) const;
350  /**********************************************************************/
355  /**********************************************************************/
356  uint8_t *getBuffer(void) const { return buffer; }
357 
358 protected:
359  uint8_t getRawPixel(int16_t x, int16_t y) const;
360  void drawFastRawVLine(int16_t x, int16_t y, int16_t h, uint16_t color);
361  void drawFastRawHLine(int16_t x, int16_t y, int16_t w, uint16_t color);
362 
363 private:
364  uint8_t *buffer;
365 };
366 
368 class GFXcanvas16 : public Adafruit_GFX {
369 public:
370  GFXcanvas16(uint16_t w, uint16_t h);
371  ~GFXcanvas16(void);
372  void drawPixel(int16_t x, int16_t y, uint16_t color);
373  void fillScreen(uint16_t color);
374  void byteSwap(void);
375  void drawFastVLine(int16_t x, int16_t y, int16_t h, uint16_t color);
376  void drawFastHLine(int16_t x, int16_t y, int16_t w, uint16_t color);
377  uint16_t getPixel(int16_t x, int16_t y) const;
378  /**********************************************************************/
383  /**********************************************************************/
384  uint16_t *getBuffer(void) const { return buffer; }
385 
386 protected:
387  uint16_t getRawPixel(int16_t x, int16_t y) const;
388  void drawFastRawVLine(int16_t x, int16_t y, int16_t h, uint16_t color);
389  void drawFastRawHLine(int16_t x, int16_t y, int16_t w, uint16_t color);
390 
391 private:
392  uint16_t *buffer;
393 };
394 
395 #endif // _ADAFRUIT_GFX_H
uint8_t * getBuffer(void) const
Get a pointer to the internal buffer memory.
Definition: Adafruit_GFX.h:356
+
void fillCircleHelper(int16_t x0, int16_t y0, int16_t r, uint8_t cornername, int16_t delta, uint16_t color)
Quarter-circle drawer with fill, used for circles and roundrects.
Definition: Adafruit_GFX.cpp:502
+
bool isPressed(void)
Query whether the button is currently pressed.
Definition: Adafruit_GFX.h:294
virtual void writePixel(int16_t x, int16_t y, uint16_t color)
Write a pixel, overwrite in subclasses if startWrite is defined!
Definition: Adafruit_GFX.cpp:190
-
void setTextColor(uint16_t c, uint16_t bg)
Set text font color with custom background color.
Definition: Adafruit_GFX.h:150
-
void drawXBitmap(int16_t x, int16_t y, const uint8_t bitmap[], int16_t w, int16_t h, uint16_t color)
Draw PROGMEM-resident XBitMap Files (*.xbm), exported from GIMP. Usage: Export from GIMP to *...
Definition: Adafruit_GFX.cpp:851
+
void setTextColor(uint16_t c, uint16_t bg)
Set text font color with custom background color.
Definition: Adafruit_GFX.h:152
+
void drawXBitmap(int16_t x, int16_t y, const uint8_t bitmap[], int16_t w, int16_t h, uint16_t color)
Draw PROGMEM-resident XBitMap Files (*.xbm), exported from GIMP. Usage: Export from GIMP to *...
Definition: Adafruit_GFX.cpp:882
Data stored for FONT AS A WHOLE.
Definition: gfxfont.h:21
-
void setTextWrap(bool w)
Set whether text that is too long for the screen width should automatically wrap around to the next l...
Definition: Adafruit_GFX.h:162
+
void setTextWrap(bool w)
Set whether text that is too long for the screen width should automatically wrap around to the next l...
Definition: Adafruit_GFX.h:164
Definition: Adafruit_GFX.h:15
-
void fillCircle(int16_t x0, int16_t y0, int16_t r, uint16_t color)
Draw a circle with filled color.
Definition: Adafruit_GFX.cpp:452
-
uint8_t * getBuffer(void) const
Get a pointer to the internal buffer memory.
Definition: Adafruit_GFX.h:322
+
void fillCircle(int16_t x0, int16_t y0, int16_t r, uint16_t color)
Draw a circle with filled color.
Definition: Adafruit_GFX.cpp:483
+
uint8_t * getBuffer(void) const
Get a pointer to the internal buffer memory.
Definition: Adafruit_GFX.h:324
virtual void drawPixel(int16_t x, int16_t y, uint16_t color)=0
Draw to the screen/framebuffer/etc. Must be overridden in subclass.
-
virtual void endWrite(void)
End a display-writing routine, overwrite in subclasses if startWrite is defined!
Definition: Adafruit_GFX.cpp:253
-
void drawChar(int16_t x, int16_t y, unsigned char c, uint16_t color, uint16_t bg, uint8_t size)
Draw a single character.
Definition: Adafruit_GFX.cpp:1115
-
int16_t getCursorX(void) const
Get text cursor X location.
Definition: Adafruit_GFX.h:219
+
virtual void endWrite(void)
End a display-writing routine, overwrite in subclasses if startWrite is defined!
Definition: Adafruit_GFX.cpp:284
+
void drawChar(int16_t x, int16_t y, unsigned char c, uint16_t color, uint16_t bg, uint8_t size)
Draw a single character.
Definition: Adafruit_GFX.cpp:1146
+
int16_t getCursorX(void) const
Get text cursor X location.
Definition: Adafruit_GFX.h:221
virtual void writeFillRect(int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color)
Write a rectangle completely with one color, overwrite in subclasses if startWrite is defined! ...
Definition: Adafruit_GFX.cpp:241
-
int16_t cursor_y
y location to start print()ing text
Definition: Adafruit_GFX.h:237
-
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 with no fill color.
Definition: Adafruit_GFX.cpp:600
-
GFXfont * gfxFont
Pointer to special font.
Definition: Adafruit_GFX.h:245
-
void drawRoundRect(int16_t x0, int16_t y0, int16_t w, int16_t h, int16_t radius, uint16_t color)
Draw a rounded rectangle with no fill color.
Definition: Adafruit_GFX.cpp:544
-
A GFX 1-bit canvas context for graphics.
Definition: Adafruit_GFX.h:307
-
void setFont(const GFXfont *f=NULL)
Set the font to display when print()ing, either custom or default.
Definition: Adafruit_GFX.cpp:1338
-
uint8_t textsize_x
Desired magnification in X-axis of text to print()
Definition: Adafruit_GFX.h:240
-
A GFX 16-bit canvas context for graphics.
Definition: Adafruit_GFX.h:366
-
virtual void invertDisplay(bool i)
Invert the display (ideally using built-in hardware command)
Definition: Adafruit_GFX.cpp:1540
-
void drawCircleHelper(int16_t x0, int16_t y0, int16_t r, uint8_t cornername, uint16_t color)
Quarter-circle drawer, used to do circles and roundrects.
Definition: Adafruit_GFX.cpp:407
-
void press(bool p)
Sets button state, should be done by some touch function.
Definition: Adafruit_GFX.h:278
-
void drawRGBBitmap(int16_t x, int16_t y, const uint16_t bitmap[], int16_t w, int16_t h)
Draw a PROGMEM-resident 16-bit image (RGB 5/6/5) at the specified (x,y) position. For 16-bit display ...
Definition: Adafruit_GFX.cpp:1001
-
bool _cp437
If set, use correct CP437 charset (default is off)
Definition: Adafruit_GFX.h:244
-
A GFX 8-bit canvas context for graphics.
Definition: Adafruit_GFX.h:339
-
void setTextColor(uint16_t c)
Set text font color with transparant background.
Definition: Adafruit_GFX.h:141
+
int16_t cursor_y
y location to start print()ing text
Definition: Adafruit_GFX.h:239
+
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 with no fill color.
Definition: Adafruit_GFX.cpp:631
+
GFXfont * gfxFont
Pointer to special font.
Definition: Adafruit_GFX.h:247
+
void drawRoundRect(int16_t x0, int16_t y0, int16_t w, int16_t h, int16_t radius, uint16_t color)
Draw a rounded rectangle with no fill color.
Definition: Adafruit_GFX.cpp:575
+
A GFX 1-bit canvas context for graphics.
Definition: Adafruit_GFX.h:309
+
void setFont(const GFXfont *f=NULL)
Set the font to display when print()ing, either custom or default.
Definition: Adafruit_GFX.cpp:1382
+
uint8_t textsize_x
Desired magnification in X-axis of text to print()
Definition: Adafruit_GFX.h:242
+
virtual void writeColor(uint16_t color, uint32_t len)
write len pixels of the given color, overwrite in subclasses if needed
Definition: Adafruit_GFX.cpp:273
+
A GFX 16-bit canvas context for graphics.
Definition: Adafruit_GFX.h:368
+
virtual void invertDisplay(bool i)
Invert the display (ideally using built-in hardware command)
Definition: Adafruit_GFX.cpp:1584
+
void drawCircleHelper(int16_t x0, int16_t y0, int16_t r, uint8_t cornername, uint16_t color)
Quarter-circle drawer, used to do circles and roundrects.
Definition: Adafruit_GFX.cpp:438
+
void press(bool p)
Sets button state, should be done by some touch function.
Definition: Adafruit_GFX.h:280
+
void drawRGBBitmap(int16_t x, int16_t y, const uint16_t bitmap[], int16_t w, int16_t h)
Draw a PROGMEM-resident 16-bit image (RGB 5/6/5) at the specified (x,y) position. For 16-bit display ...
Definition: Adafruit_GFX.cpp:1032
+
bool _cp437
If set, use correct CP437 charset (default is off)
Definition: Adafruit_GFX.h:246
+
A GFX 8-bit canvas context for graphics.
Definition: Adafruit_GFX.h:341
+
void setTextColor(uint16_t c)
Set text font color with transparant background.
Definition: Adafruit_GFX.h:143
virtual void writeLine(int16_t x0, int16_t y0, int16_t x1, int16_t y1, uint16_t color)
Write a line. Bresenham's algorithm - thx wikpedia.
Definition: Adafruit_GFX.cpp:132
-
virtual void fillRect(int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color)
Fill a rectangle completely with one color. Update in subclasses if desired!
Definition: Adafruit_GFX.cpp:300
-
int16_t height(void) const
Get height of the display, accounting for current rotation.
Definition: Adafruit_GFX.h:201
-
void cp437(bool x=true)
Enable (or disable) Code Page 437-compatible charset. There was an error in glcdfont.c for the longest time – one character (#176, the 'light shade' block) was missing – this threw off the index of every character that followed it. But a TON of code has been written with the erroneous character indices. By default, the library uses the original 'wrong' behavior and old sketches will still work. Pass 'true' to this function to use correct CP437 character values in your code.
Definition: Adafruit_GFX.h:178
-
virtual void setRotation(uint8_t r)
Set rotation setting for display.
Definition: Adafruit_GFX.cpp:1316
-
void drawGrayscaleBitmap(int16_t x, int16_t y, const uint8_t bitmap[], int16_t w, int16_t h)
Draw a PROGMEM-resident 8-bit image (grayscale) at the specified (x,y) pos. Specifically for 8-bit di...
Definition: Adafruit_GFX.cpp:885
-
void charBounds(unsigned char c, int16_t *x, int16_t *y, int16_t *minx, int16_t *miny, int16_t *maxx, int16_t *maxy)
Helper to determine size of a character with current font/size. Broke this out as it's used by both t...
Definition: Adafruit_GFX.cpp:1371
-
uint8_t getRotation(void) const
Get rotation setting for display.
Definition: Adafruit_GFX.h:209
-
void setTextSize(uint8_t s)
Set text 'magnification' size. Each increase in s makes 1 pixel that much bigger. ...
Definition: Adafruit_GFX.cpp:1295
-
uint16_t textbgcolor
16-bit text color for print()
Definition: Adafruit_GFX.h:239
+
virtual void fillRect(int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color)
Fill a rectangle completely with one color. Update in subclasses if desired!
Definition: Adafruit_GFX.cpp:331
+
int16_t height(void) const
Get height of the display, accounting for current rotation.
Definition: Adafruit_GFX.h:203
+
void cp437(bool x=true)
Enable (or disable) Code Page 437-compatible charset. There was an error in glcdfont.c for the longest time – one character (#176, the 'light shade' block) was missing – this threw off the index of every character that followed it. But a TON of code has been written with the erroneous character indices. By default, the library uses the original 'wrong' behavior and old sketches will still work. Pass 'true' to this function to use correct CP437 character values in your code.
Definition: Adafruit_GFX.h:180
+
virtual void setRotation(uint8_t r)
Set rotation setting for display.
Definition: Adafruit_GFX.cpp:1360
+
void drawGrayscaleBitmap(int16_t x, int16_t y, const uint8_t bitmap[], int16_t w, int16_t h)
Draw a PROGMEM-resident 8-bit image (grayscale) at the specified (x,y) pos. Specifically for 8-bit di...
Definition: Adafruit_GFX.cpp:916
+
void charBounds(unsigned char c, int16_t *x, int16_t *y, int16_t *minx, int16_t *miny, int16_t *maxx, int16_t *maxy)
Helper to determine size of a character with current font/size. Broke this out as it's used by both t...
Definition: Adafruit_GFX.cpp:1415
+
uint8_t getRotation(void) const
Get rotation setting for display.
Definition: Adafruit_GFX.h:211
+
void setTextSize(uint8_t s)
Set text 'magnification' size. Each increase in s makes 1 pixel that much bigger. ...
Definition: Adafruit_GFX.cpp:1339
+
uint16_t textbgcolor
16-bit text color for print()
Definition: Adafruit_GFX.h:241
Adafruit_GFX(int16_t w, int16_t h)
Instatiate a GFX context for graphics! Can only be done by a superclass.
Definition: Adafruit_GFX.cpp:110
-
int16_t cursor_x
x location to start print()ing text
Definition: Adafruit_GFX.h:236
-
uint8_t textsize_y
Desired magnification in Y-axis of text to print()
Definition: Adafruit_GFX.h:241
-
int16_t _height
Display height as modified by current rotation.
Definition: Adafruit_GFX.h:235
-
int16_t _width
Display width as modified by current rotation.
Definition: Adafruit_GFX.h:234
-
void fillRoundRect(int16_t x0, int16_t y0, int16_t w, int16_t h, int16_t radius, uint16_t color)
Draw a rounded rectangle with fill color.
Definition: Adafruit_GFX.cpp:574
-
virtual void drawFastHLine(int16_t x, int16_t y, int16_t w, uint16_t color)
Draw a perfectly horizontal line (this is often optimized in a subclass!)
Definition: Adafruit_GFX.cpp:282
-
int16_t getCursorY(void) const
Get text cursor Y location.
Definition: Adafruit_GFX.h:227
-
uint8_t rotation
Display rotation (0 thru 3)
Definition: Adafruit_GFX.h:242
-
void setCursor(int16_t x, int16_t y)
Set text cursor location.
Definition: Adafruit_GFX.h:128
-
uint16_t textcolor
16-bit background color for print()
Definition: Adafruit_GFX.h:238
-
bool wrap
If set, 'wrap' text at right edge of display.
Definition: Adafruit_GFX.h:243
-
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 with color-fill.
Definition: Adafruit_GFX.cpp:619
-
uint16_t * getBuffer(void) const
Get a pointer to the internal buffer memory.
Definition: Adafruit_GFX.h:382
-
virtual void drawFastVLine(int16_t x, int16_t y, int16_t h, uint16_t color)
Draw a perfectly vertical line (this is often optimized in a subclass!)
Definition: Adafruit_GFX.cpp:265
-
virtual void drawLine(int16_t x0, int16_t y0, int16_t x1, int16_t y1, uint16_t color)
Draw a line.
Definition: Adafruit_GFX.cpp:330
+
int16_t cursor_x
x location to start print()ing text
Definition: Adafruit_GFX.h:238
+
uint8_t textsize_y
Desired magnification in Y-axis of text to print()
Definition: Adafruit_GFX.h:243
+
int16_t _height
Display height as modified by current rotation.
Definition: Adafruit_GFX.h:237
+
int16_t _width
Display width as modified by current rotation.
Definition: Adafruit_GFX.h:236
+
void fillRoundRect(int16_t x0, int16_t y0, int16_t w, int16_t h, int16_t radius, uint16_t color)
Draw a rounded rectangle with fill color.
Definition: Adafruit_GFX.cpp:605
+
virtual void drawFastHLine(int16_t x, int16_t y, int16_t w, uint16_t color)
Draw a perfectly horizontal line (this is often optimized in a subclass!)
Definition: Adafruit_GFX.cpp:313
+
int16_t getCursorY(void) const
Get text cursor Y location.
Definition: Adafruit_GFX.h:229
+
uint8_t rotation
Display rotation (0 thru 3)
Definition: Adafruit_GFX.h:244
+
void setCursor(int16_t x, int16_t y)
Set text cursor location.
Definition: Adafruit_GFX.h:130
+
uint16_t textcolor
16-bit background color for print()
Definition: Adafruit_GFX.h:240
+
bool wrap
If set, 'wrap' text at right edge of display.
Definition: Adafruit_GFX.h:245
+
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 with color-fill.
Definition: Adafruit_GFX.cpp:650
+
uint16_t * getBuffer(void) const
Get a pointer to the internal buffer memory.
Definition: Adafruit_GFX.h:384
+
virtual void setAddrWindow(uint16_t x, uint16_t y, uint16_t w, uint16_t h)
set the address window (memory area), overwrite in subclasses if needed
Definition: Adafruit_GFX.cpp:257
+
virtual void drawFastVLine(int16_t x, int16_t y, int16_t h, uint16_t color)
Draw a perfectly vertical line (this is often optimized in a subclass!)
Definition: Adafruit_GFX.cpp:296
+
virtual void drawLine(int16_t x0, int16_t y0, int16_t x1, int16_t y1, uint16_t color)
Draw a line.
Definition: Adafruit_GFX.cpp:361
virtual void startWrite(void)
Start a display-writing routine, overwrite in subclasses.
Definition: Adafruit_GFX.cpp:180
-
int16_t HEIGHT
This is the 'raw' display height - never changes.
Definition: Adafruit_GFX.h:233
-
void drawCircle(int16_t x0, int16_t y0, int16_t r, uint16_t color)
Draw a circle outline.
Definition: Adafruit_GFX.cpp:357
+
int16_t HEIGHT
This is the 'raw' display height - never changes.
Definition: Adafruit_GFX.h:235
+
void drawCircle(int16_t x0, int16_t y0, int16_t r, uint16_t color)
Draw a circle outline.
Definition: Adafruit_GFX.cpp:388
virtual void writeFastHLine(int16_t x, int16_t y, int16_t w, uint16_t color)
Write a perfectly horizontal line, overwrite in subclasses if startWrite is defined! ...
Definition: Adafruit_GFX.cpp:222
-
void drawBitmap(int16_t x, int16_t y, const uint8_t bitmap[], int16_t w, int16_t h, uint16_t color)
Draw a PROGMEM-resident 1-bit image at the specified (x,y) position, using the specified foreground c...
Definition: Adafruit_GFX.cpp:717
+
void drawBitmap(int16_t x, int16_t y, const uint8_t bitmap[], int16_t w, int16_t h, uint16_t color)
Draw a PROGMEM-resident 1-bit image at the specified (x,y) position, using the specified foreground c...
Definition: Adafruit_GFX.cpp:748
virtual void writeFastVLine(int16_t x, int16_t y, int16_t h, uint16_t color)
Write a perfectly vertical line, overwrite in subclasses if startWrite is defined! ...
Definition: Adafruit_GFX.cpp:204
-
A simple drawn button UI element.
Definition: Adafruit_GFX.h:249
-
virtual void drawRect(int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color)
Draw a rectangle with no fill color.
Definition: Adafruit_GFX.cpp:523
-
void getTextBounds(const char *string, int16_t x, int16_t y, int16_t *x1, int16_t *y1, uint16_t *w, uint16_t *h)
Helper to determine size of a string with current font/size. Pass string and a cursor position...
Definition: Adafruit_GFX.cpp:1448
-
virtual void write(uint8_t)
Print one byte/character of data, used to support print()
Definition: Adafruit_GFX.cpp:1242
-
virtual void fillScreen(uint16_t color)
Fill the screen completely with one color. Update in subclasses if desired!
Definition: Adafruit_GFX.cpp:316
-
int16_t WIDTH
This is the 'raw' display width - never changes.
Definition: Adafruit_GFX.h:232
-
int16_t width(void) const
Get width of the display, accounting for current rotation.
Definition: Adafruit_GFX.h:193
+
A simple drawn button UI element.
Definition: Adafruit_GFX.h:251
+
virtual void drawRect(int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color)
Draw a rectangle with no fill color.
Definition: Adafruit_GFX.cpp:554
+
void getTextBounds(const char *string, int16_t x, int16_t y, int16_t *x1, int16_t *y1, uint16_t *w, uint16_t *h)
Helper to determine size of a string with current font/size. Pass string and a cursor position...
Definition: Adafruit_GFX.cpp:1492
+
virtual void write(uint8_t)
Print one byte/character of data, used to support print()
Definition: Adafruit_GFX.cpp:1286
+
virtual void fillScreen(uint16_t color)
Fill the screen completely with one color. Update in subclasses if desired!
Definition: Adafruit_GFX.cpp:347
+
int16_t WIDTH
This is the 'raw' display width - never changes.
Definition: Adafruit_GFX.h:234
+
int16_t width(void) const
Get width of the display, accounting for current rotation.
Definition: Adafruit_GFX.h:195
+ + +

◆ setAddrWindow()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
void Adafruit_GFX::setAddrWindow (uint16_t x,
uint16_t y,
uint16_t w,
uint16_t h 
)
+
+virtual
+
+ +

set the address window (memory area), overwrite in subclasses if needed

+
Parameters
+ + + + + +
xstarting x coordinate
ystarting y coordinate
wwidth in pixels
hheight in pixels
+
+
+ +

Reimplemented in Adafruit_SPITFT.

+ +
+
+ +

◆ writeColor()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + +
void Adafruit_GFX::writeColor (uint16_t color,
uint32_t len 
)
+
+virtual
+
+ +

write len pixels of the given color, overwrite in subclasses if needed

+
Parameters
+ + + +
color16-bit 5-6-5 color to write
lennumber of pixels to write
+
+
+ +

Reimplemented in Adafruit_SPITFT.

+
diff --git a/html/class_adafruit___gray_o_l_e_d-members.html b/html/class_adafruit___gray_o_l_e_d-members.html index 575b440..b5c0715 100644 --- a/html/class_adafruit___gray_o_l_e_d-members.html +++ b/html/class_adafruit___gray_o_l_e_d-members.html @@ -133,29 +133,31 @@ $(function() { oled_commandList(const uint8_t *c, uint8_t n)Adafruit_GrayOLED rotationAdafruit_GFXprotected rstPinAdafruit_GrayOLEDprotected - setContrast(uint8_t contrastlevel)Adafruit_GrayOLED - setCursor(int16_t x, int16_t y)Adafruit_GFXinline - setFont(const GFXfont *f=NULL)Adafruit_GFX - setRotation(uint8_t r)Adafruit_GFXvirtual - setTextColor(uint16_t c)Adafruit_GFXinline - setTextColor(uint16_t c, uint16_t bg)Adafruit_GFXinline - setTextSize(uint8_t s)Adafruit_GFX - setTextSize(uint8_t sx, uint8_t sy)Adafruit_GFX - setTextWrap(bool w)Adafruit_GFXinline - spi_devAdafruit_GrayOLEDprotected - startWrite(void)Adafruit_GFXvirtual - textbgcolorAdafruit_GFXprotected - textcolorAdafruit_GFXprotected - textsize_xAdafruit_GFXprotected - textsize_yAdafruit_GFXprotected - WIDTHAdafruit_GFXprotected + setAddrWindow(uint16_t x, uint16_t y, uint16_t w, uint16_t h)Adafruit_GFXvirtual + setContrast(uint8_t contrastlevel)Adafruit_GrayOLED + setCursor(int16_t x, int16_t y)Adafruit_GFXinline + setFont(const GFXfont *f=NULL)Adafruit_GFX + setRotation(uint8_t r)Adafruit_GFXvirtual + setTextColor(uint16_t c)Adafruit_GFXinline + setTextColor(uint16_t c, uint16_t bg)Adafruit_GFXinline + setTextSize(uint8_t s)Adafruit_GFX + setTextSize(uint8_t sx, uint8_t sy)Adafruit_GFX + setTextWrap(bool w)Adafruit_GFXinline + spi_devAdafruit_GrayOLEDprotected + startWrite(void)Adafruit_GFXvirtual + textbgcolorAdafruit_GFXprotected + textcolorAdafruit_GFXprotected + textsize_xAdafruit_GFXprotected + textsize_yAdafruit_GFXprotected width(void) constAdafruit_GFXinline - window_x1Adafruit_GrayOLEDprotected - window_x2Adafruit_GrayOLEDprotected - window_y1Adafruit_GrayOLEDprotected - window_y2Adafruit_GrayOLEDprotected - wrapAdafruit_GFXprotected - write(uint8_t)Adafruit_GFXvirtual + WIDTHAdafruit_GFXprotected + window_x1Adafruit_GrayOLEDprotected + window_x2Adafruit_GrayOLEDprotected + window_y1Adafruit_GrayOLEDprotected + window_y2Adafruit_GrayOLEDprotected + wrapAdafruit_GFXprotected + write(uint8_t)Adafruit_GFXvirtual + writeColor(uint16_t color, uint32_t len)Adafruit_GFXvirtual writeFastHLine(int16_t x, int16_t y, int16_t w, uint16_t color)Adafruit_GFXvirtual writeFastVLine(int16_t x, int16_t y, int16_t h, uint16_t color)Adafruit_GFXvirtual writeFillRect(int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color)Adafruit_GFXvirtual diff --git a/html/class_adafruit___gray_o_l_e_d.html b/html/class_adafruit___gray_o_l_e_d.html index d8e8edf..7e8d168 100644 --- a/html/class_adafruit___gray_o_l_e_d.html +++ b/html/class_adafruit___gray_o_l_e_d.html @@ -133,6 +133,12 @@ virtual void startWrite (void)  Start a display-writing routine, overwrite in subclasses.
  +virtual void setAddrWindow (uint16_t x, uint16_t y, uint16_t w, uint16_t h) + set the address window (memory area), overwrite in subclasses if needed More...
+  +virtual void writeColor (uint16_t color, uint32_t len) + write len pixels of the given color, overwrite in subclasses if needed More...
+  virtual void writePixel (int16_t x, int16_t y, uint16_t color)  Write a pixel, overwrite in subclasses if startWrite is defined! More...
  diff --git a/html/class_adafruit___s_p_i_t_f_t-members.html b/html/class_adafruit___s_p_i_t_f_t-members.html index 2197219..dfea860 100644 --- a/html/class_adafruit___s_p_i_t_f_t-members.html +++ b/html/class_adafruit___s_p_i_t_f_t-members.html @@ -190,7 +190,7 @@ $(function() { wrapAdafruit_GFXprotected write(uint8_t)Adafruit_GFXvirtual write16(uint16_t w)Adafruit_SPITFT - writeColor(uint16_t color, uint32_t len)Adafruit_SPITFT + writeColor(uint16_t color, uint32_t len)Adafruit_SPITFTvirtual writeCommand(uint8_t cmd)Adafruit_SPITFT writeCommand16(uint16_t cmd)Adafruit_SPITFT writeFastHLine(int16_t x, int16_t y, int16_t w, uint16_t color)Adafruit_SPITFTinlinevirtual diff --git a/html/class_adafruit___s_p_i_t_f_t.html b/html/class_adafruit___s_p_i_t_f_t.html index 91b0278..de8b8bb 100644 --- a/html/class_adafruit___s_p_i_t_f_t.html +++ b/html/class_adafruit___s_p_i_t_f_t.html @@ -943,6 +943,8 @@ bool Adafruit_GFX.

+ @@ -1316,6 +1318,9 @@ bool 
+ + + - - + + - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + diff --git a/html/class_g_f_xcanvas1.html b/html/class_g_f_xcanvas1.html index 0829da7..f6ec5f3 100644 --- a/html/class_g_f_xcanvas1.html +++ b/html/class_g_f_xcanvas1.html @@ -116,6 +116,12 @@ Public Member Functions virtual void  + + + + + + diff --git a/html/class_g_f_xcanvas16-members.html b/html/class_g_f_xcanvas16-members.html index 3260e77..28d3b6b 100644 --- a/html/class_g_f_xcanvas16-members.html +++ b/html/class_g_f_xcanvas16-members.html @@ -118,27 +118,29 @@ $(function() { - - + + - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + diff --git a/html/class_g_f_xcanvas16.html b/html/class_g_f_xcanvas16.html index 1ddd273..2e392a9 100644 --- a/html/class_g_f_xcanvas16.html +++ b/html/class_g_f_xcanvas16.html @@ -120,6 +120,12 @@ void  + + + + + + diff --git a/html/class_g_f_xcanvas8-members.html b/html/class_g_f_xcanvas8-members.html index 956ba42..771d266 100644 --- a/html/class_g_f_xcanvas8-members.html +++ b/html/class_g_f_xcanvas8-members.html @@ -117,27 +117,29 @@ $(function() { - - + + - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + diff --git a/html/class_g_f_xcanvas8.html b/html/class_g_f_xcanvas8.html index 1256203..1361e1b 100644 --- a/html/class_g_f_xcanvas8.html +++ b/html/class_g_f_xcanvas8.html @@ -116,6 +116,12 @@ Public Member Functions virtual void  + + + + + + diff --git a/html/functions_func.html b/html/functions_func.html index 82c62b7..ed9a6e7 100644 --- a/html/functions_func.html +++ b/html/functions_func.html @@ -346,7 +346,8 @@ $(function() { : Adafruit_SPITFT
  • setAddrWindow() -: Adafruit_SPITFT +: Adafruit_GFX +, Adafruit_SPITFT
  • setContrast() : Adafruit_GrayOLED @@ -451,7 +452,8 @@ $(function() { : Adafruit_SPITFT
  • writeColor() -: Adafruit_SPITFT +: Adafruit_GFX +, Adafruit_SPITFT
  • writeCommand() : Adafruit_SPITFT diff --git a/html/functions_h.html b/html/functions_h.html index 4796eed..0d22ddd 100644 --- a/html/functions_h.html +++ b/html/functions_h.html @@ -61,14 +61,12 @@ $(function() {
    Here is a list of all documented class members with links to the class documentation for each member:

    - h -

      -
    • height() -: Adafruit_GFX -
    • HEIGHT : Adafruit_GFX
    • -
    • height -: GFXglyph +
    • height() +: Adafruit_GFX +, GFXglyph
    • hwspi : Adafruit_SPITFT diff --git a/html/functions_s.html b/html/functions_s.html index e50928e..d205009 100644 --- a/html/functions_s.html +++ b/html/functions_s.html @@ -68,7 +68,8 @@ $(function() { : Adafruit_SPITFT
    • setAddrWindow() -: Adafruit_SPITFT +: Adafruit_GFX +, Adafruit_SPITFT
    • setContrast() : Adafruit_GrayOLED diff --git a/html/functions_w.html b/html/functions_w.html index 08f8fd1..8ada649 100644 --- a/html/functions_w.html +++ b/html/functions_w.html @@ -93,7 +93,8 @@ $(function() { : Adafruit_SPITFT
    • writeColor() -: Adafruit_SPITFT +: Adafruit_GFX +, Adafruit_SPITFT
    • writeCommand() : Adafruit_SPITFT diff --git a/html/search/all_10.js b/html/search/all_10.js index 437f7c4..f915fc4 100644 --- a/html/search/all_10.js +++ b/html/search/all_10.js @@ -2,7 +2,7 @@ var searchData= [ ['sendcommand',['sendCommand',['../class_adafruit___s_p_i_t_f_t.html#afbc3e9e663e0bea2d45d98c90b2300d7',1,'Adafruit_SPITFT::sendCommand(uint8_t commandByte, uint8_t *dataBytes, uint8_t numDataBytes)'],['../class_adafruit___s_p_i_t_f_t.html#a5ef8b31057e71a95d0aa03209925f4bf',1,'Adafruit_SPITFT::sendCommand(uint8_t commandByte, const uint8_t *dataBytes=NULL, uint8_t numDataBytes=0)']]], ['sendcommand16',['sendCommand16',['../class_adafruit___s_p_i_t_f_t.html#aef31a2ee17d9ea6d089996a2430087ef',1,'Adafruit_SPITFT']]], - ['setaddrwindow',['setAddrWindow',['../class_adafruit___s_p_i_t_f_t.html#a1928d1a2b27cc32422624ed54c0ea932',1,'Adafruit_SPITFT']]], + ['setaddrwindow',['setAddrWindow',['../class_adafruit___g_f_x.html#aa1666ac55042bf6f4efe70c7a7f8e0c3',1,'Adafruit_GFX::setAddrWindow()'],['../class_adafruit___s_p_i_t_f_t.html#a1928d1a2b27cc32422624ed54c0ea932',1,'Adafruit_SPITFT::setAddrWindow()']]], ['setcontrast',['setContrast',['../class_adafruit___gray_o_l_e_d.html#af5b84beec33b79918c1db1ee1f458a04',1,'Adafruit_GrayOLED']]], ['setcursor',['setCursor',['../class_adafruit___g_f_x.html#aaf96a40cad0f34dd8ec73494b3866c33',1,'Adafruit_GFX']]], ['setfont',['setFont',['../class_adafruit___g_f_x.html#ab0479a2bb4e09e7c39c35e35c55d6ed1',1,'Adafruit_GFX']]], diff --git a/html/search/all_12.js b/html/search/all_12.js index 003ab0a..c5af53c 100644 --- a/html/search/all_12.js +++ b/html/search/all_12.js @@ -9,7 +9,7 @@ var searchData= ['wrap',['wrap',['../class_adafruit___g_f_x.html#a8c31e63d43f7285e47aa48c363d86ce9',1,'Adafruit_GFX']]], ['write',['write',['../class_adafruit___g_f_x.html#a8773d92cafa93d3f749fb55c535d8f2e',1,'Adafruit_GFX']]], ['write16',['write16',['../class_adafruit___s_p_i_t_f_t.html#adef142a386721ffc13b5efbd194d0e69',1,'Adafruit_SPITFT']]], - ['writecolor',['writeColor',['../class_adafruit___s_p_i_t_f_t.html#a42824e0f1475f2b3df335d31651dc75a',1,'Adafruit_SPITFT']]], + ['writecolor',['writeColor',['../class_adafruit___g_f_x.html#aa39f6217aab67f19937987349eb780f3',1,'Adafruit_GFX::writeColor()'],['../class_adafruit___s_p_i_t_f_t.html#a42824e0f1475f2b3df335d31651dc75a',1,'Adafruit_SPITFT::writeColor()']]], ['writecommand',['writeCommand',['../class_adafruit___s_p_i_t_f_t.html#a0169fcf8898413bba568a93c1617e8bb',1,'Adafruit_SPITFT']]], ['writecommand16',['writeCommand16',['../class_adafruit___s_p_i_t_f_t.html#aa327bf9bd8580fdc87018df917259c97',1,'Adafruit_SPITFT']]], ['writefasthline',['writeFastHLine',['../class_adafruit___g_f_x.html#ad85469e8be73f90932058fba1d4e5cbd',1,'Adafruit_GFX::writeFastHLine()'],['../class_adafruit___s_p_i_t_f_t.html#a06312f906256fd7e72efb21df85d2b96',1,'Adafruit_SPITFT::writeFastHLine()']]], diff --git a/html/search/all_8.js b/html/search/all_8.js index 23ffdb8..c37f448 100644 --- a/html/search/all_8.js +++ b/html/search/all_8.js @@ -1,5 +1,5 @@ var searchData= [ - ['height',['height',['../struct_g_f_xglyph.html#a24cff650b78fc295dc46e1bfa9127bb7',1,'GFXglyph::height()'],['../class_adafruit___g_f_x.html#a49da524caa19e5202ed2ed7fd5a3baea',1,'Adafruit_GFX::height(void) const'],['../class_adafruit___g_f_x.html#a2b7801fc9c405a61abe6e5916b55825b',1,'Adafruit_GFX::HEIGHT()']]], + ['height',['HEIGHT',['../class_adafruit___g_f_x.html#a2b7801fc9c405a61abe6e5916b55825b',1,'Adafruit_GFX::HEIGHT()'],['../struct_g_f_xglyph.html#a24cff650b78fc295dc46e1bfa9127bb7',1,'GFXglyph::height()'],['../class_adafruit___g_f_x.html#a49da524caa19e5202ed2ed7fd5a3baea',1,'Adafruit_GFX::height()']]], ['hwspi',['hwspi',['../class_adafruit___s_p_i_t_f_t.html#a5f2a2b125cc4b5b1d643f81c34e67cab',1,'Adafruit_SPITFT']]] ]; diff --git a/html/search/functions_10.js b/html/search/functions_10.js index ee5469b..5ea7770 100644 --- a/html/search/functions_10.js +++ b/html/search/functions_10.js @@ -3,7 +3,7 @@ var searchData= ['width',['width',['../class_adafruit___g_f_x.html#a324b5361e7198ef0e79eaf4c80bddfc7',1,'Adafruit_GFX']]], ['write',['write',['../class_adafruit___g_f_x.html#a8773d92cafa93d3f749fb55c535d8f2e',1,'Adafruit_GFX']]], ['write16',['write16',['../class_adafruit___s_p_i_t_f_t.html#adef142a386721ffc13b5efbd194d0e69',1,'Adafruit_SPITFT']]], - ['writecolor',['writeColor',['../class_adafruit___s_p_i_t_f_t.html#a42824e0f1475f2b3df335d31651dc75a',1,'Adafruit_SPITFT']]], + ['writecolor',['writeColor',['../class_adafruit___g_f_x.html#aa39f6217aab67f19937987349eb780f3',1,'Adafruit_GFX::writeColor()'],['../class_adafruit___s_p_i_t_f_t.html#a42824e0f1475f2b3df335d31651dc75a',1,'Adafruit_SPITFT::writeColor()']]], ['writecommand',['writeCommand',['../class_adafruit___s_p_i_t_f_t.html#a0169fcf8898413bba568a93c1617e8bb',1,'Adafruit_SPITFT']]], ['writecommand16',['writeCommand16',['../class_adafruit___s_p_i_t_f_t.html#aa327bf9bd8580fdc87018df917259c97',1,'Adafruit_SPITFT']]], ['writefasthline',['writeFastHLine',['../class_adafruit___g_f_x.html#ad85469e8be73f90932058fba1d4e5cbd',1,'Adafruit_GFX::writeFastHLine()'],['../class_adafruit___s_p_i_t_f_t.html#a06312f906256fd7e72efb21df85d2b96',1,'Adafruit_SPITFT::writeFastHLine()']]], diff --git a/html/search/functions_e.js b/html/search/functions_e.js index a2cd2f7..e083d0f 100644 --- a/html/search/functions_e.js +++ b/html/search/functions_e.js @@ -2,7 +2,7 @@ var searchData= [ ['sendcommand',['sendCommand',['../class_adafruit___s_p_i_t_f_t.html#afbc3e9e663e0bea2d45d98c90b2300d7',1,'Adafruit_SPITFT::sendCommand(uint8_t commandByte, uint8_t *dataBytes, uint8_t numDataBytes)'],['../class_adafruit___s_p_i_t_f_t.html#a5ef8b31057e71a95d0aa03209925f4bf',1,'Adafruit_SPITFT::sendCommand(uint8_t commandByte, const uint8_t *dataBytes=NULL, uint8_t numDataBytes=0)']]], ['sendcommand16',['sendCommand16',['../class_adafruit___s_p_i_t_f_t.html#aef31a2ee17d9ea6d089996a2430087ef',1,'Adafruit_SPITFT']]], - ['setaddrwindow',['setAddrWindow',['../class_adafruit___s_p_i_t_f_t.html#a1928d1a2b27cc32422624ed54c0ea932',1,'Adafruit_SPITFT']]], + ['setaddrwindow',['setAddrWindow',['../class_adafruit___g_f_x.html#aa1666ac55042bf6f4efe70c7a7f8e0c3',1,'Adafruit_GFX::setAddrWindow()'],['../class_adafruit___s_p_i_t_f_t.html#a1928d1a2b27cc32422624ed54c0ea932',1,'Adafruit_SPITFT::setAddrWindow()']]], ['setcontrast',['setContrast',['../class_adafruit___gray_o_l_e_d.html#af5b84beec33b79918c1db1ee1f458a04',1,'Adafruit_GrayOLED']]], ['setcursor',['setCursor',['../class_adafruit___g_f_x.html#aaf96a40cad0f34dd8ec73494b3866c33',1,'Adafruit_GFX']]], ['setfont',['setFont',['../class_adafruit___g_f_x.html#ab0479a2bb4e09e7c39c35e35c55d6ed1',1,'Adafruit_GFX']]], diff --git a/html/search/variables_6.js b/html/search/variables_6.js index 4fcdd0c..e5c41be 100644 --- a/html/search/variables_6.js +++ b/html/search/variables_6.js @@ -1,5 +1,5 @@ var searchData= [ - ['height',['height',['../struct_g_f_xglyph.html#a24cff650b78fc295dc46e1bfa9127bb7',1,'GFXglyph::height()'],['../class_adafruit___g_f_x.html#a2b7801fc9c405a61abe6e5916b55825b',1,'Adafruit_GFX::HEIGHT()']]], + ['height',['HEIGHT',['../class_adafruit___g_f_x.html#a2b7801fc9c405a61abe6e5916b55825b',1,'Adafruit_GFX::HEIGHT()'],['../struct_g_f_xglyph.html#a24cff650b78fc295dc46e1bfa9127bb7',1,'GFXglyph::height()']]], ['hwspi',['hwspi',['../class_adafruit___s_p_i_t_f_t.html#a5f2a2b125cc4b5b1d643f81c34e67cab',1,'Adafruit_SPITFT']]] ];
  • @@ -1335,6 +1340,11 @@ bool  + +
    void Adafruit_SPITFT::writeColor +virtual

    Issue a series of pixels, all the same color. Not self- contained; should follow startWrite() and setAddrWindow() calls.

    @@ -1346,6 +1356,8 @@ bool 
    Adafruit_GFX.

    + diff --git a/html/class_g_f_xcanvas1-members.html b/html/class_g_f_xcanvas1-members.html index 39a4307..26ca0ec 100644 --- a/html/class_g_f_xcanvas1-members.html +++ b/html/class_g_f_xcanvas1-members.html @@ -117,27 +117,29 @@ $(function() {
    getTextBounds(const String &str, int16_t x, int16_t y, int16_t *x1, int16_t *y1, uint16_t *w, uint16_t *h)Adafruit_GFX
    GFXcanvas1(uint16_t w, uint16_t h)GFXcanvas1
    gfxFontAdafruit_GFXprotected
    height(void) constAdafruit_GFXinline
    HEIGHTAdafruit_GFXprotected
    HEIGHTAdafruit_GFXprotected
    height(void) constAdafruit_GFXinline
    invertDisplay(bool i)Adafruit_GFXvirtual
    rotationAdafruit_GFXprotected
    setCursor(int16_t x, int16_t y)Adafruit_GFXinline
    setFont(const GFXfont *f=NULL)Adafruit_GFX
    setRotation(uint8_t r)Adafruit_GFXvirtual
    setTextColor(uint16_t c)Adafruit_GFXinline
    setTextColor(uint16_t c, uint16_t bg)Adafruit_GFXinline
    setTextSize(uint8_t s)Adafruit_GFX
    setTextSize(uint8_t sx, uint8_t sy)Adafruit_GFX
    setTextWrap(bool w)Adafruit_GFXinline
    startWrite(void)Adafruit_GFXvirtual
    textbgcolorAdafruit_GFXprotected
    textcolorAdafruit_GFXprotected
    textsize_xAdafruit_GFXprotected
    textsize_yAdafruit_GFXprotected
    width(void) constAdafruit_GFXinline
    WIDTHAdafruit_GFXprotected
    wrapAdafruit_GFXprotected
    write(uint8_t)Adafruit_GFXvirtual
    setAddrWindow(uint16_t x, uint16_t y, uint16_t w, uint16_t h)Adafruit_GFXvirtual
    setCursor(int16_t x, int16_t y)Adafruit_GFXinline
    setFont(const GFXfont *f=NULL)Adafruit_GFX
    setRotation(uint8_t r)Adafruit_GFXvirtual
    setTextColor(uint16_t c)Adafruit_GFXinline
    setTextColor(uint16_t c, uint16_t bg)Adafruit_GFXinline
    setTextSize(uint8_t s)Adafruit_GFX
    setTextSize(uint8_t sx, uint8_t sy)Adafruit_GFX
    setTextWrap(bool w)Adafruit_GFXinline
    startWrite(void)Adafruit_GFXvirtual
    textbgcolorAdafruit_GFXprotected
    textcolorAdafruit_GFXprotected
    textsize_xAdafruit_GFXprotected
    textsize_yAdafruit_GFXprotected
    width(void) constAdafruit_GFXinline
    WIDTHAdafruit_GFXprotected
    wrapAdafruit_GFXprotected
    write(uint8_t)Adafruit_GFXvirtual
    writeColor(uint16_t color, uint32_t len)Adafruit_GFXvirtual
    writeFastHLine(int16_t x, int16_t y, int16_t w, uint16_t color)Adafruit_GFXvirtual
    writeFastVLine(int16_t x, int16_t y, int16_t h, uint16_t color)Adafruit_GFXvirtual
    writeFillRect(int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color)Adafruit_GFXvirtual
    startWrite (void)
     Start a display-writing routine, overwrite in subclasses.
     
    virtual void setAddrWindow (uint16_t x, uint16_t y, uint16_t w, uint16_t h)
     set the address window (memory area), overwrite in subclasses if needed More...
     
    virtual void writeColor (uint16_t color, uint32_t len)
     write len pixels of the given color, overwrite in subclasses if needed More...
     
    virtual void writePixel (int16_t x, int16_t y, uint16_t color)
     Write a pixel, overwrite in subclasses if startWrite is defined! More...
     
    getTextBounds(const String &str, int16_t x, int16_t y, int16_t *x1, int16_t *y1, uint16_t *w, uint16_t *h)Adafruit_GFX
    GFXcanvas16(uint16_t w, uint16_t h)GFXcanvas16
    gfxFontAdafruit_GFXprotected
    HEIGHTAdafruit_GFXprotected
    height(void) constAdafruit_GFXinline
    height(void) constAdafruit_GFXinline
    HEIGHTAdafruit_GFXprotected
    invertDisplay(bool i)Adafruit_GFXvirtual
    rotationAdafruit_GFXprotected
    setCursor(int16_t x, int16_t y)Adafruit_GFXinline
    setFont(const GFXfont *f=NULL)Adafruit_GFX
    setRotation(uint8_t r)Adafruit_GFXvirtual
    setTextColor(uint16_t c)Adafruit_GFXinline
    setTextColor(uint16_t c, uint16_t bg)Adafruit_GFXinline
    setTextSize(uint8_t s)Adafruit_GFX
    setTextSize(uint8_t sx, uint8_t sy)Adafruit_GFX
    setTextWrap(bool w)Adafruit_GFXinline
    startWrite(void)Adafruit_GFXvirtual
    textbgcolorAdafruit_GFXprotected
    textcolorAdafruit_GFXprotected
    textsize_xAdafruit_GFXprotected
    textsize_yAdafruit_GFXprotected
    width(void) constAdafruit_GFXinline
    WIDTHAdafruit_GFXprotected
    wrapAdafruit_GFXprotected
    write(uint8_t)Adafruit_GFXvirtual
    setAddrWindow(uint16_t x, uint16_t y, uint16_t w, uint16_t h)Adafruit_GFXvirtual
    setCursor(int16_t x, int16_t y)Adafruit_GFXinline
    setFont(const GFXfont *f=NULL)Adafruit_GFX
    setRotation(uint8_t r)Adafruit_GFXvirtual
    setTextColor(uint16_t c)Adafruit_GFXinline
    setTextColor(uint16_t c, uint16_t bg)Adafruit_GFXinline
    setTextSize(uint8_t s)Adafruit_GFX
    setTextSize(uint8_t sx, uint8_t sy)Adafruit_GFX
    setTextWrap(bool w)Adafruit_GFXinline
    startWrite(void)Adafruit_GFXvirtual
    textbgcolorAdafruit_GFXprotected
    textcolorAdafruit_GFXprotected
    textsize_xAdafruit_GFXprotected
    textsize_yAdafruit_GFXprotected
    width(void) constAdafruit_GFXinline
    WIDTHAdafruit_GFXprotected
    wrapAdafruit_GFXprotected
    write(uint8_t)Adafruit_GFXvirtual
    writeColor(uint16_t color, uint32_t len)Adafruit_GFXvirtual
    writeFastHLine(int16_t x, int16_t y, int16_t w, uint16_t color)Adafruit_GFXvirtual
    writeFastVLine(int16_t x, int16_t y, int16_t h, uint16_t color)Adafruit_GFXvirtual
    writeFillRect(int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color)Adafruit_GFXvirtual
    startWrite (void)
     Start a display-writing routine, overwrite in subclasses.
     
    virtual void setAddrWindow (uint16_t x, uint16_t y, uint16_t w, uint16_t h)
     set the address window (memory area), overwrite in subclasses if needed More...
     
    virtual void writeColor (uint16_t color, uint32_t len)
     write len pixels of the given color, overwrite in subclasses if needed More...
     
    virtual void writePixel (int16_t x, int16_t y, uint16_t color)
     Write a pixel, overwrite in subclasses if startWrite is defined! More...
     
    getTextBounds(const String &str, int16_t x, int16_t y, int16_t *x1, int16_t *y1, uint16_t *w, uint16_t *h)Adafruit_GFX
    GFXcanvas8(uint16_t w, uint16_t h)GFXcanvas8
    gfxFontAdafruit_GFXprotected
    height(void) constAdafruit_GFXinline
    HEIGHTAdafruit_GFXprotected
    HEIGHTAdafruit_GFXprotected
    height(void) constAdafruit_GFXinline
    invertDisplay(bool i)Adafruit_GFXvirtual
    rotationAdafruit_GFXprotected
    setCursor(int16_t x, int16_t y)Adafruit_GFXinline
    setFont(const GFXfont *f=NULL)Adafruit_GFX
    setRotation(uint8_t r)Adafruit_GFXvirtual
    setTextColor(uint16_t c)Adafruit_GFXinline
    setTextColor(uint16_t c, uint16_t bg)Adafruit_GFXinline
    setTextSize(uint8_t s)Adafruit_GFX
    setTextSize(uint8_t sx, uint8_t sy)Adafruit_GFX
    setTextWrap(bool w)Adafruit_GFXinline
    startWrite(void)Adafruit_GFXvirtual
    textbgcolorAdafruit_GFXprotected
    textcolorAdafruit_GFXprotected
    textsize_xAdafruit_GFXprotected
    textsize_yAdafruit_GFXprotected
    width(void) constAdafruit_GFXinline
    WIDTHAdafruit_GFXprotected
    wrapAdafruit_GFXprotected
    write(uint8_t)Adafruit_GFXvirtual
    setAddrWindow(uint16_t x, uint16_t y, uint16_t w, uint16_t h)Adafruit_GFXvirtual
    setCursor(int16_t x, int16_t y)Adafruit_GFXinline
    setFont(const GFXfont *f=NULL)Adafruit_GFX
    setRotation(uint8_t r)Adafruit_GFXvirtual
    setTextColor(uint16_t c)Adafruit_GFXinline
    setTextColor(uint16_t c, uint16_t bg)Adafruit_GFXinline
    setTextSize(uint8_t s)Adafruit_GFX
    setTextSize(uint8_t sx, uint8_t sy)Adafruit_GFX
    setTextWrap(bool w)Adafruit_GFXinline
    startWrite(void)Adafruit_GFXvirtual
    textbgcolorAdafruit_GFXprotected
    textcolorAdafruit_GFXprotected
    textsize_xAdafruit_GFXprotected
    textsize_yAdafruit_GFXprotected
    width(void) constAdafruit_GFXinline
    WIDTHAdafruit_GFXprotected
    wrapAdafruit_GFXprotected
    write(uint8_t)Adafruit_GFXvirtual
    writeColor(uint16_t color, uint32_t len)Adafruit_GFXvirtual
    writeFastHLine(int16_t x, int16_t y, int16_t w, uint16_t color)Adafruit_GFXvirtual
    writeFastVLine(int16_t x, int16_t y, int16_t h, uint16_t color)Adafruit_GFXvirtual
    writeFillRect(int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color)Adafruit_GFXvirtual
    startWrite (void)
     Start a display-writing routine, overwrite in subclasses.
     
    virtual void setAddrWindow (uint16_t x, uint16_t y, uint16_t w, uint16_t h)
     set the address window (memory area), overwrite in subclasses if needed More...
     
    virtual void writeColor (uint16_t color, uint32_t len)
     write len pixels of the given color, overwrite in subclasses if needed More...
     
    virtual void writePixel (int16_t x, int16_t y, uint16_t color)
     Write a pixel, overwrite in subclasses if startWrite is defined! More...