render_background

function render_background(context:Gtk.StyleContext, cr:cairo.Context, x:Number, y:Number, width:Number, height:Number):void {
    // Gjs wrapper for gtk_render_background()
}

Renders the background of an element.

<example> <title>Typical background rendering, showing the effect of <parameter>background-image</parameter>, <parameter>border-width</parameter> and <parameter>border-radius</parameter></title> <inlinegraphic fileref="background.png" format="PNG"/> </example>

Since 3.0.

context

a Gtk.StyleContext

cr

a #cairo_t

x

X origin of the rectangle

y

Y origin of the rectangle

width

rectangle width

height

rectangle height