rat_widget::layout

Function layout_edit

Source
pub fn layout_edit(
    area: Rect,
    constraints: &[EditConstraint<'_>],
) -> StructuredLayout
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 StructuredLayout with pairs of [label area, widget area] for each index.