Expand description
Layout solver infrastructure.
Ports Python Textual’s layout pipeline:
- 1D space allocation (
layout_resolve_1d) - Vertical stacking (
layout_vertical) - Horizontal stacking (
layout_horizontal) - Grid layout (
layout_grid) - Dock positioning (
arrange_dock) - Top-level dispatch (
resolve_layout)
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.