~canonical-dx-team/ubuntu/maverick/gtk+2.0/menuproxy

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2010-06-11 12:19:30 UTC
  • mfrom: (1.11.6 upstream)
  • mto: This revision was merged to the branch mainline in revision 175.
  • Revision ID: james.westby@ubuntu.com-20100611121930-n4pklvkoqdsg12vm
Tags: 2.21.2-1
* New upstream development release:
  + debian/rules,
    debian/libgtk2.0-0.symbols:
    - Update for new API symbols.
  + debian/patches/070_mandatory-relibtoolize.patch:
    - Regenerated for the new version.
  + debian/control.in:
    - Update GLib (build-) dependency to >= 2.25.8.

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
#include <gtk/gtk.h>
46
46
 
47
47
                    <a class="link" href="GtkPixmap.html#GtkPixmap-struct" title="GtkPixmap">GtkPixmap</a>;
48
 
<a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a>*          <a class="link" href="GtkPixmap.html#gtk-pixmap-new" title="gtk_pixmap_new ()">gtk_pixmap_new</a>                      (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gdk/gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a> *pixmap</code></em>,
49
 
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gdk/gdk-Bitmaps-and-Pixmaps.html#GdkBitmap"><span class="type">GdkBitmap</span></a> *mask</code></em>);
 
48
<a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a>*          <a class="link" href="GtkPixmap.html#gtk-pixmap-new" title="gtk_pixmap_new ()">gtk_pixmap_new</a>                      (<em class="parameter"><code><a href="http://library.gnome.org/devel/gdk/unstable/gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a> *pixmap</code></em>,
 
49
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/gdk/unstable/gdk-Bitmaps-and-Pixmaps.html#GdkBitmap"><span class="type">GdkBitmap</span></a> *mask</code></em>);
50
50
<span class="returnvalue">void</span>                <a class="link" href="GtkPixmap.html#gtk-pixmap-set" title="gtk_pixmap_set ()">gtk_pixmap_set</a>                      (<em class="parameter"><code><a class="link" href="GtkPixmap.html" title="GtkPixmap"><span class="type">GtkPixmap</span></a> *pixmap</code></em>,
51
 
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gdk/gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a> *val</code></em>,
52
 
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gdk/gdk-Bitmaps-and-Pixmaps.html#GdkBitmap"><span class="type">GdkBitmap</span></a> *mask</code></em>);
 
51
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/gdk/unstable/gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a> *val</code></em>,
 
52
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/gdk/unstable/gdk-Bitmaps-and-Pixmaps.html#GdkBitmap"><span class="type">GdkBitmap</span></a> *mask</code></em>);
53
53
<span class="returnvalue">void</span>                <a class="link" href="GtkPixmap.html#gtk-pixmap-get" title="gtk_pixmap_get ()">gtk_pixmap_get</a>                      (<em class="parameter"><code><a class="link" href="GtkPixmap.html" title="GtkPixmap"><span class="type">GtkPixmap</span></a> *pixmap</code></em>,
54
 
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gdk/gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a> **val</code></em>,
55
 
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gdk/gdk-Bitmaps-and-Pixmaps.html#GdkBitmap"><span class="type">GdkBitmap</span></a> **mask</code></em>);
 
54
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/gdk/unstable/gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a> **val</code></em>,
 
55
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/gdk/unstable/gdk-Bitmaps-and-Pixmaps.html#GdkBitmap"><span class="type">GdkBitmap</span></a> **mask</code></em>);
56
56
<span class="returnvalue">void</span>                <a class="link" href="GtkPixmap.html#gtk-pixmap-set-build-insensitive" title="gtk_pixmap_set_build_insensitive ()">gtk_pixmap_set_build_insensitive</a>    (<em class="parameter"><code><a class="link" href="GtkPixmap.html" title="GtkPixmap"><span class="type">GtkPixmap</span></a> *pixmap</code></em>,
57
 
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> build</code></em>);
 
57
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> build</code></em>);
58
58
</pre>
59
59
</div>
60
60
<div class="refsect1" title="Object Hierarchy">
61
61
<a name="GtkPixmap.object-hierarchy"></a><h2>Object Hierarchy</h2>
62
62
<pre class="synopsis">
63
 
  <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject">GObject</a>
64
 
   +----<a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a>
 
63
  <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
 
64
   +----<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a>
65
65
         +----<a class="link" href="GtkObject.html" title="GtkObject">GtkObject</a>
66
66
               +----<a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>
67
67
                     +----<a class="link" href="GtkMisc.html" title="GtkMisc">GtkMisc</a>
78
78
<a name="GtkPixmap.description"></a><h2>Description</h2>
79
79
<p>
80
80
The <a class="link" href="GtkPixmap.html" title="GtkPixmap"><span class="type">GtkPixmap</span></a> widget displays a graphical image or icon.
81
 
The icon is typically created using <a href="/usr/share/gtk-doc/html/gdk/gdk-Bitmaps-and-Pixmaps.html#gdk-pixmap-colormap-create-from-xpm"><code class="function">gdk_pixmap_colormap_create_from_xpm()</code></a>
82
 
or <a href="/usr/share/gtk-doc/html/gdk/gdk-Bitmaps-and-Pixmaps.html#gdk-pixmap-colormap-create-from-xpm-d"><code class="function">gdk_pixmap_colormap_create_from_xpm_d()</code></a>.
 
81
The icon is typically created using <a href="http://library.gnome.org/devel/gdk/unstable/gdk-Bitmaps-and-Pixmaps.html#gdk-pixmap-colormap-create-from-xpm"><code class="function">gdk_pixmap_colormap_create_from_xpm()</code></a>
 
82
or <a href="http://library.gnome.org/devel/gdk/unstable/gdk-Bitmaps-and-Pixmaps.html#gdk-pixmap-colormap-create-from-xpm-d"><code class="function">gdk_pixmap_colormap_create_from_xpm_d()</code></a>.
83
83
</p>
84
84
<p>
85
85
The pixels in a <a class="link" href="GtkPixmap.html" title="GtkPixmap"><span class="type">GtkPixmap</span></a> cannot be manipulated by the application after
110
110
<hr>
111
111
<div class="refsect2" title="gtk_pixmap_new ()">
112
112
<a name="gtk-pixmap-new"></a><h3>gtk_pixmap_new ()</h3>
113
 
<pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a>*          gtk_pixmap_new                      (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gdk/gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a> *pixmap</code></em>,
114
 
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gdk/gdk-Bitmaps-and-Pixmaps.html#GdkBitmap"><span class="type">GdkBitmap</span></a> *mask</code></em>);</pre>
 
113
<pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a>*          gtk_pixmap_new                      (<em class="parameter"><code><a href="http://library.gnome.org/devel/gdk/unstable/gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a> *pixmap</code></em>,
 
114
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/gdk/unstable/gdk-Bitmaps-and-Pixmaps.html#GdkBitmap"><span class="type">GdkBitmap</span></a> *mask</code></em>);</pre>
115
115
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
116
116
<h3 class="title">Warning</h3>
117
117
<p><code class="literal">gtk_pixmap_new</code> is deprecated and should not be used in newly-written code.</p>
144
144
<div class="refsect2" title="gtk_pixmap_set ()">
145
145
<a name="gtk-pixmap-set"></a><h3>gtk_pixmap_set ()</h3>
146
146
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_pixmap_set                      (<em class="parameter"><code><a class="link" href="GtkPixmap.html" title="GtkPixmap"><span class="type">GtkPixmap</span></a> *pixmap</code></em>,
147
 
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gdk/gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a> *val</code></em>,
148
 
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gdk/gdk-Bitmaps-and-Pixmaps.html#GdkBitmap"><span class="type">GdkBitmap</span></a> *mask</code></em>);</pre>
 
147
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/gdk/unstable/gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a> *val</code></em>,
 
148
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/gdk/unstable/gdk-Bitmaps-and-Pixmaps.html#GdkBitmap"><span class="type">GdkBitmap</span></a> *mask</code></em>);</pre>
149
149
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
150
150
<h3 class="title">Warning</h3>
151
151
<p><code class="literal">gtk_pixmap_set</code> is deprecated and should not be used in newly-written code.</p>
152
152
</div>
153
153
<p>
154
 
Sets the <a href="/usr/share/gtk-doc/html/gdk/gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a> and <a href="/usr/share/gtk-doc/html/gdk/gdk-Bitmaps-and-Pixmaps.html#GdkBitmap"><span class="type">GdkBitmap</span></a> mask.
 
154
Sets the <a href="http://library.gnome.org/devel/gdk/unstable/gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a> and <a href="http://library.gnome.org/devel/gdk/unstable/gdk-Bitmaps-and-Pixmaps.html#GdkBitmap"><span class="type">GdkBitmap</span></a> mask.
155
155
</p>
156
156
<div class="variablelist"><table border="0">
157
157
<col align="left" valign="top">
163
163
</tr>
164
164
<tr>
165
165
<td><p><span class="term"><em class="parameter"><code>val</code></em> :</span></p></td>
166
 
<td>a <a href="/usr/share/gtk-doc/html/gdk/gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a>.
 
166
<td>a <a href="http://library.gnome.org/devel/gdk/unstable/gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a>.
167
167
</td>
168
168
</tr>
169
169
<tr>
170
170
<td><p><span class="term"><em class="parameter"><code>mask</code></em> :</span></p></td>
171
 
<td>a <a href="/usr/share/gtk-doc/html/gdk/gdk-Bitmaps-and-Pixmaps.html#GdkBitmap"><span class="type">GdkBitmap</span></a>, which indicates which parts of the <em class="parameter"><code>pixmap</code></em> should be
 
171
<td>a <a href="http://library.gnome.org/devel/gdk/unstable/gdk-Bitmaps-and-Pixmaps.html#GdkBitmap"><span class="type">GdkBitmap</span></a>, which indicates which parts of the <em class="parameter"><code>pixmap</code></em> should be
172
172
transparent. This can be NULL, in which case none of the <em class="parameter"><code>pixmap</code></em> is
173
173
transparent.
174
174
</td>
180
180
<div class="refsect2" title="gtk_pixmap_get ()">
181
181
<a name="gtk-pixmap-get"></a><h3>gtk_pixmap_get ()</h3>
182
182
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_pixmap_get                      (<em class="parameter"><code><a class="link" href="GtkPixmap.html" title="GtkPixmap"><span class="type">GtkPixmap</span></a> *pixmap</code></em>,
183
 
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gdk/gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a> **val</code></em>,
184
 
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gdk/gdk-Bitmaps-and-Pixmaps.html#GdkBitmap"><span class="type">GdkBitmap</span></a> **mask</code></em>);</pre>
 
183
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/gdk/unstable/gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a> **val</code></em>,
 
184
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/gdk/unstable/gdk-Bitmaps-and-Pixmaps.html#GdkBitmap"><span class="type">GdkBitmap</span></a> **mask</code></em>);</pre>
185
185
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
186
186
<h3 class="title">Warning</h3>
187
187
<p><code class="literal">gtk_pixmap_get</code> is deprecated and should not be used in newly-written code.</p>
188
188
</div>
189
189
<p>
190
 
Gets the current <a href="/usr/share/gtk-doc/html/gdk/gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a> and <a href="/usr/share/gtk-doc/html/gdk/gdk-Bitmaps-and-Pixmaps.html#GdkBitmap"><span class="type">GdkBitmap</span></a> mask.
 
190
Gets the current <a href="http://library.gnome.org/devel/gdk/unstable/gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a> and <a href="http://library.gnome.org/devel/gdk/unstable/gdk-Bitmaps-and-Pixmaps.html#GdkBitmap"><span class="type">GdkBitmap</span></a> mask.
191
191
</p>
192
192
<div class="variablelist"><table border="0">
193
193
<col align="left" valign="top">
199
199
</tr>
200
200
<tr>
201
201
<td><p><span class="term"><em class="parameter"><code>val</code></em> :</span></p></td>
202
 
<td>returns the current <a href="/usr/share/gtk-doc/html/gdk/gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a>.
 
202
<td>returns the current <a href="http://library.gnome.org/devel/gdk/unstable/gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a>.
203
203
</td>
204
204
</tr>
205
205
<tr>
206
206
<td><p><span class="term"><em class="parameter"><code>mask</code></em> :</span></p></td>
207
 
<td>returns the current <a href="/usr/share/gtk-doc/html/gdk/gdk-Bitmaps-and-Pixmaps.html#GdkBitmap"><span class="type">GdkBitmap</span></a> mask.
 
207
<td>returns the current <a href="http://library.gnome.org/devel/gdk/unstable/gdk-Bitmaps-and-Pixmaps.html#GdkBitmap"><span class="type">GdkBitmap</span></a> mask.
208
208
</td>
209
209
</tr>
210
210
</tbody>
214
214
<div class="refsect2" title="gtk_pixmap_set_build_insensitive ()">
215
215
<a name="gtk-pixmap-set-build-insensitive"></a><h3>gtk_pixmap_set_build_insensitive ()</h3>
216
216
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_pixmap_set_build_insensitive    (<em class="parameter"><code><a class="link" href="GtkPixmap.html" title="GtkPixmap"><span class="type">GtkPixmap</span></a> *pixmap</code></em>,
217
 
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> build</code></em>);</pre>
 
217
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> build</code></em>);</pre>
218
218
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
219
219
<h3 class="title">Warning</h3>
220
220
<p><code class="literal">gtk_pixmap_set_build_insensitive</code> is deprecated and should not be used in newly-written code.</p>
221
221
</div>
222
222
<p>
223
223
Sets wether an extra pixmap should be automatically created and used
224
 
when the pixmap is insensitive. The default value is <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>.
 
224
when the pixmap is insensitive. The default value is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>.
225
225
</p>
226
226
<div class="variablelist"><table border="0">
227
227
<col align="left" valign="top">
233
233
</tr>
234
234
<tr>
235
235
<td><p><span class="term"><em class="parameter"><code>build</code></em> :</span></p></td>
236
 
<td>set to <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if an extra pixmap should be automatically created to use
 
236
<td>set to <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if an extra pixmap should be automatically created to use
237
237
when the pixmap is insensitive.
238
238
</td>
239
239
</tr>