Skip to main content

Module layout

Module layout 

Source
Expand description

Layout solver infrastructure.

Ports Python Textual’s layout pipeline:

Structs§

Edge
Edge descriptor for the 1D resolver.
Region
A positioned rectangle in terminal cells (x, y, width, height form).

Functions§

arrange_dock
Position docked children, carving space from the available region.
inspect_node_rects
Return the layout and content rects for a tree node.
layout_grid
Lay out children in a 2D grid.
layout_horizontal
layout_resolve_1d
Core 1D space allocation algorithm.
layout_vertical
resolve_layout
Resolve layout for a subtree rooted at node.