View Source RectLayout.Sprite (rect_layout v0.2.0)

Represent a graphical object and tracks its position and size using %RectLayout.Rect{} struct

Should not be created directly but by using the RectLayout.sprite/2 constructor

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

Summary

Types

@type t() :: %RectLayout.Sprite{content: any(), rect: RectLayout.Rect.t()}