~ubuntu-branches/ubuntu/vivid/xfce4-panel/vivid

« back to all changes in this revision

Viewing changes to docs/references/html/XfcePanelImage.html

  • Committer: Package Import Robot
  • Author(s): Jackson Doak
  • Date: 2014-06-23 08:06:22 UTC
  • mfrom: (1.1.38) (4.1.8 experimental)
  • Revision ID: package-import@ubuntu.com-20140623080622-o41oksze07m5wobg
Tags: 4.11.1-0ubuntu1
* New upstream release
* Merge from Debian unstable, remaining changes:
  - debian/patches:
    + xubuntu_migrate-tasklist-separator.patch: added, try to be smart and
      work around the non-expandable tasklist plugin from 4.10 by setting
      as expandable the separator next to it (should work with the default
      panel layouts from Xubuntu, Mythbuntu and UbuntuStudio).
  - Use dh-autoreconf to update libtool for ppc64el.
  - debian/xfce4-panel.install: include both (gtk2 and gtk3) wrappers.
  - debian/rules: pass --enable-gtk3 to configure script.
  - debian/control: add b-dep on libgtk-3-dev.
  - debian/xfce4-panel.shlibs: updated for the gtk3 library.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
<html>
3
3
<head>
4
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
 
<title>XfcePanelImage</title>
 
5
<title>Libxfce4panel Reference Manual: XfcePanelImage</title>
6
6
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
7
7
<link rel="home" href="index.html" title="Libxfce4panel Reference Manual">
8
8
<link rel="up" href="libxfce4panel-widgets.html" title="Part III. Additional Widgets">
9
9
<link rel="prev" href="XfceHVBox.html" title="XfceHVBox">
10
10
<link rel="next" href="libxfce4panel-miscelleanous.html" title="Part IV. Miscelleanous">
11
 
<meta name="generator" content="GTK-Doc V1.19 (XML mode)">
 
11
<meta name="generator" content="GTK-Doc V1.20 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
13
13
</head>
14
14
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15
 
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
16
 
<tr valign="middle">
17
 
<td><a accesskey="p" href="XfceHVBox.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18
 
<td><a accesskey="u" href="libxfce4panel-widgets.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
19
 
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
20
 
<th width="100%" align="center">Libxfce4panel Reference Manual</th>
21
 
<td><a accesskey="n" href="libxfce4panel-miscelleanous.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
22
 
</tr>
23
 
<tr><td colspan="5" class="shortcuts">
24
 
<a href="#XfcePanelImage.synopsis" class="shortcut">Top</a>
25
 
                   | 
26
 
                  <a href="#XfcePanelImage.description" class="shortcut">Description</a>
27
 
                   | 
28
 
                  <a href="#XfcePanelImage.object-hierarchy" class="shortcut">Object Hierarchy</a>
29
 
                   | 
30
 
                  <a href="#XfcePanelImage.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
31
 
                   | 
32
 
                  <a href="#XfcePanelImage.properties" class="shortcut">Properties</a>
33
 
                   | 
34
 
                  <a href="#XfcePanelImage.style-properties" class="shortcut">Style Properties</a>
35
 
</td></tr>
36
 
</table>
 
15
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="10"><tr valign="middle">
 
16
<td width="100%" align="left" class="shortcuts">
 
17
<a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span> 
 
18
                  <a href="#XfcePanelImage.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span> 
 
19
                  <a href="#XfcePanelImage.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_interfaces"> <span class="dim">|</span> 
 
20
                  <a href="#XfcePanelImage.implemented-interfaces" class="shortcut">Implemented Interfaces</a></span><span id="nav_properties"> <span class="dim">|</span> 
 
21
                  <a href="#XfcePanelImage.properties" class="shortcut">Properties</a></span><span id="nav_style_properties"> <span class="dim">|</span> 
 
22
                  <a href="#XfcePanelImage.style-properties" class="shortcut">Style Properties</a></span>
 
23
</td>
 
24
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
 
25
<td><a accesskey="u" href="libxfce4panel-widgets.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
 
26
<td><a accesskey="p" href="XfceHVBox.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
 
27
<td><a accesskey="n" href="libxfce4panel-miscelleanous.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
 
28
</tr></table>
37
29
<div class="refentry">
38
30
<a name="XfcePanelImage"></a><div class="titlepage"></div>
39
31
<div class="refnamediv"><table width="100%"><tr>
41
33
<h2><span class="refentrytitle"><a name="XfcePanelImage.top_of_page"></a>XfcePanelImage</span></h2>
42
34
<p>XfcePanelImage — Scalable image suitable for panel plugins</p>
43
35
</td>
44
 
<td valign="top" align="right"></td>
 
