20 lines
565 B
Elixir
20 lines
565 B
Elixir
defmodule Scenic.Driver.Renderling.Window.Config.Window 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 title: "Scenic Window", resizeable: false, width: nil, height: nil
|
|
|
|
@type t :: %__MODULE__{
|
|
title: String.t(),
|
|
resizeable: false,
|
|
width: nil | non_neg_integer(),
|
|
height: nil | non_neg_integer()
|
|
}
|
|
|
|
@doc false
|
|
@spec init(keyword) :: t
|
|
def init(opts), do: struct(__MODULE__, opts)
|
|
end
|