Skip to main content

fill

Function fill 

Source
pub fn fill(p: &mut dyn Painter, color: Color)
Expand description

Fills the whole drawing surface with a color.

This is the background of most Widgets, and usually the first thing their paint draws.

ยงArguments

  • p - The painter, targeting the Widget.
  • color - The fill color.