36
<td class="gallery_image" valign="top" align="right"></td>
45
37
</tr></table></div>
46
 
<div class="refsynopsisdiv">
47
 
<a name="XfcePanelImage.synopsis"></a><h2>Synopsis</h2>
48
 
<pre class="synopsis">
49
 
#include &lt;libxfce4panel/libxfce4panel.h&gt;
50
 
 
51
 
                    <a class="link" href="XfcePanelImage.html#XfcePanelImage-struct" title="XfcePanelImage">XfcePanelImage</a>;
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
 
<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><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
 
<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 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *source</code></em>);
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><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
 
<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>);
63
 
</pre>
 
38
<div class="refsect1">
 
39
<a name="XfcePanelImage.functions"></a><h2>Functions</h2>
 
40
<div class="informaltable"><table width="100%" border="0">
 
41
<colgroup>
 
42
<col width="150px" class="functions_return">
 
43
<col class="functions_name">
 
44
</colgroup>
 
45
<tbody>
 
46
<tr>
 
47
<td class="function_type">
 
48
<a href="http://library.gnome.org/devel/gtk3/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> *
 
49
</td>
 
50
<td class="function_name">
 
51
<a class="link" href="XfcePanelImage.html#xfce-panel-image-new" title="xfce_panel_image_new ()">xfce_panel_image_new</a> <span class="c_punctuation">()</span>
 
52
</td>
 
53
</tr>
 
54
<tr>
 
55
<td class="function_type">
 
56
<a href="http://library.gnome.org/devel/gtk3/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> *
 
57
</td>
 
58
<td class="function_name">
 
59
<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> <span class="c_punctuation">()</span>
 
60
</td>
 
61
</tr>
 
62
<tr>
 
63
<td class="function_type">
 
64
<a href="http://library.gnome.org/devel/gtk3/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> *
 
65
</td>
 
66
<td class="function_name">
 
67
<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> <span class="c_punctuation">()</span>
 
68
</td>
 
69
</tr>
 
70
<tr>
 
71
<td class="function_type">
 
72
<span class="returnvalue">void</span>
 
73
</td>
 
74
<td class="function_name">
 
75
<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> <span class="c_punctuation">()</span>
 
76
</td>
 
77
</tr>
 
78
<tr>
 
79
<td class="function_type">
 
80
<span class="returnvalue">void</span>
 
81
</td>
 
82
<td class="function_name">
 
83
<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> <span class="c_punctuation">()</span>
 
84
</td>
 
85
</tr>
 
86
<tr>
 
87
<td class="function_type">
 
88
<span class="returnvalue">void</span>
 
89
</td>
 
90
<td class="function_name">
 
91
<a class="link" href="XfcePanelImage.html#xfce-panel-image-set-size" title="xfce_panel_image_set_size ()">xfce_panel_image_set_size</a> <span class="c_punctuation">()</span>
 
92
</td>
 
93
</tr>
 
94
<tr>
 
95
<td class="function_type">
 
96
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
 
97
</td>
 
98
<td class="function_name">
 
99
<a class="link" href="XfcePanelImage.html#xfce-panel-image-get-size" title="xfce_panel_image_get_size ()">xfce_panel_image_get_size</a> <span class="c_punctuation">()</span>
 
100
</td>
 
101
</tr>
 
102
<tr>
 
103
<td class="function_type">
 
104
<span class="returnvalue">void</span>
 
105
</td>
 
106
<td class="function_name">
 
107
<a class="link" href="XfcePanelImage.html#xfce-panel-image-clear" title="xfce_panel_image_clear ()">xfce_panel_image_clear</a> <span class="c_punctuation">()</span>
 
108
</td>
 
109
</tr>
 
110
</tbody>
 
111
</table></div>
 
112
</div>
 
113
<div class="refsect1">
 
114
<a name="XfcePanelImage.properties"></a><h2>Properties</h2>
 
115
<div class="informaltable"><table border="0">
 
116
<colgroup>
 
117
<col width="150px" class="properties_type">
 
118
<col width="300px" class="properties_name">
 
119
<col width="200px" class="properties_flags">
 
120
</colgroup>
 
121
<tbody>
 
122
<tr>
 
123
<td class="property_type">
 
124
<a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *</td>
 
125
<td class="property_name"><a class="link" href="XfcePanelImage.html#XfcePanelImage--pixbuf" title="The “pixbuf” property">pixbuf</a></td>
 
126
<td class="property_flags">Read / Write</td>
 
127
</tr>
 
128
<tr>
 
129
<td class="property_type"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></td>
 
130
<td class="property_name"><a class="link" href="XfcePanelImage.html#XfcePanelImage--size" title="The “size” property">size</a></td>
 
131
<td class="property_flags">Read / Write</td>
 
132
</tr>
 
