Function rsvg::drawing_ctx::draw_tree

source ·
pub fn draw_tree(
    session: Session,
    mode: DrawingMode,
    cr: &Context,
    viewport_rect: Rect,
    user_language: &UserLanguage,
    dpi: Dpi,
    svg_nesting: SvgNesting,
    measuring: bool,
    testing: bool,
    acquired_nodes: &mut AcquiredNodes<'_>
) -> Result<BoundingBox, InternalRenderingError>
Expand description

The toplevel drawing routine.

This creates a DrawingCtx internally and starts drawing at the specified node.