4
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
5
<title>GimpPixmap</title>
6
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
7
<link rel="start" href="index.html" title="GIMP Widgets Library Reference Manual">
6
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
7
<link rel="home" href="index.html" title="GIMP Widgets Library Reference Manual">
8
8
<link rel="up" href="libgimpwidgets-widgets.html" title="Part I. GIMP Widgets">
9
9
<link rel="prev" href="GimpPickButton.html" title="GimpPickButton">
10
10
<link rel="next" href="GimpPreviewArea.html" title="GimpPreviewArea">
11
<meta name="generator" content="GTK-Doc V1.10 (XML mode)">
11
<meta name="generator" content="GTK-Doc V1.11 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
13
13
<link rel="part" href="libgimpwidgets-widgets.html" title="Part I. GIMP Widgets">
14
14
<link rel="chapter" href="libgimpwidgets-hierarchy.html" title="Object Hierarchy">
34
34
<th width="100%" align="center">GIMP Widgets Library Reference Manual</th>
35
35
<td><a accesskey="n" href="GimpPreviewArea.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
37
<tr><td colspan="5" class="shortcuts"><nobr><a href="#GimpPixmap.synopsis" class="shortcut">Top</a>
39
<a href="#GimpPixmap.description" class="shortcut">Description</a>
41
<a href="#GimpPixmap.object-hierarchy" class="shortcut">Object Hierarchy</a>
43
<a href="#GimpPixmap.implemented-interfaces" class="shortcut">Implemented Interfaces</a></nobr></td></tr>
37
<tr><td colspan="5" class="shortcuts">
38
<a href="#GimpPixmap.synopsis" class="shortcut">Top</a>
40
<a href="#GimpPixmap.description" class="shortcut">Description</a>
42
<a href="#GimpPixmap.object-hierarchy" class="shortcut">Object Hierarchy</a>
44
<a href="#GimpPixmap.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
45
<div class="refentry" lang="en">
47
<div class="refentry" title="GimpPixmap">
46
48
<a name="GimpPixmap"></a><div class="titlepage"></div>
47
49
<div class="refnamediv"><table width="100%"><tr>
49
51
<h2><span class="refentrytitle"><a name="GimpPixmap.top_of_page"></a>GimpPixmap</span></h2>
50
52
<p>GimpPixmap — Widget which creates a <a
51
href="/usr/share/gtk-doc/html/gtk/GtkPixmap.html"
53
href="http://library.gnome.org/devel/gtk/unstable/GtkPixmap.html"
52
54
><span class="type">GtkPixmap</span></a> from XPM data.</p>
54
56
<td valign="top" align="right"></td>
55
57
</tr></table></div>
56
<div class="refsynopsisdiv">
58
<div class="refsynopsisdiv" title="Synopsis">
57
59
<a name="GimpPixmap.synopsis"></a><h2>Synopsis</h2>
58
60
<pre class="synopsis">
59
61
<a class="link" href="GimpPixmap.html#GimpPixmap-struct" title="GimpPixmap">GimpPixmap</a>;
61
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
62
>GtkWidget</a>* <a class="link" href="GimpPixmap.html#gimp-pixmap-new" title="gimp_pixmap_new ()">gimp_pixmap_new</a> (<a
63
href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html"
64
>GtkWidget</a> * <a class="link" href="GimpPixmap.html#gimp-pixmap-new" title="gimp_pixmap_new ()">gimp_pixmap_new</a> (<a
63
65
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
64
66
>gchar</a> **xpm_data);
65
67
void <a class="link" href="GimpPixmap.html#gimp-pixmap-set" title="gimp_pixmap_set ()">gimp_pixmap_set</a> (<a class="link" href="GimpPixmap.html" title="GimpPixmap">GimpPixmap</a> *pixmap,
78
80
href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GInitiallyUnowned"
79
81
>GInitiallyUnowned</a>
81
href="/usr/share/gtk-doc/html/gtk/GtkObject.html"
83
href="http://library.gnome.org/devel/gtk/unstable/GtkObject.html"
84
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
86
href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html"
87
href="/usr/share/gtk-doc/html/gtk/GtkMisc.html"
89
href="http://library.gnome.org/devel/gtk/unstable/GtkMisc.html"
90
href="/usr/share/gtk-doc/html/gtk/GtkImage.html"
92
href="http://library.gnome.org/devel/gtk/unstable/GtkImage.html"
95
<div class="refsect1" lang="en">
97
<div class="refsect1" title="Implemented Interfaces">
96
98
<a name="GimpPixmap.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
98
100
GimpPixmap implements
99
AtkImplementorIface and <a
100
href="/usr/share/gtk-doc/html/gtk/gtk-gtkbuildable.html#GtkBuildable"
101
>GtkBuildable</a>.</p>
102
href="http://library.gnome.org/devel/gtk/unstable/gtk-gtkbuildable.html#GtkBuildable"
103
>GtkBuildable</a> and AtkImplementorIface.</p>
103
<div class="refsect1" lang="en">
105
<div class="refsect1" title="Description">
104
106
<a name="GimpPixmap.description"></a><h2>Description</h2>
106
108
Widget which creates a <a
107
href="/usr/share/gtk-doc/html/gtk/GtkPixmap.html"
109
href="http://library.gnome.org/devel/gtk/unstable/GtkPixmap.html"
108
110
><span class="type">GtkPixmap</span></a> from XPM data.
111
113
Use this widget instead of <a
112
href="/usr/share/gtk-doc/html/gtk/GtkPixmap.html"
114
href="http://library.gnome.org/devel/gtk/unstable/GtkPixmap.html"
113
115
><span class="type">GtkPixmap</span></a> if you don't want to worry about
114
116
the parent container's "realized" state.
117
119
Note that the drawback of the easy interface is that the actual <a
118
href="/usr/share/gtk-doc/html/gdk/gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"
120
href="http://library.gnome.org/devel/gdk/unstable/gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"
119
121
><span class="type">GdkPixmap</span></a>
120
122
and it's mask have to be constructed every time you call <a class="link" href="GimpPixmap.html#gimp-pixmap-new" title="gimp_pixmap_new ()"><code class="function">gimp_pixmap_new()</code></a>
121
123
and cannot be cached in memory without doing bad hacks.
124
<div class="refsect1" lang="en">
126
<div class="refsect1" title="Details">
125
127
<a name="GimpPixmap.details"></a><h2>Details</h2>
126
<div class="refsect2" lang="en">
128
<div class="refsect2" title="GimpPixmap">
127
129
<a name="GimpPixmap-struct"></a><h3>GimpPixmap</h3>
128
130
<pre class="programlisting">typedef struct _GimpPixmap GimpPixmap;</pre>
129
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
131
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
130
132
<h3 class="title">Warning</h3>
131
133
<p><code class="literal">GimpPixmap</code> is deprecated and should not be used in newly-written code.</p>
138
<div class="refsect2" lang="en">
139
<div class="refsect2" title="gimp_pixmap_new ()">
139
140
<a name="gimp-pixmap-new"></a><h3>gimp_pixmap_new ()</h3>
140
141
<pre class="programlisting"><a
141
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
142
>GtkWidget</a>* gimp_pixmap_new (<a
142
href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html"
143
>GtkWidget</a> * gimp_pixmap_new (<a
143
144
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
144
145
>gchar</a> **xpm_data);</pre>
145
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
146
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
146
147
<h3 class="title">Warning</h3>
147
148
<p><code class="literal">gimp_pixmap_new</code> is deprecated and should not be used in newly-written code.</p>
150
151
Creates a new <a class="link" href="GimpPixmap.html" title="GimpPixmap"><span class="type">GimpPixmap</span></a> widget.</p>
154
154
<div class="variablelist"><table border="0">
155
155
<col align="left" valign="top">
171
<div class="refsect2" lang="en">
171
<div class="refsect2" title="gimp_pixmap_set ()">
172
172
<a name="gimp-pixmap-set"></a><h3>gimp_pixmap_set ()</h3>
173
173
<pre class="programlisting">void gimp_pixmap_set (<a class="link" href="GimpPixmap.html" title="GimpPixmap">GimpPixmap</a> *pixmap,
175
175
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
176
176
>gchar</a> **xpm_data);</pre>
177
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
177
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
178
178
<h3 class="title">Warning</h3>
179
179
<p><code class="literal">gimp_pixmap_set</code> is deprecated and should not be used in newly-written code.</p>
182
182
Sets a new image for an existing <a class="link" href="GimpPixmap.html" title="GimpPixmap"><span class="type">GimpPixmap</span></a> widget.</p>
186
185
<div class="variablelist"><table border="0">
187
186
<col align="left" valign="top">