An individual Flow element properties.
Can be obtained after adding the element to the Flow and calling Flow.getProperties.
Contains configuration unique of each Flow element.
Variables
write onlyautoSize:Null<Float>
When set, element will use the maximum size of non-autoSize elements as size constraint instead of current constraint on the parent flow.
constraint:Bool = true
Will constraint the element size through Object.constraintSize if the Flow have a set maximum size.
See also:
horizontalAlign:Null<FlowAlign>
The Flow.horizontalAlign override.
If FlowProperties.isAbsolute is enabled - aligns the element within the Flow boundaries.
Otherwise affects the element alignment within the Flow. Does not affect the alignment if Flow.layout is Horizontal.
isAbsolute:Bool = false
When enabled, element won't be automatically positioned during Flow.reflow and
instead treated as an absolute element relative to the Flow.
read onlyisBreak:Bool
Whether this element is the last on its current row/column, and the next flow element being on the next row/column after overflow.
lineBreak:Bool = false
Forces this element to break the line and flow onto the next row/column.
Flow.multiline is not required to be enabled.
offsetX:Int = 0
A visual offset of the element along the X axis.
Offset does not affect the occupied space by the element, and can lead to overlapping with other elements.
offsetY:Int = 0
A visual offset of the element along the Y axis.
Offset does not affect the occupied space by the element, and can lead to overlapping with other elements.
verticalAlign:Null<FlowAlign>
The Flow.verticalAlign override.
If FlowProperties.isAbsolute is enabled - aligns the element within the Flow boundaries.
Otherwise affects the element alignment within the Flow. Does not affect the alignment if Flow.layout is Vertical.
Methods
inlinealign(vertical:Null<FlowAlign>, horizontal:Null<FlowAlign>):Void
Shortcut to set both FlowProperties.verticalAlign and FlowProperties.horizontalAlign.
