Module rsvg::drawing_ctx

source ·
Expand description

The main context structure which drives the drawing process.


  • Opaque font options for a DrawingCtx.
  • Extents for a path in its current coordinate system.
  • PathHelper 🔒
    Set path on the cairo context, or clear it. This helper object keeps track whether the path has been set already, so that it isn’t recalculated every so often.
  • Values that stay constant during rendering with a DrawingCtx.
  • Holds the size of the current viewport in the user’s coordinate system.


  • Whether an SVG document is being rendered standalone or referenced from an <image> element.