Module layout

Source
Expand description

Layout calculations apart from ratatui/Layout.

Structs§

GenericLayout
Stores layout data resulting from some layout algorithm.
LayoutForm
Create a layout with a single column of label+widget.

Enums§

DialogItem
EditConstraint
Constraint data for layout_edit
FormLabel
Label constraints.
FormWidget
Widget constraints.

Functions§

layout_dialog
Calculates a layout for a dialog with buttons.
layout_edit
Layout for an edit mask with lots of label+widget pairs.
layout_grid
Calculates a full grid of rects from the horizontal and vertical components.
layout_middle
Calculate the middle Rect inside a given area.