ConsoleForge 0.3.0
Elm-architecture TUI framework for .NET 8
Loading...
Searching...
No Matches
ConsoleForge.Layout.LayoutEngine Class Reference

Two-pass layout algorithm that resolves widget size constraints into absolute terminal regions. More...

Static Public Member Functions

static ResolvedLayout Resolve (IWidget root, int terminalWidth, int terminalHeight)
 Resolve root into a ResolvedLayout filling the given terminal dimensions.

Detailed Description

Two-pass layout algorithm that resolves widget size constraints into absolute terminal regions.

Pass 1: assign fixed sizes, compute free space. Pass 2: distribute free space proportionally to flex weights.


The documentation for this class was generated from the following file:
  • src/ConsoleForge/Layout/LayoutEngine.cs