Skip to main content

split_h_flex

Function split_h_flex 

Source
pub fn split_h_flex(
    area: Rect,
    constraints: &[Constraint],
    flex: Flex,
) -> Vec<Rect> 
Expand description

Split area into columns left-to-right, like split_h, but with explicit control over how leftover space is placed via Flex.

Never panics, for the same reason as split_h: every offset is computed with saturating_add/saturating_sub.