51
51
<div class="refsect1">
52
52
<a name="GtkCellRendererPixbuf.object-hierarchy"></a><h2>Object Hierarchy</h2>
53
53
<pre class="synopsis">
54
<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
55
+----<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a>
55
+----GInitiallyUnowned
56
56
+----<a class="link" href="GtkObject.html" title="GtkObject">GtkObject</a>
57
57
+----<a class="link" href="GtkCellRenderer.html" title="GtkCellRenderer">GtkCellRenderer</a>
58
58
+----GtkCellRendererPixbuf
61
61
<div class="refsect1">
62
62
<a name="GtkCellRendererPixbuf.properties"></a><h2>Properties</h2>
63
63
<pre class="synopsis">
64
"<a class="link" href="GtkCellRendererPixbuf.html#GtkCellRendererPixbuf--follow-state" title='The "follow-state" property'>follow-state</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write
65
"<a class="link" href="GtkCellRendererPixbuf.html#GtkCellRendererPixbuf--gicon" title='The "gicon" property'>gicon</a>" <a href="http://library.gnome.org/devel/gio/unstable/GIcon.html"><span class="type">GIcon</span></a>* : Read / Write
66
"<a class="link" href="GtkCellRendererPixbuf.html#GtkCellRendererPixbuf--icon-name" title='The "icon-name" property'>icon-name</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write
64
"<a class="link" href="GtkCellRendererPixbuf.html#GtkCellRendererPixbuf--follow-state" title='The "follow-state" property'>follow-state</a>" <span class="type">gboolean</span> : Read / Write
65
"<a class="link" href="GtkCellRendererPixbuf.html#GtkCellRendererPixbuf--gicon" title='The "gicon" property'>gicon</a>" <span class="type">GIcon</span>* : Read / Write
66
"<a class="link" href="GtkCellRendererPixbuf.html#GtkCellRendererPixbuf--icon-name" title='The "icon-name" property'>icon-name</a>" <span class="type">gchar</span>* : Read / Write
67
67
"<a class="link" href="GtkCellRendererPixbuf.html#GtkCellRendererPixbuf--pixbuf" title='The "pixbuf" property'>pixbuf</a>" <a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>* : Read / Write
68
68
"<a class="link" href="GtkCellRendererPixbuf.html#GtkCellRendererPixbuf--pixbuf-expander-closed" title='The "pixbuf-expander-closed" property'>pixbuf-expander-closed</a>" <a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>* : Read / Write
69
69
"<a class="link" href="GtkCellRendererPixbuf.html#GtkCellRendererPixbuf--pixbuf-expander-open" title='The "pixbuf-expander-open" property'>pixbuf-expander-open</a>" <a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>* : Read / Write
70
"<a class="link" href="GtkCellRendererPixbuf.html#GtkCellRendererPixbuf--stock-detail" title='The "stock-detail" property'>stock-detail</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write
71
"<a class="link" href="GtkCellRendererPixbuf.html#GtkCellRendererPixbuf--stock-id" title='The "stock-id" property'>stock-id</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write
72
"<a class="link" href="GtkCellRendererPixbuf.html#GtkCellRendererPixbuf--stock-size" title='The "stock-size" property'>stock-size</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> : Read / Write
70
"<a class="link" href="GtkCellRendererPixbuf.html#GtkCellRendererPixbuf--stock-detail" title='The "stock-detail" property'>stock-detail</a>" <span class="type">gchar</span>* : Read / Write
71
"<a class="link" href="GtkCellRendererPixbuf.html#GtkCellRendererPixbuf--stock-id" title='The "stock-id" property'>stock-id</a>" <span class="type">gchar</span>* : Read / Write
72
"<a class="link" href="GtkCellRendererPixbuf.html#GtkCellRendererPixbuf--stock-size" title='The "stock-size" property'>stock-size</a>" <span class="type">guint</span> : Read / Write
75
75
<div class="refsect1">
84
84
To support the tree view, <a class="link" href="GtkCellRendererPixbuf.html" title="GtkCellRendererPixbuf"><span class="type">GtkCellRendererPixbuf</span></a> also supports rendering two alternative
85
85
pixbufs, when the <a class="link" href="GtkCellRenderer.html#GtkCellRenderer--is-expander" title='The "is-expander" property'>is-expander</a> property
86
is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>. If the <a class="link" href="GtkCellRenderer.html#GtkCellRenderer--is-expanded" title='The "is-expanded" property'>is-expanded</a> property
87
is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> and the
86
is <code class="literal">TRUE</code>. If the <a class="link" href="GtkCellRenderer.html#GtkCellRenderer--is-expanded" title='The "is-expanded" property'>is-expanded</a> property
87
is <code class="literal">TRUE</code> and the
88
88
<a class="link" href="GtkCellRendererPixbuf.html#GtkCellRendererPixbuf--pixbuf-expander-open" title='The "pixbuf-expander-open" property'>pixbuf-expander-open</a>
89
89
property is set to a pixbuf, it renders that pixbuf, if the
90
<a class="link" href="GtkCellRenderer.html#GtkCellRenderer--is-expanded" title='The "is-expanded" property'>is-expanded</a> property is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> and
90
<a class="link" href="GtkCellRenderer.html#GtkCellRenderer--is-expanded" title='The "is-expanded" property'>is-expanded</a> property is <code class="literal">FALSE</code> and
92
92
<a class="link" href="GtkCellRendererPixbuf.html#GtkCellRendererPixbuf--pixbuf-expander-closed" title='The "pixbuf-expander-closed" property'>pixbuf-expander-closed</a>
93
93
property is set to a pixbuf, it renders that one.
109
109
Creates a new <a class="link" href="GtkCellRendererPixbuf.html" title="GtkCellRendererPixbuf"><span class="type">GtkCellRendererPixbuf</span></a>. Adjust rendering
110
110
parameters using object properties. Object properties can be set
111
globally (with <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-set"><code class="function">g_object_set()</code></a>). Also, with <a class="link" href="GtkTreeViewColumn.html" title="GtkTreeViewColumn"><span class="type">GtkTreeViewColumn</span></a>, you
111
globally (with <code class="function">g_object_set()</code>). Also, with <a class="link" href="GtkTreeViewColumn.html" title="GtkTreeViewColumn"><span class="type">GtkTreeViewColumn</span></a>, you
112
112
can bind a property to a value in a <a class="link" href="GtkTreeModel.html" title="GtkTreeModel"><span class="type">GtkTreeModel</span></a>. For example, you
113
113
can bind the "pixbuf" property on the cell renderer to a pixbuf value
114
114
in the model, thus rendering a different image in each row of the
127
127
<a name="GtkCellRendererPixbuf.property-details"></a><h2>Property Details</h2>
128
128
<div class="refsect2">
129
129
<a name="GtkCellRendererPixbuf--follow-state"></a><h3>The <code class="literal">"follow-state"</code> property</h3>
130
<pre class="programlisting"> "follow-state" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write</pre>
130
<pre class="programlisting"> "follow-state" <span class="type">gboolean</span> : Read / Write</pre>
132
132
Specifies whether the rendered pixbuf should be colorized
133
133
according to the <a class="link" href="GtkCellRenderer.html#GtkCellRendererState" title="enum GtkCellRendererState"><span class="type">GtkCellRendererState</span></a>.
139
139
<div class="refsect2">
140
140
<a name="GtkCellRendererPixbuf--gicon"></a><h3>The <code class="literal">"gicon"</code> property</h3>
141
<pre class="programlisting"> "gicon" <a href="http://library.gnome.org/devel/gio/unstable/GIcon.html"><span class="type">GIcon</span></a>* : Read / Write</pre>
141
<pre class="programlisting"> "gicon" <span class="type">GIcon</span>* : Read / Write</pre>
143
143
The GIcon representing the icon to display.
144
144
If the icon theme is changed, the image will be updated
150
150
<div class="refsect2">
151
151
<a name="GtkCellRendererPixbuf--icon-name"></a><h3>The <code class="literal">"icon-name"</code> property</h3>
152
<pre class="programlisting"> "icon-name" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write</pre>
152
<pre class="programlisting"> "icon-name" <span class="type">gchar</span>* : Read / Write</pre>
154
154
The name of the themed icon to display.
155
155
This property only has an effect if not overridden by "stock_id"
180
180
<div class="refsect2">
181
181
<a name="GtkCellRendererPixbuf--stock-detail"></a><h3>The <code class="literal">"stock-detail"</code> property</h3>
182
<pre class="programlisting"> "stock-detail" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write</pre>
182
<pre class="programlisting"> "stock-detail" <span class="type">gchar</span>* : Read / Write</pre>
183
183
<p>Render detail to pass to the theme engine.</p>
184
184
<p>Default value: NULL</p>
187
187
<div class="refsect2">
188
188
<a name="GtkCellRendererPixbuf--stock-id"></a><h3>The <code class="literal">"stock-id"</code> property</h3>
189
<pre class="programlisting"> "stock-id" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write</pre>
189
<pre class="programlisting"> "stock-id" <span class="type">gchar</span>* : Read / Write</pre>
190
190
<p>The stock ID of the stock icon to render.</p>
191
191
<p>Default value: NULL</p>
194
194
<div class="refsect2">
195
195
<a name="GtkCellRendererPixbuf--stock-size"></a><h3>The <code class="literal">"stock-size"</code> property</h3>
196
<pre class="programlisting"> "stock-size" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> : Read / Write</pre>
196
<pre class="programlisting"> "stock-size" <span class="type">guint</span> : Read / Write</pre>
197
197
<p>The GtkIconSize value that specifies the size of the rendered icon.</p>
198
198
<p>Default value: 1</p>