133
<tr>
 
134
<td class="property_type">
 
135
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</td>
 
136
<td class="property_name"><a class="link" href="XfcePanelImage.html#XfcePanelImage--source" title="The “source” property">source</a></td>
 
137
<td class="property_flags">Read / Write</td>
 
138
</tr>
 
139
</tbody>
 
140
</table></div>
 
141
</div>
 
142
<div class="refsect1">
 
143
<a name="XfcePanelImage.style-properties"></a><h2>Style Properties</h2>
 
144
<div class="informaltable"><table border="0">
 
145
<colgroup>
 
146
<col width="150px" class="style_properties_type">
 
147
<col width="300px" class="style_properties_name">
 
148
<col width="200px" class="style_properties_flags">
 
149
</colgroup>
 
150
<tbody><tr>
 
151
<td class="property_type"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></td>
 
152
<td class="property_name"><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></td>
 
153
<td class="property_flags">Read / Write</td>
 
154
</tr></tbody>
 
155
</table></div>
 
156
</div>
 
157
<div class="refsect1">
 
158
<a name="XfcePanelImage.other"></a><h2>Types and Values</h2>
 
159
<div class="informaltable"><table width="100%" border="0">
 
160
<colgroup>
 
161
<col width="150px" class="name">
 
162
<col class="description">
 
163
</colgroup>
 
164
<tbody><tr>
 
165
<td class="datatype_keyword">struct</td>
 
166
<td class="function_name"><a class="link" href="XfcePanelImage.html#XfcePanelImage-struct" title="struct XfcePanelImage">XfcePanelImage</a></td>
 
167
</tr></tbody>
 
168
</table></div>
64
169
</div>
65
170
<div class="refsect1">
66
171
<a name="XfcePanelImage.object-hierarchy"></a><h2>Object Hierarchy</h2>
67
 
<pre class="synopsis">
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
 
                     +----XfcePanelImage
 
172
<pre class="screen">    <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
 
173
    <span class="lineart">╰──</span> <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a>
 
174
        <span class="lineart">╰──</span> <a href="http://library.gnome.org/devel/gtk3/GtkObject.html">GtkObject</a>
 
175
            <span class="lineart">╰──</span> <a href="http://library.gnome.org/devel/gtk3/GtkWidget.html">GtkWidget</a>
 
176
                <span class="lineart">╰──</span> XfcePanelImage
73
177
</pre>
74
178
</div>
75
179
<div class="refsect1">
76
180
<a name="XfcePanelImage.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
77
181
<p>
78
182
XfcePanelImage implements
79
 
 AtkImplementorIface and  <a href="http://developer.gnome.org/gtk2/GtkBuildable.html">GtkBuildable</a>.</p>
80
 
</div>
81
 
<div class="refsect1">
82
 
<a name="XfcePanelImage.properties"></a><h2>Properties</h2>
83
 
<pre class="synopsis">
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
87
 
</pre>
88
 
</div>
89
 
<div class="refsect1">
90
 
<a name="XfcePanelImage.style-properties"></a><h2>Style Properties</h2>
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>"     <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a>              : Read / Write
 
183
 AtkImplementorIface and  <a href="http://library.gnome.org/devel/gtk3/GtkBuildable.html">GtkBuildable</a>.</p>
 
184
</div>
 
185
<div class="refsect1">
 
186
<a name="XfcePanelImage.includes"></a><h2>Includes</h2>
 
187
<pre class="synopsis">#include &lt;libxfce4panel/libxfce4panel.h&gt;
93
188
</pre>
94
189
</div>
95
190
<div class="refsect1">
96
191
<a name="XfcePanelImage.description"></a><h2>Description</h2>
97
 
<p>
98
 
The <a class="link" href="XfcePanelImage.html" title="XfcePanelImage"><span class="type">XfcePanelImage</span></a> is a widgets suitable for for example panel
 
192
<p>The <a class="link" href="XfcePanelImage.html" title="XfcePanelImage"><span class="type">XfcePanelImage</span></a> is a widgets suitable for for example panel
99
193
buttons where the developer does not exacly know the size of the
100
 
image (due to theming and user setting).
101
 
</p>
102
 
<p>
103
 
The <a class="link" href="XfcePanelImage.html" title="XfcePanelImage"><span class="type">XfcePanelImage</span></a> widget automatically scales to the allocated
 
194
image (due to theming and user setting).</p>
 
195
<p>The <a class="link" href="XfcePanelImage.html" title="XfcePanelImage"><span class="type">XfcePanelImage</span></a> widget automatically scales to the allocated
104
196
size of the widget. Because of that nature it never requests a size,
105
197
so this will only work if you pack the image in another widget
106
198
that will expand it.
107
 
If you want to force an image size you can use <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>
 
