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