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
-
objectFlexalonFlexibleLayout
- 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
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
Direction
The direction in which objects are placed, one after the other.
public Direction Direction { get; set; }
Property Value
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
HorizontalAlign
Determines how the entire layout horizontally aligns to the parent's box.
public Align HorizontalAlign { get; set; }
Property Value
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
VerticalAlign
Determines how the entire layout vertically aligns to the parent's box.
public Align VerticalAlign { get; set; }
Property Value
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
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
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
Methods
Arrange(FlexalonNode, Vector3)
Position the children of node within the available bounds.
public override void Arrange(FlexalonNode node, Vector3 layoutSize)
Parameters
nodeFlexalonNodelayoutSizeVector3
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
nodeFlexalonNodesizeVector3minVector3maxVector3
Returns
- Bounds