MingaEditor.RenderPipeline.Content (Minga v0.1.0)

Copy Markdown View Source

Stage 4: Content.

Builds the semantic RenderModel.Window models for each editor window (buffer windows and agent chat windows) and resolves each active window's buffer cursor. Produces WindowContent carriers that the Compose stage flattens into the frame's window list.

Summary

Types

Render pipeline input.

Functions

Builds the semantic window models for agent chat windows.

Builds the semantic window models for each buffer window.

Resets the per-frame rasterized-row counter at the start of the Content stage (#2287).

Returns the number of buffer rows rasterized so far this frame (#2287).

Types

state()

Render pipeline input.

Functions

build_agent_chat_content(state, layout)

Builds the semantic window models for agent chat windows.

Finds windows with {:agent_chat, _} content in the layout, renders the agent chat content into their rects, and returns WindowContent carriers. Buffer windows are skipped (handled by build_content/2).

Returns an empty list if no agent chat windows exist.

build_agent_chat_content(state, layout, prefetched_agent_chats)

build_content(state, scrolls)

Builds the semantic window models for each buffer window.

Produces WindowContent carriers (the window's RenderModel.Window models) and the absolute cursor position for the active window.

reset_rows_rasterized(state)

@spec reset_rows_rasterized(state()) :: state()

Resets the per-frame rasterized-row counter at the start of the Content stage (#2287).

rows_rasterized(state)

@spec rows_rasterized(state()) :: non_neg_integer()

Returns the number of buffer rows rasterized so far this frame (#2287).