#include <tcUnicodeHelper.h>
Public Member Functions | |
virtual void | drawPixel (uint16_t x, uint16_t y, uint32_t color)=0 |
virtual void | setCursor (const Coord &where)=0 |
virtual Coord | getCursor ()=0 |
virtual Coord | getDimensions ()=0 |
A plot pipeline takes care of actually drawing the font glyphs in terms of pixels and cursor positions, it allows for independent implementation on many different graphics libraries. There are ready made implementation for U8G2, Adafruit_GFX, tcMenu Drawable and TFT_eSPI. Should you wish to create one for another display, follow one of the example device includes such as tcUnicodeU8G2.h
.
|
pure virtual |
Draw a pixel onto the device at the given coordinates
x | the x position increases left to right |
y | the y position increases top to bottom |
color | the color in whatever format the device uses |
Implemented in tcgfx::TftSpiTextPlotPipeline, tcgfx::AdafruitTextPlotPipeline, and tcgfx::U8g2TextPlotPipeline.
|
pure virtual |
Implemented in tcgfx::U8g2TextPlotPipeline, tcgfx::TftSpiTextPlotPipeline, and tcgfx::AdafruitTextPlotPipeline.
|
pure virtual |
Implemented in tcgfx::U8g2TextPlotPipeline, tcgfx::TftSpiTextPlotPipeline, and tcgfx::AdafruitTextPlotPipeline.
|
pure virtual |
Set the position that the next text will be printed at, handling of offscreen is minimal, and just stops rendering
where | the coordinate to draw at |
Implemented in tcgfx::U8g2TextPlotPipeline, tcgfx::TftSpiTextPlotPipeline, and tcgfx::AdafruitTextPlotPipeline.