Base class from which Renderers are derived.


Public Member Functions

  • ~Renderer ()=default
  • void
    setVisitor (const std::function< bool(const Node &, svg::Style *)> &visitor)
  • void
    pushGroup (const Group &, float)
  • void
    popGroup ()
  • void
    drawPath (const svg::Path &)
  • void
    drawPolyline (const svg::Polyline &)
  • void
    drawPolygon (const svg::Polygon &)
  • void
    drawLine (const svg::Line &)
  • void
    drawRect (const svg::Rect &)
  • void
    drawCircle (const svg::Circle &)
  • void
    drawEllipse (const svg::Ellipse &)
  • void
    drawImage (const svg::Image &)
  • void
    drawTextSpan (const svg::TextSpan &)
  • void
    pushMatrix (const mat3 &)
  • void
    popMatrix ()
  • void
    pushStyle (const svg::Style &)
  • void
    popStyle ()
  • void
    pushFill (const class Paint &)
  • void
    popFill ()
  • void
    pushStroke (const class Paint &)
  • void
    popStroke ()
  • void
    pushFillOpacity (float)
  • void
    popFillOpacity ()
  • void
    pushStrokeOpacity (float)
  • void
    popStrokeOpacity ()
  • void
    pushStrokeWidth (float)
  • void
    popStrokeWidth ()
  • void
    pushFillRule (FillRule)
  • void
    popFillRule ()
  • void
    pushLineCap (LineCap)
  • void
    popLineCap ()
  • void
    pushLineJoin (LineJoin)
  • void
    popLineJoin ()
  • void
    pushTextPen (const vec2 &)
  • void
    popTextPen ()
  • void
    pushTextRotation (float)
  • void
    popTextRotation ()
  • bool
    visit (const Node &node, svg::Style *style) const

Protected Attributes

  • std::shared_ptr< std::function< bool(const Node &, svg::Style *)> >
    mVisitor

Friends