Module layout

Module layout 

Source
Expand description

Layout calculations apart from ratatui/Layout.

Structs§

GenericLayout
Stores layout data resulting from some layout algorithm.
LayoutForm
Create layouts for input widgets.
LayoutOuter
This lets you define the outer bounds of a target area.

Enums§

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

Functions§

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