Skip to main content

Module layout

Module layout 

Source
Expand description

Layout calculations apart from ratatui/Layout.

Structs§

GenericLayout
Stores labels and areas for a calculated layout, a widget-key is used to access the stored layout.
LayoutForm
Create layouts for input widgets.
LayoutOuter
This lets you define the outer bounds of a target area.

Enums§

DialogItem
Identifiers for the calculated layout.
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.