Function gtk4::render_background

source ·
pub fn render_background(
    context: &impl IsA<StyleContext>,
    cr: &Context,
    x: f64,
    y: f64,
    width: f64,
    height: f64
👎Deprecated: Since 4.10
Expand description

Renders the background of an element.

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

§Deprecated since 4.10


a StyleContext


a cairo::Context


X origin of the rectangle


Y origin of the rectangle


rectangle width


rectangle height