API Reference
Class
FrameComposer
Renders widgets into cell buffers: full-screen frames for live sessions and sized blocks for print-once output.
Inheritance
- Object
- FrameComposer
Methods
public static CellBuffer Compose(IWidget root, Int32 width, Int32 height, RenderContext context, CellBuffer? reuse = null) #Returns:
CellBufferRenders a widget as a full-screen frame.
Parameters
- root ConsoleMonster.Layout.IWidget
- The root widget.
- width System.Int32
- Screen width.
- height System.Int32
- Screen height.
- context ConsoleMonster.Canvas.RenderContext
- The render context.
- reuse ConsoleMonster.Canvas.CellBuffer? = null
- A buffer to reuse (resized when needed), or null.
Returns
The frame.
public static CellBuffer RenderBlock(IWidget widget, Int32 width, RenderContext context) #Returns:
CellBufferRenders a widget as a block exactly as tall as it measures at the given width.
Parameters
- widget ConsoleMonster.Layout.IWidget
- The widget.
- width System.Int32
- Available width.
- context ConsoleMonster.Canvas.RenderContext
- The render context.
Returns
The block.
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?