SplitBranch record Core
Divides its area along SplitBranch.Axis (BoardAxis.Columns: side by side, BoardAxis.Rows: one above the other) among its SplitBranch.Children, each taking its share of the SplitBranch.Ratios.
public sealed record SplitBranch : SplitNode
- Namespace
- ArionUI.Presentation.Controls
- Package
- ArionUI.Presentation ·
dotnet add package ArionUI.Presentation --prerelease - Inherits
- SplitNode
Constructors
SplitBranch
public SplitBranch(BoardAxis axis, params SplitNode[] children);Divides the area into equal shares.
SplitBranch
public SplitBranch(BoardAxis Axis, IReadOnlyList<double> Ratios, IReadOnlyList<SplitNode> Children);Divides its area along SplitBranch.Axis (BoardAxis.Columns: side by side, BoardAxis.Rows: one above the other) among its SplitBranch.Children, each taking its share of the SplitBranch.Ratios.
Properties
Axis
public BoardAxis Axis { get; init; }
Children
public IReadOnlyList<SplitNode> Children { get; init; }
Ratios
public IReadOnlyList<double> Ratios { get; init; }
Methods
Equals
public bool Equals(SplitBranch? other);Equal when the axis, the shares and the children are.
GetHashCode
public override int GetHashCode();