| GTK+ Reference Manual | ||||
|---|---|---|---|---|
#include <gtk/gtk.h>
GtkCellRendererPixbuf;
GtkCellRenderer* gtk_cell_renderer_pixbuf_new (void);
GObject +----GInitiallyUnowned +----GtkObject +----GtkCellRenderer +----GtkCellRendererPixbuf
follow-stategboolean : Read / Write icon-namegchararray : Read / Write pixbufGdkPixbuf : Read / Write pixbuf-expander-closedGdkPixbuf : Read / Write pixbuf-expander-openGdkPixbuf : Read / Write stock-detailgchararray : Read / Write stock-idgchararray : Read / Write stock-sizeguint : Read / Write
A GtkCellRendererPixbuf can be used to render an image in a cell. It allows to render
either a given
To support the tree view, GtkCellRendererPixbuf also supports rendering two alternative
pixbufs, when the is-expander property
is TRUETRUEFALSE
GtkCellRenderer* gtk_cell_renderer_pixbuf_new (void);
Creates a new GtkCellRendererPixbuf. Adjust rendering
parameters using object properties. Object properties can be set
globally (with g_object_set()
| Returns : | the new cell renderer |
follow-state propertyfollow-stategboolean : Read / Write
Specifies whether the rendered pixbuf should be colorized according to the GtkCellRendererState.
Default value: FALSE
Since 2.8
icon-name propertyicon-namegchararray : Read / Write
The name of the themed icon to display. This property only has an effect if not overridden by "stock_id" or "pixbuf" properties.
Default value: NULL
Since 2.8
pixbuf-expander-closed propertypixbuf-expander-closedGdkPixbuf : Read / Write
Pixbuf for closed expander.
pixbuf-expander-open propertypixbuf-expander-openGdkPixbuf : Read / Write
Pixbuf for open expander.
stock-detail propertystock-detailgchararray : Read / Write
Render detail to pass to the theme engine.
Default value: NULL
stock-id propertystock-idgchararray : Read / Write
The stock ID of the stock icon to render.
Default value: NULL