Function gtk::render_background_get_clip[][src]

pub fn render_background_get_clip<P: IsA<StyleContext>>(
    context: &P,
    x: f64,
    y: f64,
    width: f64,
    height: f64
) -> Rectangle
This is supported on crate feature v3_20 only.
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