calculate_layout

Function calculate_layout 

Source
pub fn calculate_layout(
    total_space: impl Into<Vec2>,
    rows: Vec<(Constraint, Vec<Constraint>)>,
) -> Result<Vec<Vec<Rect>>, LayoutError>
Expand description

Calculates the layout of a grid, resolving constraints for rows and columns.