Gtk.Widget.RenderIcon Method
A convenience method that uses the theme engine and RC file settings for widget to look up stock_id and render it to a Gdk.Pixbuf.

Syntax

public Gdk.Pixbuf RenderIcon (string stock_id, IconSize size, string detail)

Parameters

stock_id
A stock ID.
size
A stock size.
detail
Render detail to pass to theme engine.

Returns

A new Gdk.Pixbuf, or null if the stock_id wasn't known.

Remarks

The stock_id should be a stock icon ID such as Stock.Open or Stock.Ok. size should be a size such as IconSize.Menu. detail should be a string that identifies the widget or code doing the rendering, so that theme engines can special-case rendering for that widget or code.

The pixels in the returned Gdk.Pixbuf are shared with the rest of the application and should not be modified. The Gdk.Pixbuf should be freed after use with Glib.Object.Unref.

Requirements

Namespace: Gtk
Assembly: gtk-sharp (in gtk-sharp.dll)