Current section
Files
Jump to
Current section
Files
lib/ex_ratatui/frame.ex
defmodule ExRatatui.Frame do
@moduledoc """
Terminal frame information passed to `render/2` callbacks.
Contains the current terminal dimensions.
## Examples
iex> %ExRatatui.Frame{width: 80, height: 24}
%ExRatatui.Frame{width: 80, height: 24}
"""
@type t :: %__MODULE__{
width: non_neg_integer(),
height: non_neg_integer()
}
defstruct width: 0, height: 0
end