View Source RectLayout.Rect (rect_layout v0.1.2)

Represent a rectangle. Used as the backbone of all the graphics calculations You should probably not use this directly but use %RectLayout.Sprite{} structs as they can track which external (svg) object you are manipulating

Should not be created directly but by using the RectLayout.rect/4 constructor

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

Summary

Types

@type t() :: %RectLayout.Rect{
  height: number(),
  width: number(),
  x: number(),
  y: number()
}