LCD8DebugPrinterBase
The class LCD8DebugPrinterBase defines the abstract base class used for printing debug messages on top of a specific 8bit framebuffer, with a specifc color type.
See: LCD8ABGR2222DebugPrinter, LCD8ARGB2222DebugPrinter, LCD8BGRA2222DebugPrinter, LCD8RGBA2222DebugPrinter
Note: The DebugPrinter interface is implemented in each specific LCD8 debug printer.
Inherits from: DebugPrinter
Inherited by: LCD8ABGR2222DebugPrinter, LCD8ARGB2222DebugPrinter, LCD8BGRA2222DebugPrinter, LCD8RGBA2222DebugPrinter
Protected Functions
| void | drawColorType(const Rect & rect, const uint8_t debugColorType) const |
| Draws the DebugPrinter::debugString on top of the framebuffer content. | |
Additional inherited members
Public Functions inherited from DebugPrinter
| DebugPrinter() | |
| Initializes a new instance of the DebugPrinter class. | |
| virtual void | draw(const Rect & rect) const =0 |
| Draws the debug string on top of the framebuffer content. | |
| const Rect & | getRegion() const |
| Returns the region where the debug string is displayed. | |
| void | setColor(colortype fg) |
| Sets the foreground color of the debug string. | |
| void | setPosition(uint16_t x, uint16_t y, uint16_t w, uint16_t h) |
| Sets the position onscreen where the debug string will be displayed. | |
| void | setScale(uint8_t scale) |
| Sets the font scale of the debug string. | |
| void | setString(const char * string) |
| Sets the debug string to be displayed on top of the framebuffer. | |
| virtual | ~DebugPrinter() |
| Finalizes an instance of the DebugPrinter class. | |
Protected Functions inherited from DebugPrinter
| uint16_t | getGlyph(uint8_t c) const |
| Gets a glyph (15 bits) arranged with 3 bits wide, 5 bits high in a single uint16_t value. | |
Protected Attributes inherited from DebugPrinter
| colortype | debugForegroundColor |
| Font color to use when displaying the debug string. | |
| Rect | debugRegion |
| Region on screen where the debug message is displayed. | |
| uint8_t | debugScale |
| Font scaling factor to use when displaying the debug string. | |
| const char * | debugString |
| Debug string to be displayed on screen. | |
Protected Functions Documentation
drawColorType
| void drawColorType | ( | const Rect & | rect , | const | |
| const uint8_t | debugColorType | const | |||
| ) | const |
Draws the DebugPrinter::debugString on top of the framebuffer content.
Parameters:
| rect | The rect to draw inside. |
| debugColorType | The specific 8bit color type to use. |