Skip to main content

Module render

Module render 

Source
Expand description

Frame rendering. Pure where it can be (line composition is testable); IO-bound where ratatui needs it (draw_frame accepting a Frame).

Layout:

+––––––––––––––––––––––––––––––––+ | gutter | buffer text | | gutter | buffer text | | … | +––––––––––––––––––––––––––––––––+ | mode line: NOR path line:col lang | +––––––––––––––––––––––––––––––––+

Structs§

FrameView
Per-render-chain snapshot of App state the renderer reads.

Functions§

band_feedback_inner_dims
WK.12: the band’s inner (rows, cols) for the host’s cells worker — the peer of [popup_feedback_inner_dims]. Without this hand-off build_cells_panes never sizes PaneId::MINIBUFFER_BAND and the band paints nothing at all.
build_pane_render_registry
Boot-time registration of the renderer-side providers for the built-in modes. Plugin-installed modes (post-1.0) extend this registry through the same interface.
compose_visible_lines
draw_frame
Returns the completion-docs side popup’s inner (rows, cols) when it is shown this frame (PU.5c) — None otherwise. The runtime loop feeds this back via App::set_completion_docs_viewport so build_cells_panes sizes the PaneId::COMPLETION_DOCS matrix. Computed at the exact draw site (with the real chunks[1] buffer area) because the docs popup is cursor-anchored — position-dependent, unlike the floating popup whose geometry the runtime reconstructs (popup_feedback_inner_dims).