pub fn render_background(
    context: &impl IsA<StyleContext>,
    cr: &Context,
    x: f64,
    y: f64,
    width: f64,
    height: f64
)
Expand description

Renders the background of an element.

Typical background rendering, showing the effect of background-image, border-width and border-radius:

context

a StyleContext

cr

a cairo::Context

x

X origin of the rectangle

y

Y origin of the rectangle

width

rectangle width

height

rectangle height