MingaEditor.RenderPipeline.WindowContent (Minga v0.1.0)

Copy Markdown View Source

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.

Summary

Functions

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

Types

t()

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

Functions

new(window_model, additional_models, cursor)

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.