Base interface for all visual elements in the widget tree. More...
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. | |
Base interface for all visual elements in the widget tree.
| 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.BorderBox, ConsoleForge.Widgets.Checkbox, ConsoleForge.Widgets.Container, ConsoleForge.Widgets.List, ConsoleForge.Widgets.Modal, ConsoleForge.Widgets.ProgressBar, ConsoleForge.Widgets.Spinner, ConsoleForge.Widgets.Table, ConsoleForge.Widgets.Tabs, ConsoleForge.Widgets.TextArea, ConsoleForge.Widgets.TextBlock, ConsoleForge.Widgets.TextInput, and ConsoleForge.Widgets.ZStack.