25 lines
678 B
Elixir
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
|