RootNode
The top-level virtual-DOM container produced by TuiApp.view.
RootNode declares the logical frame size and a list of children plus an optional focused input. The actual terminal width/height is read from the backend by the renderer; the width/height here are the app's own idea of the drawing surface and are used by AnsiRenderer.buildFrame to size the cell matrix.
Value parameters
- children
-
Static nodes to draw, in document order.
- height
-
Frame height in cells.
- input
-
Optional focused InputNode rendered last, with cursor placement.
- layout
-
Optional Layout resolved by the renderer at render time using the frame's
(width, height)as the size budget. Distinct fromchildren(positioned-node authoring): apps usinglayoutget reflow-on-resize andLayout.Fillsemantics for free. Bothchildrenandlayoutmay be present —childrenpaints first, then the resolved layout. - overlays
-
Optional stack of Overlays composited on top of the base view, in document order (bottom-to-top z-order). When any overlay sets
inputCapture = InputCapture.Modal, the base view'sinputis suppressed and the topmost modal overlay'sinput(if any) takes over the hardware cursor. - width
-
Frame width in cells.
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any