API Reference
Class
Rows
Stacks children vertically. In print-once output every child gets its measured height; in a live frame, LayoutSize.Fraction rows share the height left after fixed and auto rows (for example a log region that fills the bottom of the screen).
Inheritance
- Object
- Rows
Usage
Explore 9 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 7
- Method DashboardBuilder.Build
- Method RowsBuilder.Build
- Method RowsBuilderBase.Build
- Extension method Rows.WithGap
- Method Rows.Add
- Method RowsFluent.WithGap
- Method Ui.Rows
Accepted by parameters 2
- Extension method Rows.WithGap
- Method RowsFluent.WithGap
Constructors
public Rows(params IWidget[] children) #Creates rows from children sized to their content.
Parameters
- children ConsoleMonster.Layout.IWidget[]
- The children.
Methods
public Rows Add(IWidget child, LayoutSize? size = null) #Returns:
RowsAdds a child.
Parameters
- child ConsoleMonster.Layout.IWidget
- The child.
- size ConsoleMonster.Layout.LayoutSize? = null
- Its height specification (default auto).
Returns
This instance.
public Size Measure(Constraints constraints, RenderContext context) #Returns:
SizeReturns the size the widget wants within the constraints.
Parameters
- constraints ConsoleMonster.Layout.Constraints
- The space offered.
- context ConsoleMonster.Canvas.RenderContext
- Profile, theme and glyphs.
Returns
The desired size, never larger than the constraints.
public Void Render(Region region, RenderContext context) #Returns:
VoidRenders 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.
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?
Properties
public IReadOnlyList<LayoutSize> Sizes { get; } #Size specifications, parallel to Rows.Children.