199
If you want to force an image size you can use <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>
108
200
to set a pixel size, in that case the widget will request an fixed size
109
 
which makes it usefull for usage in dialogs.
110
 
</p>
 
201
which makes it usefull for usage in dialogs.</p>
111
202
</div>
112
203
<div class="refsect1">
113
 
<a name="XfcePanelImage.details"></a><h2>Details</h2>
 
204
<a name="XfcePanelImage.functions_details"></a><h2>Functions</h2>
114
205
<div class="refsect2">
115
 
<a name="XfcePanelImage-struct"></a><h3>XfcePanelImage</h3>
116
 
<pre class="programlisting">typedef struct _XfcePanelImage XfcePanelImage;</pre>
117
 
<p>
118
 
This struct contain private data only and should be accessed by
119
 
the functions below.
120
 
</p>
 
206
<a name="xfce-panel-image-new"></a><h3>xfce_panel_image_new ()</h3>
 
207
<pre class="programlisting"><a href="http://library.gnome.org/devel/gtk3/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> *
 
208
xfce_panel_image_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
 
209
<p>Creates a new empty <a class="link" href="XfcePanelImage.html" title="XfcePanelImage"><span class="type">XfcePanelImage</span></a> widget.</p>
 
210
<div class="refsect3">
 
211
<a name="id-1.4.5.11.2.5"></a><h4>Returns</h4>
 
212
<p> a newly created XfcePanelImage widget.</p>
 
213
<p></p>
121
214
</div>
122
 
<hr>
123
 
<div class="refsect2">
124
 
<a name="xfce-panel-image-new"></a><h3>xfce_panel_image_new ()</h3>
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>
126
 
<p>
127
 
Creates a new empty <a class="link" href="XfcePanelImage.html" title="XfcePanelImage"><span class="type">XfcePanelImage</span></a> widget.
128
 
</p>
129
 
<div class="variablelist"><table border="0" class="variablelist">
130
 
<colgroup>
131
 
<col align="left" valign="top">
132
 
<col>
133
 
</colgroup>
134
 
<tbody><tr>
135
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
136
 
<td>a newly created XfcePanelImage widget.</td>
137
 
</tr></tbody>
138
 
</table></div>
139
215
<p class="since">Since 4.8</p>
140
216
</div>
141
217
<hr>
142
218
<div class="refsect2">
143
 
<a name="xfce-panel-image-new-from-pixbuf"></a><h3>xfce_panel_image_new_from_pixbuf ()</h3>
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>
145
 
<p>
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>
 
219
<a name="xfce-panel-image-new-from-pixbuf"></a><h3>xfce_panel_image_new_from_pixbuf ()</h3>
 
220
<pre class="programlisting"><a href="http://library.gnome.org/devel/gtk3/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> *
 
221
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>
 
222
<p>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>
 
223
. <a class="link" href="XfcePanelImage.html" title="XfcePanelImage"><span class="type">XfcePanelImage</span></a>
147
224
will add its own reference rather than adopting yours. You don't
148
225
need to scale the pixbuf to the correct size, the <a class="link" href="XfcePanelImage.html" title="XfcePanelImage"><span class="type">XfcePanelImage</span></a>
149
226
will take care of that based on the allocation of the widget or
150
 
the size set with <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>.
151
 
</p>
152
 
<div class="variablelist"><table border="0" class="variablelist">
 
227
the size set with <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>.</p>
 
228
<div class="refsect3">
 
229
<a name="id-1.4.5.11.3.5"></a><h4>Parameters</h4>
 
230
<div class="informaltable"><table width="100%" border="0">
153
231
<colgroup>
154
 
<col align="left" valign="top">
155
 
<col>
 
232
<col width="150px" class="parameters_name">
 
233
<col class="parameters_description">
 
234
<col width="200px" class="parameters_annotations">
156
235
</colgroup>
157
 
<tbody>
158
 
<tr>
159
 
<td><p><span class="term"><em class="parameter"><code>pixbuf</code></em> :</span></p></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>
161
 
</tr>
162
 
<tr>
163
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
164
 
<td>a newly created XfcePanelImage widget.</td>
165
 
</tr>
166
 
</tbody>
 
236
<tbody><tr>
 
237
<td class="parameter_name"><p>pixbuf</p></td>
 
238
<td class="parameter_description"><p>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>.</p></td>
 
239
<td class="parameter_annotations"> </td>
 
240
</tr></tbody>
167
241
</table></div>
 
242
</div>
 
243
<div class="refsect3">
 
244
<a name="id-1.4.5.11.3.6"></a><h4>Returns</h4>
 
245
<p> a newly created XfcePanelImage widget.</p>
 
246
<p></p>
 
