Packages

Native desktop GUI framework for Elixir, powered by Iced

Current section

Files

Jump to
plushie lib plushie type alignment.ex
Raw

lib/plushie/type/alignment.ex

defmodule Plushie.Type.Alignment do
@moduledoc """
Alignment values for `align_x` and `align_y` widget props.
Horizontal: `:left`, `:center`, `:right`.
Vertical: `:top`, `:center`, `:bottom`.
"""
use Plushie.Type
@type horizontal :: :left | :center | :right
@type vertical :: :top | :center | :bottom
@type t :: horizontal() | vertical()
enum([:left, :center, :right, :top, :bottom])
end