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

Classes

interface  IContainer
 Implemented by widgets that contain and lay out children. More...
interface  IFocusable
 Extended interface for interactive widgets that can receive keyboard focus. More...
interface  ILayeredContainer
 Implemented by widgets that hold multiple stacked layers rendered back-to-front (e.g. More...
interface  IRenderContext
 Passed to IWidget.Render(). More...
interface  ISingleBodyWidget
 Implemented by widgets that wrap a single body child (e.g. More...
interface  IWidget
 Base interface for all visual elements in the widget tree. More...
class  LayoutConstraintException
 Thrown by LayoutEngine when fixed-size children collectively exceed the available space in a container that has no flex children to absorb the overflow. More...
class  LayoutEngine
 Two-pass layout algorithm that resolves widget size constraints into absolute terminal regions. More...
class  RenderContext
 Concrete implementation of IRenderContext backed by a cell buffer where each cell stores a pre-rendered ANSI string for one character. More...
class  ResolvedLayout
 Result of layout resolution: maps each widget to its allocated terminal region. More...
class  SubRenderContext
 A delegating IRenderContext that forwards writes to a parent context but with a restricted sub-region. More...
class  TextUtils
 Terminal-aware text utilities: visual column width, truncation, and padding that correctly handle multi-byte Unicode characters and wide glyphs (CJK ideographs, full-width forms, emoji) which occupy 2 terminal columns. More...

Enumerations

enum  Axis
 Axis for container layout direction.

Variables

readonly record struct CursorDescriptor (bool Visible=true, int Col=0, int Row=0)
 Cursor state for a rendered frame.
readonly record struct Region (int Col, int Row, int Width, int Height)
 An absolute terminal region (col, row, width, height).

Variable Documentation

◆ CursorDescriptor

readonly record struct ConsoleForge.Layout.CursorDescriptor(bool Visible=true, int Col=0, int Row=0) ( bool Visible = true,
int Col = 0,
int Row = 0 )

Cursor state for a rendered frame.

Parameters
VisibleWhether the hardware cursor should be shown.
ColZero-based column of the cursor.
RowZero-based row of the cursor.