# `ExRatatui.Layout.Rect`
[🔗](https://github.com/mcass19/ex_ratatui/blob/v0.7.1/lib/ex_ratatui/layout/rect.ex#L1)

A rectangular area on the terminal screen.

## Fields

  * `:x` - left column (0-based)
  * `:y` - top row (0-based)
  * `:width` - width in cells
  * `:height` - height in cells

## Examples

    iex> %ExRatatui.Layout.Rect{x: 0, y: 0, width: 80, height: 24}
    %ExRatatui.Layout.Rect{x: 0, y: 0, width: 80, height: 24}

    iex> %ExRatatui.Layout.Rect{}
    %ExRatatui.Layout.Rect{x: 0, y: 0, width: 0, height: 0}

# `t`

```elixir
@type t() :: %ExRatatui.Layout.Rect{
  height: non_neg_integer(),
  width: non_neg_integer(),
  x: non_neg_integer(),
  y: non_neg_integer()
}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
