~ubuntu-branches/ubuntu/raring/gtk+2.0/raring-proposed

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Robert Ancell
  • Date: 2013-01-10 12:53:20 UTC
  • mfrom: (1.14.16)
  • Revision ID: package-import@ubuntu.com-20130110125320-x13bjpwtqq36izs2
Tags: 2.24.14-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
<link rel="up" href="DeprecatedObjects.html" title="Deprecated">
9
9
<link rel="prev" href="GtkOptionMenu.html" title="GtkOptionMenu">
10
10
<link rel="next" href="GtkPreview.html" title="GtkPreview">
11
 
<meta name="generator" content="GTK-Doc V1.18.1 (XML mode)">
 
11
<meta name="generator" content="GTK-Doc V1.18 (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">
45
45
#include &lt;gtk/gtk.h&gt;
46
46
 
47
47
struct              <a class="link" href="GtkPixmap.html#GtkPixmap-struct" title="struct 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="http://library.gnome.org/devel/gdk3/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/gdk3/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="../gdk2/gdk2-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a> *pixmap</code></em>,
 
49
                                                         <em class="parameter"><code><a href="../gdk2/gdk2-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="http://library.gnome.org/devel/gdk3/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/gdk3/gdk-Bitmaps-and-Pixmaps.html#GdkBitmap"><span class="type">GdkBitmap</span></a> *mask</code></em>);
 
51
                                                         <em class="parameter"><code><a href="../gdk2/gdk2-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a> *val</code></em>,
 
52
                                                         <em class="parameter"><code><a href="../gdk2/gdk2-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="http://library.gnome.org/devel/gdk3/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/gdk3/gdk-Bitmaps-and-Pixmaps.html#GdkBitmap"><span class="type">GdkBitmap</span></a> **mask</code></em>);
 
54
                                                         <em class="parameter"><code><a href="../gdk2/gdk2-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a> **val</code></em>,
 
55
                                                         <em class="parameter"><code><a href="../gdk2/gdk2-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="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> build</code></em>);
 
57
                                                         <em class="parameter"><code><span class="type">gboolean</span> build</code></em>);
58
58
</pre>
59
59
</div>
60
60
<div class="refsect1">
61
61
<a name="GtkPixmap.object-hierarchy"></a><h2>Object Hierarchy</h2>
62
62
<pre class="synopsis">
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>
 
63
  GObject
 
64
   +----GInitiallyUnowned
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="http://library.gnome.org/devel/gdk3/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/gdk3/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="../gdk2/gdk2-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="../gdk2/gdk2-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">
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="http://library.gnome.org/devel/gdk3/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/gdk3/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="../gdk2/gdk2-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a> *pixmap</code></em>,
 
114
                                                         <em class="parameter"><code><a href="../gdk2/gdk2-Bitmaps-and-Pixmaps.html#GdkBitmap"><span class="type">GdkBitmap</span></a> *mask</code></em>);</pre>
115
115
<div class="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>
145
145
<div class="refsect2">
146
146
<a name="gtk-pixmap-set"></a><h3>gtk_pixmap_set ()</h3>
147
147
<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>,
148
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/gdk3/gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a> *val</code></em>,
149
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/gdk3/gdk-Bitmaps-and-Pixmaps.html#GdkBitmap"><span class="type">GdkBitmap</span></a> *mask</code></em>);</pre>
 
148
                                                         <em class="parameter"><code><a href="../gdk2/gdk2-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a> *val</code></em>,
 
149
                                                         <em class="parameter"><code><a href="../gdk2/gdk2-Bitmaps-and-Pixmaps.html#GdkBitmap"><span class="type">GdkBitmap</span></a> *mask</code></em>);</pre>
150
150
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
151
151
<h3 class="title">Warning</h3>
152
152
<p><code class="literal">gtk_pixmap_set</code> is deprecated and should not be used in newly-written code.</p>
153
153
</div>
154
154
<p>
155
 
Sets the <a href="http://library.gnome.org/devel/gdk3/gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a> and <a href="http://library.gnome.org/devel/gdk3/gdk-Bitmaps-and-Pixmaps.html#GdkBitmap"><span class="type">GdkBitmap</span></a> mask.
 
155
Sets the <a href="../gdk2/gdk2-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a> and <a href="../gdk2/gdk2-Bitmaps-and-Pixmaps.html#GdkBitmap"><span class="type">GdkBitmap</span></a> mask.
156
156
</p>
157
157
<div class="variablelist"><table border="0" class="variablelist">
158
158
<colgroup>
166
166
</tr>
167
167
<tr>
168
168
<td><p><span class="term"><em class="parameter"><code>val</code></em> :</span></p></td>
169
 