247
</div>
168
248
<p class="since">Since 4.8</p>
169
249
</div>
170
250
<hr>
171
251
<div class="refsect2">
172
 
<a name="xfce-panel-image-new-from-source"></a><h3>xfce_panel_image_new_from_source ()</h3>
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>
174
 
<p>
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
 
will detect if <em class="parameter"><code>source</code></em> points to an absolute file or it and icon-name.
 
252
<a name="xfce-panel-image-new-from-source"></a><h3>xfce_panel_image_new_from_source ()</h3>
 
253
<pre class="programlisting"><a href="http://library.gnome.org/devel/gtk3/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> *
 
254
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>
 
255
<p>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>
 
256
. <a class="link" href="XfcePanelImage.html" title="XfcePanelImage"><span class="type">XfcePanelImage</span></a>
 
257
will detect if <em class="parameter"><code>source</code></em>
 
258
 points to an absolute file or it and icon-name.
177
259
For icon-names it will also look for files in the pixbuf folder or
178
260
strip the extensions, which makes it suitable for usage with icon
179
 
keys in .desktop files.
180
 
</p>
181
 
<div class="variablelist"><table border="0" class="variablelist">
182
 
<colgroup>
183
 
<col align="left" valign="top">
184
 
<col>
185
 
</colgroup>
186
 
<tbody>
187
 
<tr>
188
 
<td><p><span class="term"><em class="parameter"><code>source</code></em> :</span></p></td>
189
 
<td>source of the image. This can be an absolute path or
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>
191
 
</tr>
192
 
<tr>
193
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
194
 
<td>a newly created XfcePanelImage widget.</td>
195
 
</tr>
196
 
</tbody>
197
 
</table></div>
198
 
<p class="since">Since 4.8</p>
199
 
</div>
200
 
<hr>
201
 
<div class="refsect2">
202
 
<a name="xfce-panel-image-set-from-pixbuf"></a><h3>xfce_panel_image_set_from_pixbuf ()</h3>
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><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>
205
 
<p>
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.
207
 
</p>
208
 
<div class="variablelist"><table border="0" class="variablelist">
209
 
<colgroup>
210
 
<col align="left" valign="top">
211
 
<col>
212
 
</colgroup>
213
 
<tbody>
214
 
<tr>
215
 
<td><p><span class="term"><em class="parameter"><code>image</code></em> :</span></p></td>
216
 
<td>an <a class="link" href="XfcePanelImage.html" title="XfcePanelImage"><span class="type">XfcePanelImage</span></a>.</td>
217
 
</tr>
218
 
<tr>
219
 
<td><p><span class="term"><em class="parameter"><code>pixbuf</code></em> :</span></p></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>
221
 
</tr>
222
 
</tbody>
223
 
</table></div>
224
 
<p class="since">Since 4.8</p>
225
 
</div>
226
 
<hr>
227
 
<div class="refsect2">
228
 
<a name="xfce-panel-image-set-from-source"></a><h3>xfce_panel_image_set_from_source ()</h3>
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 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *source</code></em>);</pre>
231
 
<p>
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.
233
 
</p>
234
 
<div class="variablelist"><table border="0" class="variablelist">
235
 
<colgroup>
236
 
<col align="left" valign="top">
237
 
<col>
238
 
</colgroup>
239
 
<tbody>
240
 
<tr>
241
 
<td><p><span class="term"><em class="parameter"><code>image</code></em> :</span></p></td>
242
 
<td>an <a class="link" href="XfcePanelImage.html" title="XfcePanelImage"><span class="type">XfcePanelImage</span></a>.</td>
243
 
</tr>
244
 
<tr>
245
 
<td><p><span class="term"><em class="parameter"><code>source</code></em> :</span></p></td>
246
 
<td>source of the image. This can be an absolute path or
247
 
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>
248
 
</tr>
249
 
</tbody>
250
 
</table></div>
251
 
<p class="since">Since 4.8</p>
252
 
</div>
253
 
<hr>
254
 
<div class="refsect2">
255
 
<a name="xfce-panel-image-set-size"></a><h3>xfce_panel_image_set_size ()</h3>
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><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> size</code></em>);</pre>
258
 
<p>
259
 
This will force an image size, instead of looking at the allocation
260
 
size, see introduction for more details. You can set a <em class="parameter"><code>size</code></em> of
261
 
-1 to turn this off.
262
 
</p>
263
 
<div class="variablelist"><table border="0" class="variablelist">
264
 
<colgroup>
265
 
<col align="left" valign="top">
266
 
<col>
267
 
</colgroup>
268
 
<tbody>
269
 
<tr>
270
 
<td><p><span class="term"><em class="parameter"><code>image</code></em> :</span></p></td>
271
 
