Enumeration
Layout.ChildRule
public enum ChildRule
Relationships
Member Of
Layout
Layout
provides the ability to layout a series ofRect
s using specified rules. The order of eachRect
is always preserved.
Enumeration Cases
alignWidths
case alignWidths(width:Int)
Sets the width of all Rect
s as specified
alignHeights
case alignHeights(height:Int)
Sets the height of all Rect
s as specified
alignTops
case alignTops(top:Int)
Sets the top of all Rect
s as specified
alignCenterY
case alignCenterY(centerY:Int)
Sets the center-y of all Rect
s as specified
alignBottoms
case alignBottoms(bottom:Int)
Sets the bottom of all Rect
s as specified
alignLefts
case alignLefts(left:Int)
Sets the left of all Rect
s as specified
alignCenterX
case alignCenterX(centerX:Int)
Sets the center-x of all Rect
s as specified
alignRights
case alignRights(right:Int)
Sets the right of all Rect
s as specified
distributeHorizontally
case distributeHorizontally(left:Int, spacing:Int)
Distributes the Rect
s horizontally beginning at the
specified left with spacing between each Rect
distributeVertically
case distributeVertically(top:Int, spacing:Int)
Distrbutes the Rect
s vertically beginning at the
specified top with spacing between each Rect