주요 내용으로 건너뛰기

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

voiddrawColorType(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 voiddraw(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.
voidsetColor(colortype fg)
Sets the foreground color of the debug string.
voidsetPosition(uint16_t x, uint16_t y, uint16_t w, uint16_t h)
Sets the position onscreen where the debug string will be displayed.
voidsetScale(uint8_t scale)
Sets the font scale of the debug string.
voidsetString(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_tgetGlyph(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

colortypedebugForegroundColor
Font color to use when displaying the debug string.
RectdebugRegion
Region on screen where the debug message is displayed.
uint8_tdebugScale
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_tdebugColorTypeconst
)const

Draws the DebugPrinter::debugString on top of the framebuffer content.

Parameters:
rectThe rect to draw inside.
debugColorTypeThe specific 8bit color type to use.