<td>an <a class="link" href="XfcePanelImage.html" title="XfcePanelImage"><span class="type">XfcePanelImage</span></a>.</td>
272
 
</tr>
273
 
<tr>
274
 
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
275
 
<td>a new size in pixels.</td>
276
 
</tr>
277
 
</tbody>
278
 
</table></div>
279
 
<p class="since">Since 4.8</p>
280
 
</div>
281
 
<hr>
282
 
<div class="refsect2">
283
 
<a name="xfce-panel-image-get-size"></a><h3>xfce_panel_image_get_size ()</h3>
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>
285
 
<p>
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
 
if no size is forced and the image is scaled to the allocation size.
288
 
</p>
289
 
<div class="variablelist"><table border="0" class="variablelist">
290
 
<colgroup>
291
 
<col align="left" valign="top">
292
 
<col>
293
 
</colgroup>
294
 
<tbody>
295
 
<tr>
296
 
<td><p><span class="term"><em class="parameter"><code>image</code></em> :</span></p></td>
297
 
<td>an <a class="link" href="XfcePanelImage.html" title="XfcePanelImage"><span class="type">XfcePanelImage</span></a>.</td>
298
 
</tr>
299
 
<tr>
300
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
301
 
<td>icon size in pixels of the image or -1.</td>
302
 
</tr>
303
 
</tbody>
304
 
</table></div>
305
 
<p class="since">Since 4.8</p>
306
 
</div>
307
 
<hr>
308
 
<div class="refsect2">
309
 
<a name="xfce-panel-image-clear"></a><h3>xfce_panel_image_clear ()</h3>
310
 
<pre class="programlisting"><span class="returnvalue">void</span>                xfce_panel_image_clear              (<em class="parameter"><code><a class="link" href="XfcePanelImage.html" title="XfcePanelImage"><span class="type">XfcePanelImage</span></a> *image</code></em>);</pre>
311
 
<p>
312
 
Resets the image to be empty.
313
 
</p>
314
 
<div class="variablelist"><table border="0" class="variablelist">
315
 
<colgroup>
316
 
<col align="left" valign="top">
317
 
<col>
318
 
</colgroup>
319
 
<tbody><tr>
320
 
<td><p><span class="term"><em class="parameter"><code>image</code></em> :</span></p></td>
321
 
<td>an <a class="link" href="XfcePanelImage.html" title="XfcePanelImage"><span class="type">XfcePanelImage</span></a>.</td>
322
 
</tr></tbody>
323
 
</table></div>
324
 
<p class="since">Since 4.8</p>
 
261
keys in .desktop files.</p>
 
262
<div class="refsect3">
 
263
<a name="id-1.4.5.11.4.5"></a><h4>Parameters</h4>
 
264
<div class="informaltable"><table width="100%" border="0">
 
265
<colgroup>
 
266
<col width="150px" class="parameters_name">
 
267
<col class="parameters_description">
 
268
<col width="200px" class="parameters_annotations">
 
269
</colgroup>
 
270
<tbody><tr>
 
271
<td class="parameter_name"><p>source</p></td>
 
272
<td class="parameter_description"><p>source of the image. This can be an absolute path or
 
273
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>.</p></td>
 
274
<td class="parameter_annotations"> </td>
 
275
</tr></tbody>
 
276
</table></div>
 
277
</div>
 
278
<div class="refsect3">
 
279
<a name="id-1.4.5.11.4.6"></a><h4>Returns</h4>
 
280
<p> a newly created XfcePanelImage widget.</p>
 
281
<p></p>
 
282
</div>
 
283
<p class="since">Since 4.8</p>
 
284
</div>
 
285
<hr>
 
286
<div class="refsect2">
 
287
<a name="xfce-panel-image-set-from-pixbuf"></a><h3>xfce_panel_image_set_from_pixbuf ()</h3>
 
288
<pre class="programlisting"><span class="returnvalue">void</span>
 
289
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>,
 
290
                                  <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>
 
291
<p>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.</p>
 
292
<div class="refsect3">
 
293
<a name="id-1.4.5.11.5.5"></a><h4>Parameters</h4>
 
294
<div class="informaltable"><table width="100%" border="0">
 
295
<colgroup>
 
296
<col width="150px" class="parameters_name">
 
297
<col class="parameters_description">
 
298
<col width="200px" class="parameters_annotations">
 
299
</colgroup>
 
300
<tbody>
 
301
<tr>
 
302
<td class="parameter_name"><p>image</p></td>
 
303
<td class="parameter_description"><p>an <a class="link" href="XfcePanelImage.html" title="XfcePanelImage"><span class="type">XfcePanelImage</span></a>.</p></td>
 
304
<td class="parameter_annotations"> </td>
 
305
</tr>
 
306
<tr>
 
