View Source RectLayout.Group (rect_layout v0.1.1)

Represent a group of graphical object, moves and scales them together proportionally

Any change to its x and y would change all of its children with the same amount Any change in width and height would be propogated to its children propotionally

Should not be created directly but by using the RectLayout.group/1 constructor

If the children are modified externally should run the RectLayout.group_children/2 to update them and the bounding rectangle

Implements RectLayout.Object protocol so it can be used in the layout calculations

Summary

Types

@type t() :: %RectLayout.Group{children: list(), rect: RectLayout.Rect.t()}