Skip to main content

render_viewer

Function render_viewer 

Source
pub fn render_viewer<S: AsRef<str>>(
    theme: &Theme,
    lines: &[S],
    area: Rect,
    scroll: &RowWindow,
    buf: &mut Buffer,
)
Expand description

Draws lines and the scrollbar inside the frame of a window drawn in area, from the row scroll holds, which the draw keeps inside the last page.