Skip to main content

draw_line

Function draw_line 

Source
pub fn draw_line(line: &Line<'_>, area: Rect, buf: &mut Buffer) -> u16
Expand description

Draw a line of spans at the top of area, wrapping onto further rows.

A run that is one line by construction – a row’s parts, a control, a meter – rather than a block that may carry breaks of its own. It is the same wrap either way, and was its own implementation until a rich node started putting styled runs inside a row: the separate copy drew the space before a struck word struck, because it took the separator’s style from the word after it instead of from the whitespace it replaced.