Function
Gtkrender_icon
since: 3.2
Declaration [src]
void
gtk_render_icon (
GtkStyleContext* context,
cairo_t* cr,
GdkPixbuf* pixbuf,
gdouble x,
gdouble y
)
Description [src]
Renders the icon in pixbuf
at the specified x
and y
coordinates.
This function will render the icon in pixbuf
at exactly its size,
regardless of scaling factors, which may not be appropriate when
drawing on displays with high pixel densities.
You probably want to use gtk_render_icon_surface()
instead, if you
already have a Cairo surface.
Available since: 3.2
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. pixbuf
-
Type:
GdkPixbuf
A
GdkPixbuf
containing the icon to draw.The data is owned by the caller of the function. x
-
Type:
gdouble
X position for the
pixbuf
. y
-
Type:
gdouble
Y position for the
pixbuf
.