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§
- Frame
View - 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-offbuild_cells_panesnever sizesPaneId::MINIBUFFER_BANDand 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) —Noneotherwise. The runtime loop feeds this back viaApp::set_completion_docs_viewportsobuild_cells_panessizes thePaneId::COMPLETION_DOCSmatrix. Computed at the exact draw site (with the realchunks[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).