<td>a <a href="http://library.gnome.org/devel/gdk3/gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a>.</td>
 
169
<td>a <a href="../gdk2/gdk2-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a>.</td>
170
170
</tr>
171
171
<tr>
172
172
<td><p><span class="term"><em class="parameter"><code>mask</code></em> :</span></p></td>
173
 
<td>a <a href="http://library.gnome.org/devel/gdk3/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
 
173
<td>a <a href="../gdk2/gdk2-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
174
174
transparent. This can be NULL, in which case none of the <em class="parameter"><code>pixmap</code></em> is
175
175
transparent.</td>
176
176
</tr>
181
181
<div class="refsect2">
182
182
<a name="gtk-pixmap-get"></a><h3>gtk_pixmap_get ()</h3>
183
183
<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>,
184
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/gdk3/gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a> **val</code></em>,
185
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/gdk3/gdk-Bitmaps-and-Pixmaps.html#GdkBitmap"><span class="type">GdkBitmap</span></a> **mask</code></em>);</pre>
 
184
                                                         <em class="parameter"><code><a href="../gdk2/gdk2-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a> **val</code></em>,
 
185
                                                         <em class="parameter"><code><a href="../gdk2/gdk2-Bitmaps-and-Pixmaps.html#GdkBitmap"><span class="type">GdkBitmap</span></a> **mask</code></em>);</pre>
186
186
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
187
187
<h3 class="title">Warning</h3>
188
188
<p><code class="literal">gtk_pixmap_get</code> is deprecated and should not be used in newly-written code.</p>
189
189
</div>
190
190
<p>
191
 
Gets the current <a href="http://library.gnome.org/devel/gdk3/gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a> and <a href="http://library.gnome.org/devel/gdk3/gdk-Bitmaps-and-Pixmaps.html#GdkBitmap"><span class="type">GdkBitmap</span></a> mask.
 
191
Gets the current <a href="../gdk2/gdk2-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a> and <a href="../gdk2/gdk2-Bitmaps-and-Pixmaps.html#GdkBitmap"><span class="type">GdkBitmap</span></a> mask.
192
192
</p>
193
193
<div class="variablelist"><table border="0" class="variablelist">
194
194
<colgroup>
202
202
</tr>
203
203
<tr>
204
204
<td><p><span class="term"><em class="parameter"><code>val</code></em> :</span></p></td>
205
 
<td>returns the current <a href="http://library.gnome.org/devel/gdk3/gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a>.</td>
 
205
<td>returns the current <a href="../gdk2/gdk2-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a>.</td>
206
206
</tr>
207
207
<tr>
208
208
<td><p><span class="term"><em class="parameter"><code>mask</code></em> :</span></p></td>
209
 
<td>returns the current <a href="http://library.gnome.org/devel/gdk3/gdk-Bitmaps-and-Pixmaps.html#GdkBitmap"><span class="type">GdkBitmap</span></a> mask.</td>
 
209
<td>returns the current <a href="../gdk2/gdk2-Bitmaps-and-Pixmaps.html#GdkBitmap"><span class="type">GdkBitmap</span></a> mask.</td>
210
210
</tr>
211
211
</tbody>
212
212
</table></div>
215
215
<div class="refsect2">
216
216
<a name="gtk-pixmap-set-build-insensitive"></a><h3>gtk_pixmap_set_build_insensitive ()</h3>
217
217
<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>,
218
 
                                                         <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
                                                         <em class="parameter"><code><span class="type">gboolean</span> build</code></em>);</pre>
219
219
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
220
220
<h3 class="title">Warning</h3>
221
221
<p><code class="literal">gtk_pixmap_set_build_insensitive</code> is deprecated and should not be used in newly-written code.</p>
222
222
</div>
223
223
<p>
224
224
Sets wether an extra pixmap should be automatically created and used
225
 
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
when the pixmap is insensitive. The default value is <code class="literal">TRUE</code>.
226
226
</p>
227
227
<div class="variablelist"><table border="0" class="variablelist">
228
228
<colgroup>
236
236
</tr>
237
237
<tr>
238
238
<td><p><span class="term"><em class="parameter"><code>build</code></em> :</span></p></td>
239
 
<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
 
239
<td>set to <code class="literal">TRUE</code> if an extra pixmap should be automatically created to use
240
240
when the pixmap is insensitive.</td>
241
241
</tr>
242
242
</tbody>
246
246
</div>
247
247
<div class="footer">
248
248
<hr>
249
 
          Generated by GTK-Doc V1.18.1</div>
 
249
          Generated by GTK-Doc V1.18</div>
250
250
</body>
251
251
</html>
 
 
b'\\ No newline at end of file'