scenic_driver_renderling/lib/scenic_driver_rendering/window/config/window.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

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