[go: up one dir, main page]

Module layout

Source
Expand description

Provides types and traits for working with layout and positioning in the terminal.

Structs§

Columns
An iterator over columns within a Rect.
Layout
A layout is a set of constraints that can be applied to a given area to split it into smaller ones.
Margin
Offset
Amounts by which to move a Rect.
Position
Position in the terminal
Positions
An iterator over positions within a Rect.
Rect
A Rectangular area.
Rows
An iterator over rows within a Rect.
Size
A simple size struct

Enums§

Constraint
A constraint that defines the size of a layout element.
Direction
Flex
Defines the options for layout flex justify content in a container.
HorizontalAlignment
A type representing horizontal alignment.
Spacing
Represents the spacing between segments in a layout.
VerticalAlignment
A type representing vertical alignment.

Type Aliases§

Alignment
A type alias for HorizontalAlignment.