Class
Layout
public class Layout
Layout
provides the ability to layout a series of Rect
s using
specified rules. The order of each Rect
is always preserved.
Relationships
Nested Types
Layout.ChildAttribute
Layout.ChildRule
Methods
property(attribute:childRects:)
public static func property(attribute:ChildAttribute, childRects:[Rect]) -> Int
Analyzes the childRects and calculates the specified property of the collection
apply(rule:childRects:)
public static func apply(rule:ChildRule, childRects:[Rect]) -> [Rect]
Applies the specified rule to the collection of Rect
s and returns
a new collection, maintaining the original order