Skip to main content

fill_rect

Function fill_rect 

Source
pub fn fill_rect(surface: &mut Surface<'_>, rect: Rect, ch: char, style: Style)
Expand description

Fill rect with ch in the given style.

The entire rectangle including corners is overwritten. Kept as a plain function rather than a widget: there’s no configuration to build up beyond the two arguments already here, and it’s a building block other widgets (Panel, Table, Scrollbar) call directly.