# `MingaEditor.RenderPipeline.WindowContent`
[🔗](https://github.com/jsmestad/minga/blob/main/lib/minga_editor/render_pipeline/window_content.ex#L1)

Per-window product of the Content stage.

Carries the semantic `RenderModel.Window` structs a single editor window
produces (the buffer/chat window model plus any additional models such as
the agent prompt input) and the buffer cursor that window resolves, if it is
the active window. Compose flattens the models into the frame's window list
and resolves the final cursor from the per-window cursors and chrome.

# `t`

```elixir
@type t() :: %MingaEditor.RenderPipeline.WindowContent{
  cursor: Minga.RenderModel.Cursor.t() | nil,
  models: [Minga.RenderModel.Window.t()]
}
```

# `new`

```elixir
@spec new(
  Minga.RenderModel.Window.t() | nil,
  [Minga.RenderModel.Window.t()],
  Minga.RenderModel.Cursor.t() | nil
) :: t()
```

Builds a window content entry from a primary model, additional models, and
the window's resolved cursor.

The primary model may be nil (e.g. a suppressed agent help frame); it is
dropped from the model list when so.

---

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