PdfElixide.Geometry.Rect (pdf_elixide v0.9.0)

Copy Markdown View Source

An axis-aligned rectangle in PDF user-space coordinates.

PDF user space has a bottom-left origin with y increasing upward, so the origin {x, y} is the bottom-left corner (the minimum x/y); the top edge is y + height and the right edge is x + width. width and height are always non-negative.

Summary

Types

t()

@type t() :: %PdfElixide.Geometry.Rect{
  height: float(),
  width: float(),
  x: float(),
  y: float()
}