|
| virtual | ~foreign_object_painter ()=default |
| virtual void | fill_rect (const vg::box &box_, const stb::color &color_)=0 |
| virtual void | fill_text (std::u32string_view text, const foreign_object_font &font_, float x, float y, const stb::color &color_, const text_squeeze &squeeze={})=0 |
| | x, y: the left end of the baseline.
|
| virtual void | draw_image (const stb::image &image, const vg::box &dest)=0 |
| | Straight (not premultiplied) RGBA, stretched to dest. For renderers that rasterize.
|
| virtual foreign_object_font_metrics | metrics (const foreign_object_font &font_) const =0 |
| virtual float | measure_text (std::u32string_view text, const foreign_object_font &font_) const =0 |
What a renderer may draw with; implemented by the document over its canvas, in the foreignObject's coordinate system (user units, y down).
Definition at line 82 of file foreign_object.h.