33
33
<th width="100%" align="center">GIMP Widgets Library Reference Manual</th>
34
34
<td><a accesskey="n" href="GimpPreviewArea.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
36
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2585824" class="shortcut">Top</a>
38
<a href="#id2636356" class="shortcut">Description</a>
40
<a href="#id2641360" class="shortcut">Object Hierarchy</a>
42
<a href="#id2636329" class="shortcut">Implemented Interfaces</a></nobr></td></tr>
36
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2610266" class="shortcut">Top</a>
38
<a href="#id2635137" class="shortcut">Description</a>
40
<a href="#id2617305" class="shortcut">Object Hierarchy</a>
42
<a href="#id2635110" class="shortcut">Implemented Interfaces</a></nobr></td></tr>
44
44
<div class="refentry" lang="en">
45
45
<a name="GimpPixmap"></a><div class="titlepage"></div>
46
46
<div class="refnamediv"><table width="100%"><tr>
49
<a name="id2585824"></a><span class="refentrytitle">GimpPixmap</span>
49
<a name="id2610266"></a><span class="refentrytitle">GimpPixmap</span>
51
<p>GimpPixmap — Widget which creates a <span class="type">GtkPixmap</span> from XPM data.</p>
51
<p>GimpPixmap — Widget which creates a <a
52
href="../gtk/GtkPixmap.html"
53
><span class="type">GtkPixmap</span></a> from XPM data.</p>
53
55
<td valign="top" align="right"></td>
54
56
</tr></table></div>
61
63
<a class="link" href="GimpPixmap.html#GimpPixmap-struct">GimpPixmap</a>;
62
GtkWidget* <a class="link" href="GimpPixmap.html#gimp-pixmap-new">gimp_pixmap_new</a> (gchar **xpm_data);
65
href="../gtk/GtkWidget.html"
66
>GtkWidget</a>* <a class="link" href="GimpPixmap.html#gimp-pixmap-new">gimp_pixmap_new</a> (<a
67
href="../glib/glib-Basic-Types.html#gchar"
68
>gchar</a> **xpm_data);
63
69
void <a class="link" href="GimpPixmap.html#gimp-pixmap-set">gimp_pixmap_set</a> (<a class="link" href="GimpPixmap.html" title="GimpPixmap">GimpPixmap</a> *pixmap,
71
href="../glib/glib-Basic-Types.html#gchar"
72
>gchar</a> **xpm_data);
68
76
<div class="refsect1" lang="en">
69
<a name="id2641360"></a><h2>Object Hierarchy</h2>
77
<a name="id2617305"></a><h2>Object Hierarchy</h2>
70
78
<pre class="synopsis">
73
+----GInitiallyUnowned
81
href="../gobject/gobject-The-Base-Object-Type.html#GObject"
84
href="../gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned"
85
>GInitiallyUnowned</a>
87
href="../gtk/GtkObject.html"
90
href="../gtk/GtkWidget.html"
93
href="../gtk/GtkMisc.html"
96
href="../gtk/GtkImage.html"
81
101
<div class="refsect1" lang="en">
82
<a name="id2636329"></a><h2>Implemented Interfaces</h2>
102
<a name="id2635110"></a><h2>Implemented Interfaces</h2>
84
104
GimpPixmap implements
85
105
AtkImplementorIface and GtkBuildable.</p>
87
107
<div class="refsect1" lang="en">
88
<a name="id2636356"></a><h2>Description</h2>
108
<a name="id2635137"></a><h2>Description</h2>
90
Widget which creates a <span class="type">GtkPixmap</span> from XPM data.
110
Widget which creates a <a
111
href="../gtk/GtkPixmap.html"
112
><span class="type">GtkPixmap</span></a> from XPM data.
93
Use this widget instead of <span class="type">GtkPixmap</span> if you don't want to worry about
115
Use this widget instead of <a
116
href="../gtk/GtkPixmap.html"
117
><span class="type">GtkPixmap</span></a> if you don't want to worry about
94
118
the parent container's "realized" state.
97
Note that the drawback of the easy interface is that the actual <span class="type">GdkPixmap</span>
121
Note that the drawback of the easy interface is that the actual <a
122
href="../gdk/gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"
123
><span class="type">GdkPixmap</span></a>
98
124
and it's mask have to be constructed every time you call <a class="link" href="GimpPixmap.html#gimp-pixmap-new"><code class="function">gimp_pixmap_new()</code></a>
99
125
and cannot be cached in memory without doing bad hacks.
102
128
<div class="refsect1" lang="en">
103
<a name="id2636414"></a><h2>Details</h2>
129
<a name="id2635194"></a><h2>Details</h2>
104
130
<div class="refsect2" lang="en">
105
<a name="id2636424"></a><h3>
131
<a name="id2635205"></a><h3>
106
132
<a name="GimpPixmap-struct"></a>GimpPixmap</h3>
107
<a class="indexterm" name="id2636437"></a><pre class="programlisting">typedef struct _GimpPixmap GimpPixmap;</pre>
133
<a class="indexterm" name="id2641772"></a><pre class="programlisting">typedef struct _GimpPixmap GimpPixmap;</pre>
108
134
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
109
135
<h3 class="title">Warning</h3>
110
136
<p><code class="literal">GimpPixmap</code> is deprecated and should not be used in newly-written code.</p>
117
143
<div class="refsect2" lang="en">
118
<a name="id2637506"></a><h3>
144
<a name="id2641798"></a><h3>
119
145
<a name="gimp-pixmap-new"></a>gimp_pixmap_new ()</h3>
120
<a class="indexterm" name="id2637520"></a><pre class="programlisting">GtkWidget* gimp_pixmap_new (gchar **xpm_data);</pre>
146
<a class="indexterm" name="id2641813"></a><pre class="programlisting"><a
147
href="../gtk/GtkWidget.html"
148
>GtkWidget</a>* gimp_pixmap_new (<a
149
href="../glib/glib-Basic-Types.html#gchar"
150
>gchar</a> **xpm_data);</pre>
121
151
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
122
152
<h3 class="title">Warning</h3>
123
153
<p><code class="literal">gimp_pixmap_new</code> is deprecated and should not be used in newly-written code.</p>
147
177
<div class="refsect2" lang="en">
148
<a name="id2637608"></a><h3>
178
<a name="id2641901"></a><h3>
149
179
<a name="gimp-pixmap-set"></a>gimp_pixmap_set ()</h3>
150
<a class="indexterm" name="id2637623"></a><pre class="programlisting">void gimp_pixmap_set (<a class="link" href="GimpPixmap.html" title="GimpPixmap">GimpPixmap</a> *pixmap,
151
gchar **xpm_data);</pre>
180
<a class="indexterm" name="id2641916"></a><pre class="programlisting">void gimp_pixmap_set (<a class="link" href="GimpPixmap.html" title="GimpPixmap">GimpPixmap</a> *pixmap,
182
href="../glib/glib-Basic-Types.html#gchar"
183
>gchar</a> **xpm_data);</pre>
152
184
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
153
185
<h3 class="title">Warning</h3>
154
186
<p><code class="literal">gimp_pixmap_set</code> is deprecated and should not be used in newly-written code.</p>