Table of Contents

Class LayoutBase

Namespace
Flexalon
Assembly
Flexalon.dll

Base class for all layout componets. See custom layout for details on how to extend this class. Assigns the Layout method to FlexalonNode and keeps the node's children up to date.

public abstract class LayoutBase : FlexalonComponent, Layout
Inheritance
object
LayoutBase
Implements
Derived
Inherited Members

Methods

Arrange(FlexalonNode, Vector3)

Position the children of node within the available bounds.

public virtual void Arrange(FlexalonNode node, Vector3 layoutSize)

Parameters

node FlexalonNode
layoutSize Vector3

DoOnDisable()

Called when the component is disabled.

protected override void DoOnDisable()

DoOnEnable()

Called when the component is enabled.

protected override void DoOnEnable()

Initialize()

protected override void Initialize()

Measure(FlexalonNode, Vector3, Vector3, Vector3)

Perform minimal work to determine what the size of node and available size for node's children.

public virtual Bounds Measure(FlexalonNode node, Vector3 size, Vector3 min, Vector3 max)

Parameters

node FlexalonNode
size Vector3
min Vector3
max Vector3

Returns

Bounds

ResetProperties()

Called when the component is destroyed to reset properties on the FlexalonNode.

protected override void ResetProperties()

SetChildrenFillShrinkSize(FlexalonNode, Vector3, Vector3)

Helper to assign the fill and shrink size for all children.

protected void SetChildrenFillShrinkSize(FlexalonNode node, Vector3 childSize, Vector3 layoutSize)

Parameters

node FlexalonNode
childSize Vector3
layoutSize Vector3