Skip to main content

split_rects_weighted

Function split_rects_weighted 

Source
pub fn split_rects_weighted(
    area: LayoutRect,
    orientation: Orientation,
    weights: &[u16],
    child_count: usize,
) -> Vec<LayoutRect>
Expand description

Weighted split of a rect into child_count rects using integer weights.