Plushie.Canvas.Shape.HitRect (Plushie v0.6.0)

Copy Markdown View Source

Explicit hit test rectangle override for interactive canvas shapes.

Summary

Functions

Constructs a hit rect from a keyword list.

Types

t()

@type t() :: %Plushie.Canvas.Shape.HitRect{
  h: number(),
  w: number(),
  x: number(),
  y: number()
}

Functions

from_opts(opts)

@spec from_opts(keyword()) :: t()

Constructs a hit rect from a keyword list.