Immutable descriptor for a single rendered frame. More...
Static Public Member Functions | |
| static ViewDescriptor | From (IWidget root, RenderContext? existingCtx=null, int? width=null, int? height=null, Theme? theme=null, ColorProfile colorProfile=ColorProfile.TrueColor) |
| Convenience factory: render an IWidget into a ViewDescriptor at the given terminal dimensions. | |
Properties | |
| required string | Content [get] |
| Pre-rendered ANSI string for the full terminal frame. | |
| CursorDescriptor | Cursor [get] |
| Cursor state for this frame. | |
| IWidget? | RootWidget [get] |
| The root widget that was rendered. | |
| string? | Title [get] |
| Optional terminal window title. Null = no change. | |
Immutable descriptor for a single rendered frame.
Produced by IModel.View() and diffed by the renderer.
|
static |
Convenience factory: render an IWidget into a ViewDescriptor at the given terminal dimensions.
| root | Root widget to render. |
| existingCtx | Optional persistent RenderContext for double-buffered diff rendering. If provided, RenderContext.Reset is called to reuse it for this frame. If null, a fresh context is created (stateless, full redraw). |
| width | Terminal width. Defaults to Console.WindowWidth. |
| height | Terminal height. Defaults to Console.WindowHeight. |
| theme | Theme. Defaults to Theme.Default. |
| colorProfile | Color profile for ANSI output. |
|
get |
The root widget that was rendered.
Used by the framework for focus traversal via FocusManager.