49
49
#include <libxfce4panel/libxfce4panel.h>
51
51
<a class="link" href="XfcePanelImage.html#XfcePanelImage-struct" title="XfcePanelImage">XfcePanelImage</a>;
52
<span class="returnvalue">GtkWidget</span> * <a class="link" href="XfcePanelImage.html#xfce-panel-image-new" title="xfce_panel_image_new ()">xfce_panel_image_new</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
53
<span class="returnvalue">GtkWidget</span> * <a class="link" href="XfcePanelImage.html#xfce-panel-image-new-from-pixbuf" title="xfce_panel_image_new_from_pixbuf ()">xfce_panel_image_new_from_pixbuf</a> (<em class="parameter"><code><span class="type">GdkPixbuf</span> *pixbuf</code></em>);
54
<span class="returnvalue">GtkWidget</span> * <a class="link" href="XfcePanelImage.html#xfce-panel-image-new-from-source" title="xfce_panel_image_new_from_source ()">xfce_panel_image_new_from_source</a> (<em class="parameter"><code>const <span class="type">gchar</span> *source</code></em>);
52
<a href="http://developer.gnome.org/gtk2/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * <a class="link" href="XfcePanelImage.html#xfce-panel-image-new" title="xfce_panel_image_new ()">xfce_panel_image_new</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
53
<a href="http://developer.gnome.org/gtk2/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * <a class="link" href="XfcePanelImage.html#xfce-panel-image-new-from-pixbuf" title="xfce_panel_image_new_from_pixbuf ()">xfce_panel_image_new_from_pixbuf</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);
54
<a href="http://developer.gnome.org/gtk2/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * <a class="link" href="XfcePanelImage.html#xfce-panel-image-new-from-source" title="xfce_panel_image_new_from_source ()">xfce_panel_image_new_from_source</a> (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *source</code></em>);
55
55
<span class="returnvalue">void</span> <a class="link" href="XfcePanelImage.html#xfce-panel-image-set-from-pixbuf" title="xfce_panel_image_set_from_pixbuf ()">xfce_panel_image_set_from_pixbuf</a> (<em class="parameter"><code><a class="link" href="XfcePanelImage.html" title="XfcePanelImage"><span class="type">XfcePanelImage</span></a> *image</code></em>,
56
<em class="parameter"><code><span class="type">GdkPixbuf</span> *pixbuf</code></em>);
56
<em class="parameter"><code><a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);
57
57
<span class="returnvalue">void</span> <a class="link" href="XfcePanelImage.html#xfce-panel-image-set-from-source" title="xfce_panel_image_set_from_source ()">xfce_panel_image_set_from_source</a> (<em class="parameter"><code><a class="link" href="XfcePanelImage.html" title="XfcePanelImage"><span class="type">XfcePanelImage</span></a> *image</code></em>,
58
<em class="parameter"><code>const <span class="type">gchar</span> *source</code></em>);
58
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *source</code></em>);
59
59
<span class="returnvalue">void</span> <a class="link" href="XfcePanelImage.html#xfce-panel-image-set-size" title="xfce_panel_image_set_size ()">xfce_panel_image_set_size</a> (<em class="parameter"><code><a class="link" href="XfcePanelImage.html" title="XfcePanelImage"><span class="type">XfcePanelImage</span></a> *image</code></em>,
60
<em class="parameter"><code><span class="type">gint</span> size</code></em>);
61
<span class="returnvalue">gint</span> <a class="link" href="XfcePanelImage.html#xfce-panel-image-get-size" title="xfce_panel_image_get_size ()">xfce_panel_image_get_size</a> (<em class="parameter"><code><a class="link" href="XfcePanelImage.html" title="XfcePanelImage"><span class="type">XfcePanelImage</span></a> *image</code></em>);
60
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> size</code></em>);
61
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a> <a class="link" href="XfcePanelImage.html#xfce-panel-image-get-size" title="xfce_panel_image_get_size ()">xfce_panel_image_get_size</a> (<em class="parameter"><code><a class="link" href="XfcePanelImage.html" title="XfcePanelImage"><span class="type">XfcePanelImage</span></a> *image</code></em>);
62
62
<span class="returnvalue">void</span> <a class="link" href="XfcePanelImage.html#xfce-panel-image-clear" title="xfce_panel_image_clear ()">xfce_panel_image_clear</a> (<em class="parameter"><code><a class="link" href="XfcePanelImage.html" title="XfcePanelImage"><span class="type">XfcePanelImage</span></a> *image</code></em>);
65
65
<div class="refsect1">
66
66
<a name="XfcePanelImage.object-hierarchy"></a><h2>Object Hierarchy</h2>
67
67
<pre class="synopsis">
69
+----GInitiallyUnowned
68
<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
69
+----<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a>
70
+----<a href="../gtk2/GtkObject.html">GtkObject</a>
71
+----<a href="http://developer.gnome.org/gtk2/GtkWidget.html">GtkWidget</a>
72
72
+----XfcePanelImage
76
76
<a name="XfcePanelImage.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
78
78
XfcePanelImage implements
79
AtkImplementorIface and GtkBuildable.</p>
79
AtkImplementorIface and <a href="http://developer.gnome.org/gtk2/GtkBuildable.html">GtkBuildable</a>.</p>
81
81
<div class="refsect1">
82
82
<a name="XfcePanelImage.properties"></a><h2>Properties</h2>
83
83
<pre class="synopsis">
84
"<a class="link" href="XfcePanelImage.html#XfcePanelImage--pixbuf" title='The "pixbuf" property'>pixbuf</a>" <span class="type">GdkPixbuf</span>* : Read / Write
85
"<a class="link" href="XfcePanelImage.html#XfcePanelImage--size" title='The "size" property'>size</a>" <span class="type">gint</span> : Read / Write
86
"<a class="link" href="XfcePanelImage.html#XfcePanelImage--source" title='The "source" property'>source</a>" <span class="type">gchar</span>* : Read / Write
84
"<a class="link" href="XfcePanelImage.html#XfcePanelImage--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
85
"<a class="link" href="XfcePanelImage.html#XfcePanelImage--size" title='The "size" property'>size</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write
86
"<a class="link" href="XfcePanelImage.html#XfcePanelImage--source" title='The "source" property'>source</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write
89
89
<div class="refsect1">
90
90
<a name="XfcePanelImage.style-properties"></a><h2>Style Properties</h2>
91
91
<pre class="synopsis">
92
"<a class="link" href="XfcePanelImage.html#XfcePanelImage--s-force-gtk-icon-sizes" title='The "force-gtk-icon-sizes" style property'>force-gtk-icon-sizes</a>" <span class="type">gboolean</span> : Read / Write
92
"<a class="link" href="XfcePanelImage.html#XfcePanelImage--s-force-gtk-icon-sizes" title='The "force-gtk-icon-sizes" style property'>force-gtk-icon-sizes</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write
95
95
<div class="refsect1">
123
123
<div class="refsect2">
124
124
<a name="xfce-panel-image-new"></a><h3>xfce_panel_image_new ()</h3>
125
<pre class="programlisting"><span class="returnvalue">GtkWidget</span> * xfce_panel_image_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
125
<pre class="programlisting"><a href="http://developer.gnome.org/gtk2/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * xfce_panel_image_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
127
127
Creates a new empty <a class="link" href="XfcePanelImage.html" title="XfcePanelImage"><span class="type">XfcePanelImage</span></a> widget.
142
142
<div class="refsect2">
143
143
<a name="xfce-panel-image-new-from-pixbuf"></a><h3>xfce_panel_image_new_from_pixbuf ()</h3>
144
<pre class="programlisting"><span class="returnvalue">GtkWidget</span> * xfce_panel_image_new_from_pixbuf (<em class="parameter"><code><span class="type">GdkPixbuf</span> *pixbuf</code></em>);</pre>
144
<pre class="programlisting"><a href="http://developer.gnome.org/gtk2/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * xfce_panel_image_new_from_pixbuf (<em class="parameter"><code><a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);</pre>
146
146
Creates a new <a class="link" href="XfcePanelImage.html" title="XfcePanelImage"><span class="type">XfcePanelImage</span></a> displaying <em class="parameter"><code>pixbuf</code></em>. <a class="link" href="XfcePanelImage.html" title="XfcePanelImage"><span class="type">XfcePanelImage</span></a>
147
147
will add its own reference rather than adopting yours. You don't
159
159
<td><p><span class="term"><em class="parameter"><code>pixbuf</code></em> :</span></p></td>
160
<td>a <span class="type">GdkPixbuf</span>, or <code class="literal">NULL</code>.</td>
160
<td>a <a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</td>
163
163
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
171
171
<div class="refsect2">
172
172
<a name="xfce-panel-image-new-from-source"></a><h3>xfce_panel_image_new_from_source ()</h3>
173
<pre class="programlisting"><span class="returnvalue">GtkWidget</span> * xfce_panel_image_new_from_source (<em class="parameter"><code>const <span class="type">gchar</span> *source</code></em>);</pre>
173
<pre class="programlisting"><a href="http://developer.gnome.org/gtk2/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * xfce_panel_image_new_from_source (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *source</code></em>);</pre>
175
175
Creates a new <a class="link" href="XfcePanelImage.html" title="XfcePanelImage"><span class="type">XfcePanelImage</span></a> displaying <em class="parameter"><code>source</code></em>. <a class="link" href="XfcePanelImage.html" title="XfcePanelImage"><span class="type">XfcePanelImage</span></a>
176
176
will detect if <em class="parameter"><code>source</code></em> points to an absolute file or it and icon-name.
188
188
<td><p><span class="term"><em class="parameter"><code>source</code></em> :</span></p></td>
189
189
<td>source of the image. This can be an absolute path or
190
an icon-name or <code class="literal">NULL</code>.</td>
190
an icon-name or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</td>
193
193
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
201
201
<div class="refsect2">
202
202
<a name="xfce-panel-image-set-from-pixbuf"></a><h3>xfce_panel_image_set_from_pixbuf ()</h3>
203
203
<pre class="programlisting"><span class="returnvalue">void</span> xfce_panel_image_set_from_pixbuf (<em class="parameter"><code><a class="link" href="XfcePanelImage.html" title="XfcePanelImage"><span class="type">XfcePanelImage</span></a> *image</code></em>,
204
<em class="parameter"><code><span class="type">GdkPixbuf</span> *pixbuf</code></em>);</pre>
204
<em class="parameter"><code><a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);</pre>
206
206
See <a class="link" href="XfcePanelImage.html#xfce-panel-image-new-from-pixbuf" title="xfce_panel_image_new_from_pixbuf ()"><code class="function">xfce_panel_image_new_from_pixbuf()</code></a> for details.
219
219
<td><p><span class="term"><em class="parameter"><code>pixbuf</code></em> :</span></p></td>
220
<td>a <span class="type">GdkPixbuf</span>, or <code class="literal">NULL</code>.</td>
220
<td>a <a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</td>
227
227
<div class="refsect2">
228
228
<a name="xfce-panel-image-set-from-source"></a><h3>xfce_panel_image_set_from_source ()</h3>
229
229
<pre class="programlisting"><span class="returnvalue">void</span> xfce_panel_image_set_from_source (<em class="parameter"><code><a class="link" href="XfcePanelImage.html" title="XfcePanelImage"><span class="type">XfcePanelImage</span></a> *image</code></em>,
230
<em class="parameter"><code>const <span class="type">gchar</span> *source</code></em>);</pre>
230
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *source</code></em>);</pre>
232
232
See <a class="link" href="XfcePanelImage.html#xfce-panel-image-new-from-source" title="xfce_panel_image_new_from_source ()"><code class="function">xfce_panel_image_new_from_source()</code></a> for details.
254
254
<div class="refsect2">
255
255
<a name="xfce-panel-image-set-size"></a><h3>xfce_panel_image_set_size ()</h3>
256
256
<pre class="programlisting"><span class="returnvalue">void</span> xfce_panel_image_set_size (<em class="parameter"><code><a class="link" href="XfcePanelImage.html" title="XfcePanelImage"><span class="type">XfcePanelImage</span></a> *image</code></em>,
257
<em class="parameter"><code><span class="type">gint</span> size</code></em>);</pre>
257
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> size</code></em>);</pre>
259
259
This will force an image size, instead of looking at the allocation
260
260
size, see introduction for more details. You can set a <em class="parameter"><code>size</code></em> of
282
282
<div class="refsect2">
283
283
<a name="xfce-panel-image-get-size"></a><h3>xfce_panel_image_get_size ()</h3>
284
<pre class="programlisting"><span class="returnvalue">gint</span> xfce_panel_image_get_size (<em class="parameter"><code><a class="link" href="XfcePanelImage.html" title="XfcePanelImage"><span class="type">XfcePanelImage</span></a> *image</code></em>);</pre>
284
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a> xfce_panel_image_get_size (<em class="parameter"><code><a class="link" href="XfcePanelImage.html" title="XfcePanelImage"><span class="type">XfcePanelImage</span></a> *image</code></em>);</pre>
286
286
The size of the image, set by <a class="link" href="XfcePanelImage.html#xfce-panel-image-set-size" title="xfce_panel_image_set_size ()"><code class="function">xfce_panel_image_set_size()</code></a> or -1
287
287
if no size is forced and the image is scaled to the allocation size.
328
328
<a name="XfcePanelImage.property-details"></a><h2>Property Details</h2>
329
329
<div class="refsect2">
330
330
<a name="XfcePanelImage--pixbuf"></a><h3>The <code class="literal">"pixbuf"</code> property</h3>
331
<pre class="programlisting"> "pixbuf" <span class="type">GdkPixbuf</span>* : Read / Write</pre>
331
<pre class="programlisting"> "pixbuf" <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</pre>
332
332
<p>Pixbuf image.</p>
335
335
<div class="refsect2">
336
336
<a name="XfcePanelImage--size"></a><h3>The <code class="literal">"size"</code> property</h3>
337
<pre class="programlisting"> "size" <span class="type">gint</span> : Read / Write</pre>
337
<pre class="programlisting"> "size" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write</pre>
338
338
<p>Pixel size of the image.</p>
339
339
<p>Allowed values: [-1,128]</p>
340
340
<p>Default value: -1</p>
351
351
<a name="XfcePanelImage.style-property-details"></a><h2>Style Property Details</h2>
352
352
<div class="refsect2">
353
353
<a name="XfcePanelImage--s-force-gtk-icon-sizes"></a><h3>The <code class="literal">"force-gtk-icon-sizes"</code> style property</h3>
354
<pre class="programlisting"> "force-gtk-icon-sizes" <span class="type">gboolean</span> : Read / Write</pre>
354
<pre class="programlisting"> "force-gtk-icon-sizes" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write</pre>
355
355
<p>Force the image to fix to GtkIconSizes.</p>
356
356
<p>Default value: FALSE</p>