|
Peritoneal Dialysis Capstone
Controlling catheter for peritoneal dialysis
|
A low-level interface to a TFT display. More...
#include <TFTDriver.h>

Public Member Functions | |
| virtual void | initialize ()=0 |
| Initializes the display. | |
| virtual unsigned | getScreenWidth () const =0 |
| Returns the width, in pixels, of the screen. | |
| virtual unsigned | getScreenHeight () const =0 |
| Returns the height, in pixels, of the screen. | |
| virtual unsigned | getTextWidth () const =0 |
| Returns the width, in pixels, of one character. | |
| virtual unsigned | getTextHeight () const =0 |
| Returns the height, in pixels, of one character. | |
| virtual void | clearScreen (TFTColor color)=0 |
| Assigns one color to all pixels on the screen, clearing any previously drawn text. | |
| virtual void | drawText (TFTPoint topLeft, TFTColor textColor, TFTColor bgColor, const char *string)=0 |
| Draws monospace text. | |
A low-level interface to a TFT display.
|
pure virtual |
Assigns one color to all pixels on the screen, clearing any previously drawn text.
| color | The color to assign. |
Implemented in AdafruitTFTDriver.
|
pure virtual |
Draws monospace text.
If the text goes off the right edge of the screen, it is wrapped to the next line.
| topLeft | The top-left position of the first character. |
| textColor | The text color. |
| bgColor | The background color. |
| string | The NUL-terminated ASCII string to draw. |
Implemented in AdafruitTFTDriver.
|
nodiscardpure virtual |
Returns the height, in pixels, of the screen.
Implemented in AdafruitTFTDriver.
|
nodiscardpure virtual |
Returns the width, in pixels, of the screen.
Implemented in AdafruitTFTDriver.
|
nodiscardpure virtual |
Returns the height, in pixels, of one character.
Implemented in AdafruitTFTDriver.
|
nodiscardpure virtual |
Returns the width, in pixels, of one character.
Implemented in AdafruitTFTDriver.
|
pure virtual |
Initializes the display.
The display must be initialized before any other functions are called.
Implemented in AdafruitTFTDriver.