Function

Gtkrender_background

since: 3.0.

Declaration [src]

void
gtk_render_background (
  GtkStyleContext* context,
  cairo_t* cr,
  gdouble x,
  gdouble y,
  gdouble width,
  gdouble height
)

Description [src]

Renders the background of an element.

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

Available since: 3.0.

Parameters

context

Type: GtkStyleContext

A GtkStyleContext.

The data is owned by the caller of the function.
cr

Type: cairo_t

A #cairo_t.

The data is owned by the caller of the function.
x

Type: gdouble

X origin of the rectangle.

y

Type: gdouble

Y origin of the rectangle.

width

Type: gdouble

Rectangle width.

height

Type: gdouble

Rectangle height.