Description Methods and Functions Hierarchy Detailed Description Structures Convenient Construction Properties Author(s) References
Renders a pixbuf in a cell
gtkCellRendererPixbufNew()
gtkCellRendererPixbuf()
1 2 3 4 5 | GObject
+----GInitiallyUnowned
+----GtkObject
+----GtkCellRenderer
+----GtkCellRendererPixbuf
|
A GtkCellRendererPixbuf
can be used to render an image in a cell. It allows to render
either a given GdkPixbuf
(set via the
pixbuf property) or a stock icon
(set via the stock-id property).
To support the tree view, GtkCellRendererPixbuf
also supports rendering two alternative
pixbufs, when the is-expander property
is TRUE
. If the is-expanded property
is TRUE
and the
pixbuf-expander-open
property is set to a pixbuf, it renders that pixbuf, if the
is-expanded property is FALSE
and
the
pixbuf-expander-closed
property is set to a pixbuf, it renders that one.
GtkCellRendererPixbuf
undocumented
gtkCellRendererPixbuf
is the equivalent of gtkCellRendererPixbufNew
.
follow-state
[logical : Read / Write]Specifies whether the rendered pixbuf should be colorized
according to the GtkCellRendererState
.
Default value: FALSE Since 2.8
gicon
[GIcon
: * : Read / Write]The GIcon representing the icon to display. If the icon theme is changed, the image will be updated automatically. Since 2.14
icon-name
[character : * : 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
[GdkPixbuf
: * : Read / Write]The pixbuf to render.
pixbuf-expander-closed
[GdkPixbuf
: * : Read / Write]Pixbuf for closed expander.
pixbuf-expander-open
[GdkPixbuf
: * : Read / Write]Pixbuf for open expander.
stock-detail
[character : * : Read / Write]Render detail to pass to the theme engine. Default value: NULL
stock-id
[character : * : Read / Write]The stock ID of the stock icon to render. Default value: NULL
stock-size
[numeric : Read / Write]The GtkIconSize value that specifies the size of the rendered icon. Default value: 1
Derived by RGtkGen from GTK+ documentation
https://developer.gnome.org/gtk2/stable/GtkCellRendererPixbuf.html
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.