Table of Contents

Class FlexalonFlexibleLayout

Namespace
Flexalon
Assembly
Flexalon.dll

Use a flexible layout to position children linearly along the x, y, or z axis. The sizes of the children are considered so that they are evenly spaced.

public class FlexalonFlexibleLayout : LayoutBase, Layout
Inheritance
object
FlexalonFlexibleLayout
Implements
Inherited Members

Properties

DepthAlign

Determines how the entire layout aligns to the parent's box in depth.

public Align DepthAlign { get; set; }

Property Value

Align

DepthInnerAlign

The inner align property along the Direction axis will change how wrapped lines align with each other. The inner align property along the other two axes will change how each object lines up with all other objects.

public Align DepthInnerAlign { get; set; }

Property Value

Align

Direction

The direction in which objects are placed, one after the other.

public Direction Direction { get; set; }

Property Value

Direction

Gap

Adds a gap between objects on the Direction axis.

public float Gap { get; set; }

Property Value

float

GapType

Determines how the space between children is distributed.

public FlexalonFlexibleLayout.GapOptions GapType { get; set; }

Property Value

FlexalonFlexibleLayout.GapOptions

HorizontalAlign

Determines how the entire layout horizontally aligns to the parent's box.

public Align HorizontalAlign { get; set; }

Property Value

Align

HorizontalInnerAlign

The inner align property along the Direction axis will change how wrapped lines align with each other. The inner align property along the other two axes will change how each object lines up with all other objects.

public Align HorizontalInnerAlign { get; set; }

Property Value

Align

VerticalAlign

Determines how the entire layout vertically aligns to the parent's box.

public Align VerticalAlign { get; set; }

Property Value

Align

VerticalInnerAlign

The inner align property along the Direction axis will change how wrapped lines align with each other. The inner align property along the other two axes will change how each object lines up with all other objects.

public Align VerticalInnerAlign { get; set; }

Property Value

Align

Wrap

If set, then the flexible layout will attempt to position children in a line along the Direction axis until it runs out of space. Then it will start the next line by following the wrap direction. Wrapping will only occur if the size of the Direction axis is set to any value other than "Layout".

public bool Wrap { get; set; }

Property Value

bool

WrapDirection

The direction to start a new line when wrapping.

public Direction WrapDirection { get; set; }

Property Value

Direction

WrapGap

Adds a gap between objects on the Wrap Direction axis.

public float WrapGap { get; set; }

Property Value

float

WrapGapType

Determines how the space between lines is distributed.

public FlexalonFlexibleLayout.GapOptions WrapGapType { get; set; }

Property Value

FlexalonFlexibleLayout.GapOptions

Methods

Arrange(FlexalonNode, Vector3)

Position the children of node within the available bounds.

public override void Arrange(FlexalonNode node, Vector3 layoutSize)

Parameters

node FlexalonNode
layoutSize Vector3

Measure(FlexalonNode, Vector3, Vector3, Vector3)

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

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

Parameters

node FlexalonNode
size Vector3
min Vector3
max Vector3

Returns

Bounds