Skip to main content

render_view

Function render_view 

Source
pub fn render_view(state: &ViewState, width: u16, height: u16) -> Buffer
Expand description

Render the composed view into a fresh buffer of width × height.

Sections are stacked top-to-bottom; each is measured at width and allocated a vertical rect. The overlay (if any) is rendered last at the top. Sections that would overflow height are truncated (later sections drop).