Alignment values for align_x and align_y widget props.
Horizontal: :left, :center, :right.
Vertical: :top, :center, :bottom.
Summary
Functions
Encodes an alignment value to the wire format.
Types
@type horizontal() :: :left | :center | :right
@type t() :: horizontal() | vertical()
@type vertical() :: :top | :center | :bottom
Functions
Encodes an alignment value to the wire format.
Examples
iex> Plushie.Type.Alignment.encode(:left)
"left"
iex> Plushie.Type.Alignment.encode(:center)
"center"
iex> Plushie.Type.Alignment.encode(:right)
"right"
iex> Plushie.Type.Alignment.encode(:top)
"top"
iex> Plushie.Type.Alignment.encode(:bottom)
"bottom"