Horizon
Loading...
Searching...
No Matches
horizon::CanvasTextRenderer Class Reference
Inheritance diagram for horizon::CanvasTextRenderer:
horizon::TextRenderer

Public Member Functions

 CanvasTextRenderer (class Canvas &canvas)
std::pair< Coordf, Coordf > draw (const Coordf &p, float size, const std::string &rtext, int angle, TextOrigin origin, ColorP color, int layer, const Options &opts) override
Public Member Functions inherited from horizon::TextRenderer
std::pair< Coordf, Coordf > render (const Text &text, ColorP co, Placement transform, bool rev)

Protected Member Functions

void draw_line (const Coordf &a, const Coordf &b, ColorP color, int layer, uint64_t width) override

Member Function Documentation

◆ draw()

std::pair< Coordf, Coordf > horizon::CanvasTextRenderer::draw ( const Coordf & p,
float size,
const std::string & rtext,
int angle,
TextOrigin origin,
ColorP color,
int layer,
const Options & opts )
overridevirtual

Reimplemented from horizon::TextRenderer.

◆ draw_line()

void horizon::CanvasTextRenderer::draw_line ( const Coordf & a,
const Coordf & b,
ColorP color,
int layer,
uint64_t width )
overrideprotectedvirtual

Reimplemented from horizon::TextRenderer.


The documentation for this class was generated from the following files: