Skip to main content

wrap

Function wrap 

pub fn wrap(
    entries: &[LegendEntry],
    left: f64,
    right: f64,
    top: f64,
    theme: &Theme,
) -> Vec<Rect>
Expand description

Place measured entries left to right from top, wrapping before right, a section step apart. An entry wider than the space is clamped to it (its label elides when painted).