Table of Contents

Class FlexalonRow

Namespace
Flexalon
Assembly
Flexalon.dll

Keeps a set of items together in their own rows of a parent table or grid, while still lining up with its columns. The group spans every column and grows to as many rows as its children need. Children are placed by the parent's rules, with Flexalon Cell coordinates counted from the start of the group. Add a Flexalon Cell to the group to choose the row it starts on. Padding and margins on the group are ignored. Without a parent table or grid, the group doesn't arrange its children.

[DisallowMultipleComponent]
[AddComponentMenu("Flexalon/Flexalon Row")]
[HelpURL("https://www.flexalon.com/docs/cells")]
public class FlexalonRow : FlexalonComponent, IFlexalonLayout
Inheritance
object
Object
Component
Behaviour
MonoBehaviour
FlexalonRow
Implements
Inherited Members

Methods

Arrange(IFlexalonNode, Vector3)

Position the children of node within the available bounds.

public void Arrange(IFlexalonNode node, Vector3 layoutSize)

Parameters

node IFlexalonNode
layoutSize Vector3

FastSwapChild(IFlexalonNode, IFlexalonNode)

Updates cached references after a trusted child swap. Called once for a same-parent exchange, with both nodes already in their new slots; otherwise called on each affected layout.

public void FastSwapChild(IFlexalonNode previous, IFlexalonNode replacement)

Parameters

previous IFlexalonNode
replacement IFlexalonNode

Measure(IFlexalonNode, Vector3, Vector3, Vector3)

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

public Bounds Measure(IFlexalonNode node, Vector3 size, Vector3 min, Vector3 max)

Parameters

node IFlexalonNode
size Vector3
min Vector3
max Vector3

Returns

Bounds

ResetProperties()

Removes this component's properties from the IFlexalonNode, undoing UpdateProperties. Called when the component is disabled or destroyed. It can run more than once in a row, so it must be idempotent.

protected override void ResetProperties()

UpdateProperties()

Applies this component's properties to the IFlexalonNode, such as registering the component as the node's layout, adapter, or modifier. Called when the component is enabled, and from MarkDirty while it's active, so it can run many times in a row. It must be idempotent and cheap.

protected override void UpdateProperties()