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

Base interface for all visual elements in the widget tree. More...

Inheritance diagram for ConsoleForge.Layout.IWidget:

Public Member Functions

void Render (IRenderContext ctx)
 Render this widget into the provided context.

Properties

SizeConstraint Height [get]
 Height constraint used by the layout engine.
Style Style [get]
 Visual style for this widget. Inherits from Theme if unset.
SizeConstraint Width [get]
 Width constraint used by the layout engine.

Detailed Description

Base interface for all visual elements in the widget tree.

Member Function Documentation

◆ Render()

void ConsoleForge.Layout.IWidget.Render ( IRenderContext ctx)

Render this widget into the provided context.

The context carries the allocated region, theme, and color profile. Implementations MUST NOT write outside ctx.Region.

Implemented in ConsoleForge.Widgets.ImageWidget.


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