Skip to main content

draw_resolved

Function draw_resolved 

Source
pub fn draw_resolved(resolved: &ResolvedView, area: Rect, buffer: &mut Buffer)
Expand description

Writes an already resolved view into buffer, anchored at area’s origin.

This is the cell-writing path the widgets take, exposed for a caller that resolves the view itself — a renderer that needs the resolution as well as the cells, and resolves exactly once per frame. Resolve under available to reproduce what the widgets draw.

The part of area outside buffer masks which cells are written; it never moves the rectangle. A grapheme that would straddle the mask is dropped rather than split, matching how the layout pass crops.