Igis Documentation Beta

Class Layout

public class Layout  

Layout provides the ability to layout a series of Rects using specified rules. The order of each Rect is always preserved.

Nested Types

Layout.ChildAttribute
Layout.ChildRule

Methods

property(attribute:​child​Rects:​)

public static func property(attribute:ChildAttribute, childRects:[Rect]) -> Int 

Analyzes the childRects and calculates the specified property of the collection

apply(rule:​child​Rects:​)

public static func apply(rule:ChildRule, childRects:[Rect]) -> [Rect] 

Applies the specified rule to the collection of Rects and returns a new collection, maintaining the original order