pub fn render_background_get_clip(
    context: &impl IsA<StyleContext>,
    x: f64,
    y: f64,
    width: f64,
    height: f64
) -> Rectangle
Expand description

Returns the area that will be affected (i.e. drawn to) when calling render_background() for the given context and rectangle.

context

a StyleContext

x

X origin of the rectangle

y

Y origin of the rectangle

width

rectangle width

height

rectangle height

Returns

out_clip

return location for the clip