Method

GtkStylerender_icon

deprecated: 3.0 

Declaration [src]

GdkPixbuf*
gtk_style_render_icon (
  GtkStyle* style,
  const GtkIconSource* source,
  GtkTextDirection direction,
  GtkStateType state,
  GtkIconSize size,
  GtkWidget* widget,
  const gchar* detail
)

Description [src]

Renders the icon specified by source at the given size according to the given parameters and returns the result in a pixbuf.

Deprecated since: 3.0

Use gtk_render_icon_pixbuf() instead.

Parameters

source

Type: GtkIconSource

The GtkIconSource specifying the icon to render.

The data is owned by the caller of the method.
direction

Type: GtkTextDirection

A text direction.

state

Type: GtkStateType

A state.

size

Type: GtkIconSize

The size to render the icon at (GtkIconSize). A size of (GtkIconSize)-1 means render at the size of the source and don’t scale.

widget

Type: GtkWidget

The widget.

The argument can be NULL.
The data is owned by the caller of the method.
detail

Type: const gchar*

A style detail.

The argument can be NULL.
The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.

Return value

Type: GdkPixbuf

A newly-created GdkPixbuf containing the rendered icon.

The caller of the method takes ownership of the returned data, and is responsible for freeing it.