Class Grid
Children in cells of a table of fixed and proportional tracks. Set the
tracks, new Grid { Columns = { Track.Fixed(12), Track.Star() }, Rows = { Track.Star() } },
then place each child with Add(column, row, child).
Assembly: DarkEffekt.Terminal.UI
Section titled “Assembly: DarkEffekt.Terminal.UI”public sealed class Grid : ContainerInheritance: System.Object -> DarkEffekt.Terminal.UI.Element -> DarkEffekt.Terminal.UI.Container
Properties
Section titled “Properties”Columns
Section titled “Columns”public List<Track> Columns { get; }public List<Track> Rows { get; }Methods
Section titled “Methods”Add(int, int, Element)
Section titled “Add(int, int, Element)”Adds a child to the cell at a column and row.
public void Add(int column, int row, Element child)Parameters
Section titled “Parameters”| Type | Name |
|---|---|
System.Int32 |
column |
System.Int32 |
row |
| DarkEffekt.Terminal.UI.Element | child |
OnRemoved(Element)
Section titled “OnRemoved(Element)”A child left the container. A panel that keeps placement for its children drops it here.
protected override void OnRemoved(Element child)Parameters
Section titled “Parameters”| Type | Name |
|---|---|
| DarkEffekt.Terminal.UI.Element | child |
MeasureCore(CellSize)
Section titled “MeasureCore(CellSize)”The size this element wants, within the room given.
protected override CellSize MeasureCore(CellSize available)Returns
Section titled “Returns”DarkEffekt.Terminal.UI.CellSize
Parameters
Section titled “Parameters”| Type | Name |
|---|---|
| DarkEffekt.Terminal.UI.CellSize | available |
ArrangeCore(CellRect)
Section titled “ArrangeCore(CellRect)”Places the children inside this element’s rectangle.
protected override void ArrangeCore(CellRect rect)Parameters
Section titled “Parameters”| Type | Name |
|---|---|
| DarkEffekt.Terminal.UI.CellRect | rect |