pub fn layout_edit(
area: Size,
constraints: &[EditConstraint],
spacing: u16,
flex: Flex,
) -> GenericLayout<usize>Expand description
Layout for an edit mask with lots of label+widget pairs.
This neatly aligns labels and widgets in one column. Use the edit constraints to define the layout.
This returns a GenericLayout with indexed widgets.
If the space runs out during layout, everything gets stuffed in the last row, regardless.
For more features see LayoutForm.