ElixirDoom.Render.Layout (elixir_doom v0.2.0)

Copy Markdown View Source

Where things go on a level's picture: the player's options with Doom's defaults filled in, the screen size in force (at least 10 while the automap is open), the status bar's height (32 of every 200 rows, none at size 11) and the height left above it for the view.

%{bar_height: 64, view_height: 336} = ElixirDoom.Render.Layout.new({640, 400}, automap: false)

Summary

Functions

The layout of a picture width by height under ElixirDoom.Render.picture/4's options.

Types

t()

@type t() :: %{
  options: map(),
  automap: boolean(),
  blocks: integer(),
  bar_height: non_neg_integer(),
  view_height: pos_integer()
}

Functions

new(arg, opts)

@spec new({pos_integer(), pos_integer()}, keyword()) :: t()

The layout of a picture width by height under ElixirDoom.Render.picture/4's options.