Skip to main content

layout

Function layout 

Source
pub fn layout(
    root: &Node,
    avail_w: f32,
    avail_h: f32,
    measure: &mut Measure<'_>,
) -> Layout
Expand description

Lay out root into an avail_w x avail_h viewport, returning paint items and hit regions. Text leaves are sized via measure.