Skip to main content

compute_flex

Function compute_flex 

Source
pub fn compute_flex(
    container_style: &Style,
    container_inner: Size<f32>,
    available_space: Size<AvailableSpace>,
    children: &[(LayoutNodeId, Style, Size<f32>)],
    content_origin: Point<f32>,
) -> GuiResult<Vec<(LayoutNodeId, LayoutRect)>>
Expand description

Computes flex layout for a container and its in-flow children, automatically handling single-line or multi-line wrapping according to container_style.flex_wrap.