Skip to main content

layout_wrapped

Function layout_wrapped 

pub fn layout_wrapped(
    row: &Vec<Node>,
    tr: &mut TextRenderer,
    base_size: f32,
    max_width: f64,
) -> Layout
Expand description

Lay out an expression no wider than max_width where it can be: a line that would run over breaks before a top-level relation or binary operator, and the continuation lines are indented by one em. Gaps keep their row indices, so a caret still lands where it did.