render_background


Description:

[ Version ( deprecated_since = "vala-0.16" , deprecated = true , replacement = "StyleContext.render_background" ) ]
public void render_background (StyleContext context, Context cr, double x, double y, double width, double height)

Warning: render_background is deprecated since "vala-0.16". Use Gtk.StyleContext.render_background.

Renders the background of an element.

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

![](background.png)

Parameters:

context

a StyleContext

cr

a Context

x

X origin of the rectangle

y

Y origin of the rectangle

width

rectangle width

height

rectangle height


Namespace: Gtk
Package: gtk+-3.0