Table of Contents

Class ParentArea

Namespace
Whim.SliceLayout
Assembly
Whim.SliceLayout.dll
Represents an area that can have any IArea as a child.
public record ParentArea : BaseArea, IArea, IEquatable<BaseArea>, IEquatable<ParentArea>
Inheritance
ParentArea
Implements
Inherited Members

Constructors

ParentArea(bool, params (double Weight, IArea Child)[])

Creates a new ParentArea with the given children.
public ParentArea(bool isRow, params (double Weight, IArea Child)[] children)

Parameters

isRow bool
children (double Weight, IArea Child)[]
A tuple of the weight and the child. The sum of the weights should be 1.0.

Properties

Children

Children of this area.
public ImmutableList<IArea> Children { get; }

Property Value

ImmutableList<IArea>

Weights

Weights of the children. The sum of the weights should be 1.0.
public ImmutableList<double> Weights { get; }

Property Value

ImmutableList<double>