45
45
#include <gtk/gtk.h>
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>);
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>
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>.
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
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>
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.
156
156
<div class="variablelist"><table border="0">
157
157
<col align="left" valign="top">
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>.
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
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>
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.
192
192
<div class="variablelist"><table border="0">
193
193
<col align="left" valign="top">
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>.
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.
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>
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>.
226
226
<div class="variablelist"><table border="0">
227
227
<col align="left" valign="top">