~ubuntu-branches/debian/experimental/gtk+2.0/experimental

« back to all changes in this revision

Viewing changes to docs/reference/gtk/html/GtkCellRendererPixbuf.html

  • Committer: Package Import Robot
  • Author(s): Josselin Mouette
  • Date: 2011-09-02 17:17:47 UTC
  • mto: (72.4.15 sid)
  • mto: This revision was merged to the branch mainline in revision 102.
  • Revision ID: package-import@ubuntu.com-20110902171747-i8dr3czswn2sk7tu
Tags: upstream-2.24.6
ImportĀ upstreamĀ versionĀ 2.24.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
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>
 
54
  GObject
 
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
73
73
</pre>
74
74
</div>
75
75
<div class="refsect1">
83
83
<p>
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
91
91
the
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.
108
108
<p>
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>
131
131
<p>
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>.
138
138
<hr>
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>
142
142
<p>
143
143
The GIcon representing the icon to display.
144
144
If the icon theme is changed, the image will be updated
149
149
<hr>
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>
153
153
<p>
154
154
The name of the themed icon to display.
155
155
This property only has an effect if not overridden by "stock_id"
179
179
<hr>
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>
185
185
</div>
186
186
<hr>
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>
192
192
</div>
193
193
<hr>
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>
199
199
</div>