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. | |
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.