Skip to main content

draw_layout

Function draw_layout 

pub fn draw_layout(
    scene: &mut Scene,
    transform: Affine,
    text_renderer: &mut TextRenderer,
    layout: &Layout,
    origin: Point,
    color: AlphaColor<Srgb>,
)
Expand description

Paint an immutable mathematical layout at origin in scene coordinates. Carets, selections, and clipping belong to the consuming editor or reader.