Class
AppBinding
ConsoleMonster.Interactive
A display widget rebuilt from state on the application's input thread, then swapped through the live dispatcher.
Inheritance
- object
- AppBinding
Constructors
public AppBinding(Func<AppState, IWidget> build, string? name = null) #Creates a dependent display view.
Parameters
- build System.Func<ConsoleMonster.Interactive.AppState, ConsoleMonster.Layout.IWidget>
- Creates a fresh display widget from the current state; inputs belong in the stable outer layout.
- name string? = null
- An optional stable live-region name.
Methods
public Size Measure(Constraints constraints, RenderContext context) #Returns the size the widget wants within the constraints.
Parameters
- constraints ConsoleMonster.Layout.Constraints
- The space offered.
- context ConsoleMonster.Canvas.RenderContext
- Profile, theme and glyphs.
public void Render(Region region, RenderContext context) #Renders into a region. The region may be smaller or larger than the measured size.
Parameters
- region ConsoleMonster.Canvas.Region
- The target region.
- context ConsoleMonster.Canvas.RenderContext
- Profile, theme and glyphs.