Current section
Files
Jump to
Current section
Files
lib/plushie/widget/pin.ex
defmodule Plushie.Widget.Pin do
@moduledoc """
Pin layout, positions child at absolute coordinates.
"""
use Plushie.Widget
# No a11y defaults: layout containers are transparent to AT
widget :pin, container: :single do
field :x, :float, doc: "X position in pixels. Default: 0."
field :y, :float, doc: "Y position in pixels. Default: 0."
field :width, Plushie.Type.Length, doc: "Pin container width. Default: shrink."
field :height, Plushie.Type.Length, doc: "Pin container height. Default: shrink."
field :event_rate, :integer, doc: "Max events per second for coalescable events."
field :a11y, Plushie.Type.A11y, doc: "Accessibility annotations."
end
end