scenic_driver_renderling/lib/scenic_driver_rendering/window/config/position.ex
James Harton f322b7d9d8
Some checks failed
continuous-integration/drone/push Build is failing
chore: Set up tests, linting and CI.
2024-05-17 14:31:49 +12:00

25 lines
678 B
Elixir

defmodule Scenic.Driver.Renderling.Window.Config.Position do
@moduledoc """
Configuration generated by parsing the options provided to the driver.
It's a struct to make it easier to derive from rustler.
"""
defstruct scaled: false,
centered: false,
orientation: :normal,
maximised: false,
full_screen: false
@type t :: %__MODULE__{
scaled: boolean,
centered: boolean,
orientation: :normal | :left | :right | :upside_down,
maximised: boolean,
full_screen: boolean
}
@doc false
@spec init(keyword) :: t
def init(opts), do: struct(__MODULE__, opts)
end