|
| | LinePrinter ()=default |
| |
| | LinePrinter (IFont< RGB_T > &font, ISurface< RGB_T > &target) |
| | Creates a line printer for the given font and target.
|
| |
| void | setColor (RGB_T color) |
| |
| void | setBackgroundColor (RGB_T color) |
| |
| void | setFont (IFont< RGB_T > &font) |
| | Sets the Font implementation.
|
| |
| void | setTarget (ISurface< RGB_T > &target) |
| | Sets the TinyGPU target.
|
| |
| void | setTopBorder (size_t border) |
| | Sets the top border in pixels.
|
| |
| void | setLeftBorder (size_t border) |
| | Sets the left border in pixels.
|
| |
| void | setRightBorder (size_t border) |
| | Sets the right border in pixels.
|
| |
| void | setButtomBorder (size_t border) |
| | Sets the bottom border in pixels.
|
| |
| void | setBorders (size_t border) |
| | Sets all borders to the same value.
|
| |
| void | setActualLine (size_t line) |
| | Sets the current line index.
|
| |
| void | setScale (uint8_t scale) |
| | Sets the text scale factor.
|
| |
| void | setSpacing (uint8_t spacing) |
| | Sets the spacing between glyphs.
|
| |
| size_t | print (const char *text) |
| | Prints text with word wrapping.
|
| |
| size_t | println (const char *text) |
| | Prints text and advances to the next line.
|
| |
| size_t | println () |
| | Advances to the next line.
|
| |
template<typename RGB_T = RGB565>
class tinygpu::LinePrinter< RGB_T >
Helper for printing wrapped lines of text onto a TinyGPU target.
The printer tracks a cursor position, applies configurable borders, and wraps words to the next line when text would exceed the drawable width.