307
<td class="parameter_name"><p>pixbuf</p></td>
 
308
<td class="parameter_description"><p>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>.</p></td>
 
309
<td class="parameter_annotations"> </td>
 
310
</tr>
 
311
</tbody>
 
312
</table></div>
 
313
</div>
 
314
<p class="since">Since 4.8</p>
 
315
</div>
 
316
<hr>
 
317
<div class="refsect2">
 
318
<a name="xfce-panel-image-set-from-source"></a><h3>xfce_panel_image_set_from_source ()</h3>
 
319
<pre class="programlisting"><span class="returnvalue">void</span>
 
320
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>,
 
321
                                  <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>
 
322
<p>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.</p>
 
323
<div class="refsect3">
 
324
<a name="id-1.4.5.11.6.5"></a><h4>Parameters</h4>
 
325
<div class="informaltable"><table width="100%" border="0">
 
326
<colgroup>
 
327
<col width="150px" class="parameters_name">
 
328
<col class="parameters_description">
 
329
<col width="200px" class="parameters_annotations">
 
330
</colgroup>
 
331
<tbody>
 
332
<tr>
 
333
<td class="parameter_name"><p>image</p></td>
 
334
<td class="parameter_description"><p>an <a class="link" href="XfcePanelImage.html" title="XfcePanelImage"><span class="type">XfcePanelImage</span></a>.</p></td>
 
335
<td class="parameter_annotations"> </td>
 
336
</tr>
 
337
<tr>
 
338
<td class="parameter_name"><p>source</p></td>
 
339
<td class="parameter_description"><p>source of the image. This can be an absolute path or
 
340
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>.</p></td>
 
341
<td class="parameter_annotations"> </td>
 
342
</tr>
 
343
</tbody>
 
344
</table></div>
 
345
</div>
 
346
<p class="since">Since 4.8</p>
 
347
</div>
 
348
<hr>
 
349
<div class="refsect2">
 
350
<a name="xfce-panel-image-set-size"></a><h3>xfce_panel_image_set_size ()</h3>
 
351
<pre class="programlisting"><span class="returnvalue">void</span>
 
352
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>,
 
353
                           <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>
 
354
<p>This will force an image size, instead of looking at the allocation
 
355
size, see introduction for more details. You can set a <em class="parameter"><code>size</code></em>
 
356
 of
 
357
-1 to turn this off.</p>
 
358
<div class="refsect3">
 
359
<a name="id-1.4.5.11.7.5"></a><h4>Parameters</h4>
 
360
<div class="informaltable"><table width="100%" border="0">
 
361
<colgroup>
 
362
<col width="150px" class="parameters_name">
 
363
<col class="parameters_description">
 
364
<col width="200px" class="parameters_annotations">
 
365
</colgroup>
 
366
<tbody>
 
367
<tr>
 
368
<td class="parameter_name"><p>image</p></td>
 
369
<td class="parameter_description"><p>an <a class="link" href="XfcePanelImage.html" title="XfcePanelImage"><span class="type">XfcePanelImage</span></a>.</p></td>
 
370
<td class="parameter_annotations"> </td>
 
371
</tr>
 
372
<tr>
 
373
<td class="parameter_name"><p>size</p></td>
 
374
<td class="parameter_description"><p>a new size in pixels.</p></td>
 
375
<td class="parameter_annotations"> </td>
 
376
</tr>
 
377
</tbody>
 
378
</table></div>
 
379
</div>
 
380
<p class="since">Since 4.8</p>
 
381
</div>
 
382
<hr>
 
383
<div class="refsect2">
 
384
<a name="xfce-panel-image-get-size"></a><h3>xfce_panel_image_get_size ()</h3>
 
385
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
 
386
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>
 
387
<p>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
 
388
if no size is forced and the image is scaled to the allocation size.</p>
 
389
<div class="refsect3">
 
390
<a name="id-1.4.5.11.8.5"></a><h4>Parameters</h4>
 
391
<div class="informaltable"><table width="100%" border="0">
 
392
<colgroup>
 
393
<col width="150px" class="parameters_name">
 
394
<col class="parameters_description">
 
395
<col width="200px" class="parameters_annotations">
 
396
</colgroup>
 
397
<tbody><tr>
 
398
<td class="parameter_name"><p>image</p></td>
 
399
<td class="parameter_description"><p>an <a class="link" href="XfcePanelImage.html" title="XfcePanelImage"><span class="type">XfcePanelImage</span></a>.</p></td>
 
400
<td class="parameter_annotations"> </td>
 
401
</tr></tbody>
 
402
</table></div>
 
403
</div>
 
404
<div class="refsect3">
 
405
<a name="id-1.4.5.11.8.6"></a><h4>Returns</h4>
 
