render_background


Description:

[ CCode ( cname = "gtk_render_background" ) ]
public void render_background (Context cr, double x, double y, double width, double height)

Renders the background of an element.

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

![](background.png)

Parameters:

cr

a `cairo_t`

x

X origin of the rectangle

y

Y origin of the rectangle

width

rectangle width

height

rectangle height

context

a `GtkStyleContext`




2022 vala-language.org