406
<p> icon size in pixels of the image or -1.</p>
 
407
<p></p>
 
408
</div>
 
409
<p class="since">Since 4.8</p>
 
410
</div>
 
411
<hr>
 
412
<div class="refsect2">
 
413
<a name="xfce-panel-image-clear"></a><h3>xfce_panel_image_clear ()</h3>
 
414
<pre class="programlisting"><span class="returnvalue">void</span>
 
415
xfce_panel_image_clear (<em class="parameter"><code><a class="link" href="XfcePanelImage.html" title="XfcePanelImage"><span class="type">XfcePanelImage</span></a> *image</code></em>);</pre>
 
416
<p>Resets the image to be empty.</p>
 
417
<div class="refsect3">
 
418
<a name="id-1.4.5.11.9.5"></a><h4>Parameters</h4>
 
419
<div class="informaltable"><table width="100%" border="0">
 
420
<colgroup>
 
421
<col width="150px" class="parameters_name">
 
422
<col class="parameters_description">
 
423
<col width="200px" class="parameters_annotations">
 
424
</colgroup>
 
425
<tbody><tr>
 
426
<td class="parameter_name"><p>image</p></td>
 
427
<td class="parameter_description"><p>an <a class="link" href="XfcePanelImage.html" title="XfcePanelImage"><span class="type">XfcePanelImage</span></a>.</p></td>
 
428
<td class="parameter_annotations"> </td>
 
429
</tr></tbody>
 
430
</table></div>
 
431
</div>
 
432
<p class="since">Since 4.8</p>
 
433
</div>
 
434
</div>
 
435
<div class="refsect1">
 
436
<a name="XfcePanelImage.other_details"></a><h2>Types and Values</h2>
 
437
<div class="refsect2">
 
438
<a name="XfcePanelImage-struct"></a><h3>struct XfcePanelImage</h3>
 
439
<pre class="programlisting">struct XfcePanelImage;</pre>
 
440
<p>This struct contain private data only and should be accessed by
 
441
the functions below.</p>
325
442
</div>
326
443
</div>
327
444
<div class="refsect1">
328
445
<a name="XfcePanelImage.property-details"></a><h2>Property Details</h2>
329
446
<div class="refsect2">
330
 
<a name="XfcePanelImage--pixbuf"></a><h3>The <code class="literal">"pixbuf"</code> property</h3>
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>
 
447
<a name="XfcePanelImage--pixbuf"></a><h3>The <code class="literal">“pixbuf”</code> property</h3>
 
448
<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> *</pre>
332
449
<p>Pixbuf image.</p>
 
450
<p>Flags: Read / Write</p>
333
451
</div>
334
452
<hr>
335
453
<div class="refsect2">
336
 
<a name="XfcePanelImage--size"></a><h3>The <code class="literal">"size"</code> property</h3>
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>
 
454
<a name="XfcePanelImage--size"></a><h3>The <code class="literal">“size”</code> property</h3>
 
455
<pre class="programlisting">  “size”                     <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></pre>
338
456
<p>Pixel size of the image.</p>
 
457
<p>Flags: Read / Write</p>
339
458
<p>Allowed values: [-1,128]</p>
340
459
<p>Default value: -1</p>
341
460
</div>
342
461
<hr>
343
462
<div class="refsect2">
344
 
<a name="XfcePanelImage--source"></a><h3>The <code class="literal">"source"</code> property</h3>
345
 
<pre class="programlisting">  "source"                   <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>*                : Read / Write</pre>
 
463
<a name="XfcePanelImage--source"></a><h3>The <code class="literal">“source”</code> property</h3>
 
464
<pre class="programlisting">  “source”                   <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</pre>
346
465
<p>Icon or filename.</p>
 
466
<p>Flags: Read / Write</p>
347
467
<p>Default value: NULL</p>
348
468
</div>
349
469
</div>
350
470
<div class="refsect1">
351
471
<a name="XfcePanelImage.style-property-details"></a><h2>Style Property Details</h2>
352
472
<div class="refsect2">
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"     <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a>              : Read / Write</pre>
 
473
<a name="XfcePanelImage--s-force-gtk-icon-sizes"></a><h3>The <code class="literal">“force-gtk-icon-sizes”</code> style property</h3>
 
474
<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></pre>
355
475
<p>Force the image to fix to GtkIconSizes.</p>
 
476
<p>Flags: Read / Write</p>
356
477
<p>Default value: FALSE</p>
357
478
</div>
358
479
</div>
359
480
</div>
360
481
<div class="footer">
361
482
<hr>
362
 
          Generated by GTK-Doc V1.19</div>
 
483
          Generated by GTK-Doc V1.20</div>
363
484
</body>
364
485
</html>
 
 
b'\\ No newline at end of file'