~ubuntu-branches/ubuntu/jaunty/gimp/jaunty-security

« back to all changes in this revision

Viewing changes to devel-docs/libgimp/html/libgimp-gimpundo.html

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2007-05-02 16:33:03 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070502163303-bvzhjzbpw8qglc4y
Tags: 2.3.16-1ubuntu1
* Resynchronized with Debian, remaining Ubuntu changes:
  - debian/rules: i18n magic.
* debian/control.in:
  - Maintainer: Ubuntu Core Developers <ubuntu-devel@lists.ubuntu.com>
* debian/patches/02_help-message.patch,
  debian/patches/03_gimp.desktop.in.in.patch,
  debian/patches/10_dont_show_wizard.patch: updated.
* debian/patches/04_composite-signedness.patch,
  debian/patches/05_add-letter-spacing.patch: dropped, used upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
<head>
4
4
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
5
5
<title>gimpundo</title>
6
 
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
 
6
<meta name="generator" content="DocBook XSL Stylesheets V1.72.0">
7
7
<link rel="start" href="index.html" title="GIMP Library Reference Manual">
8
 
<link rel="up" href="libgimp-image.html" title="Manupulating Images and all their Properties">
 
8
<link rel="up" href="libgimp-image.html" title="Manupulating Images and their Properties">
9
9
<link rel="prev" href="libgimp-gimptools.html" title="gimptools">
10
 
<link rel="next" href="libgimp-data.html" title="Data Objects">
11
 
<meta name="generator" content="GTK-Doc V1.7 (XML mode)">
 
10
<link rel="next" href="libgimp-gimpvectors.html" title="gimpvectors">
 
11
<meta name="generator" content="GTK-Doc V1.8 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
13
 
<link rel="part" href="gimpdefinitions.html" title="Part&#160;I.&#160;GIMP Constants">
14
 
<link rel="part" href="libgimp.html" title="Part&#160;II.&#160;GIMP Library">
 
13
<link rel="part" href="libgimp.html" title="Part&#160;I.&#160;GIMP Library">
15
14
<link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images">
16
 
<link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties">
 
15
<link rel="chapter" href="libgimp-image.html" title="Manupulating Images and their Properties">
17
16
<link rel="chapter" href="libgimp-data.html" title="Data Objects">
18
17
<link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs">
19
 
<link rel="part" href="libgimpui.html" title="Part&#160;III.&#160;GIMP User Interface Library">
 
18
<link rel="part" href="libgimpui.html" title="Part&#160;II.&#160;GIMP User Interface Library">
20
19
<link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy">
 
20
<link rel="index" href="libgimp-index.html" title="Index">
 
21
<link rel="index" href="libgimp-index-new-in-2-2.html" title="Index of new symbols in GIMP 2.2">
 
22
<link rel="index" href="libgimp-index-new-in-2-4.html" title="Index of new symbols in GIMP 2.4">
 
23
<link rel="index" href="libgimp-index-deprecated.html" title="Index of deprecated symbols">
21
24
</head>
22
25
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
23
26
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
26
29
<td><a accesskey="u" href="libgimp-image.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
27
30
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
28
31
<th width="100%" align="center">GIMP Library Reference Manual</th>
29
 
<td><a accesskey="n" href="libgimp-data.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
 
32
<td><a accesskey="n" href="libgimp-gimpvectors.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
30
33
</tr>
31
 
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2541022" class="shortcut">Top</a>
 
34
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2579668" class="shortcut">Top</a>
32
35
                  &#160;|&#160;
33
 
                  <a href="#id2625540" class="shortcut">Description</a></nobr></td></tr>
 
36
                  <a href="#id2676502" class="shortcut">Description</a></nobr></td></tr>
34
37
</table>
35
38
<div class="refentry" lang="en">
36
39
<a name="libgimp-gimpundo"></a><div class="titlepage"></div>
37
40
<div class="refnamediv"><table width="100%"><tr>
38
41
<td valign="top">
39
42
<h2>
40
 
<a name="id2541022"></a><span class="refentrytitle">gimpundo</span>
 
43
<a name="id2579668"></a><span class="refentrytitle">gimpundo</span>
41
44
</h2>
42
45
<p>gimpundo &#8212; Control of undo/redo.</p>
43
46
</td>
49
52
 
50
53
 
51
54
 
52
 
gboolean    <a href="libgimp-gimpundo.html#gimp-image-undo-group-start">gimp_image_undo_group_start</a>     (gint32 image_ID);
53
 
gboolean    <a href="libgimp-gimpundo.html#gimp-image-undo-group-end">gimp_image_undo_group_end</a>       (gint32 image_ID);
54
 
gboolean    <a href="libgimp-gimpundo.html#gimp-image-undo-is-enabled">gimp_image_undo_is_enabled</a>      (gint32 image_ID);
55
 
gboolean    <a href="libgimp-gimpundo.html#gimp-image-undo-disable">gimp_image_undo_disable</a>         (gint32 image_ID);
56
 
gboolean    <a href="libgimp-gimpundo.html#gimp-image-undo-enable">gimp_image_undo_enable</a>          (gint32 image_ID);
57
 
gboolean    <a href="libgimp-gimpundo.html#gimp-image-undo-freeze">gimp_image_undo_freeze</a>          (gint32 image_ID);
58
 
gboolean    <a href="libgimp-gimpundo.html#gimp-image-undo-thaw">gimp_image_undo_thaw</a>            (gint32 image_ID);
 
55
gboolean            <a href="libgimp-gimpundo.html#gimp-image-undo-group-start">gimp_image_undo_group_start</a>         (gint32 image_ID);
 
56
gboolean            <a href="libgimp-gimpundo.html#gimp-image-undo-group-end">gimp_image_undo_group_end</a>           (gint32 image_ID);
 
57
gboolean            <a href="libgimp-gimpundo.html#gimp-image-undo-is-enabled">gimp_image_undo_is_enabled</a>          (gint32 image_ID);
 
58
gboolean            <a href="libgimp-gimpundo.html#gimp-image-undo-disable">gimp_image_undo_disable</a>             (gint32 image_ID);
 
59
gboolean            <a href="libgimp-gimpundo.html#gimp-image-undo-enable">gimp_image_undo_enable</a>              (gint32 image_ID);
 
60
gboolean            <a href="libgimp-gimpundo.html#gimp-image-undo-freeze">gimp_image_undo_freeze</a>              (gint32 image_ID);
 
61
gboolean            <a href="libgimp-gimpundo.html#gimp-image-undo-thaw">gimp_image_undo_thaw</a>                (gint32 image_ID);
59
62
</pre>
60
63
</div>
61
64
<div class="refsect1" lang="en">
62
 
<a name="id2625540"></a><h2>Description</h2>
 
65
<a name="id2676502"></a><h2>Description</h2>
63
66
<p>
64
67
Control of undo/redo.
65
68
 
66
69
</p>
67
70
</div>
68
71
<div class="refsect1" lang="en">
69
 
<a name="id2625555"></a><h2>Details</h2>
 
72
<a name="id2676518"></a><h2>Details</h2>
70
73
<div class="refsect2" lang="en">
71
 
<a name="id2625566"></a><h3>
 
74
<a name="id2676528"></a><h3>
72
75
<a name="gimp-image-undo-group-start"></a>gimp_image_undo_group_start ()</h3>
73
 
<a class="indexterm" name="id2625577"></a><pre class="programlisting">gboolean    gimp_image_undo_group_start     (gint32 image_ID);</pre>
 
76
<a class="indexterm" name="id2676540"></a><pre class="programlisting">gboolean            gimp_image_undo_group_start         (gint32 image_ID);</pre>
74
77
<p>
75
78
Starts a group undo.
76
79
</p>
77
80
<p>
78
81
This function is used to start a group undo--necessary for logically
79
82
combining two or more undo operations into a single operation. This
80
 
call must be used in conjunction with a 'gimp-image-undo-group-end'
 
83
call must be used in conjunction with a <a href="libgimp-gimpundo.html#gimp-image-undo-group-end"><code class="function">gimp_image_undo_group_end()</code></a>
81
84
call.</p>
82
85
<p>
83
86
 
86
89
<col align="left" valign="top">
87
90
<tbody>
88
91
<tr>
89
 
<td>
90
 
<span class="term"><em class="parameter"><code>image_ID</code></em>&#160;:</span></td>
 
92
<td><span class="term"><em class="parameter"><code>image_ID</code></em>&#160;:</span></td>
91
93
<td> The ID of the image in which to open an undo group.
92
94
</td>
93
95
</tr>
94
96
<tr>
95
 
<td>
96
 
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
97
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
97
98
<td> TRUE on success.
98
99
</td>
99
100
</tr>
102
103
</div>
103
104
<hr>
104
105
<div class="refsect2" lang="en">
105
 
<a name="id2628884"></a><h3>
 
106
<a name="id2676615"></a><h3>
106
107
<a name="gimp-image-undo-group-end"></a>gimp_image_undo_group_end ()</h3>
107
 
<a class="indexterm" name="id2628895"></a><pre class="programlisting">gboolean    gimp_image_undo_group_end       (gint32 image_ID);</pre>
 
108
<a class="indexterm" name="id2676626"></a><pre class="programlisting">gboolean            gimp_image_undo_group_end           (gint32 image_ID);</pre>
108
109
<p>
109
110
Finish a group undo.
110
111
</p>
111
112
<p>
112
113
This function must be called once for each
113
 
'gimp-image-undo-group-start' call that is made.</p>
 
114
<a href="libgimp-gimpundo.html#gimp-image-undo-group-start"><code class="function">gimp_image_undo_group_start()</code></a> call that is made.</p>
114
115
<p>
115
116
 
116
117
</p>
118
119
<col align="left" valign="top">
119
120
<tbody>
120
121
<tr>
121
 
<td>
122
 
<span class="term"><em class="parameter"><code>image_ID</code></em>&#160;:</span></td>
 
122
<td><span class="term"><em class="parameter"><code>image_ID</code></em>&#160;:</span></td>
123
123
<td> The ID of the image in which to close an undo group.
124
124
</td>
125
125
</tr>
126
126
<tr>
127
 
<td>
128
 
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
127
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
129
128
<td> TRUE on success.
130
129
</td>
131
130
</tr>
134
133
</div>
135
134
<hr>
136
135
<div class="refsect2" lang="en">
137
 
<a name="id2628959"></a><h3>
 
136
<a name="id2676699"></a><h3>
138
137
<a name="gimp-image-undo-is-enabled"></a>gimp_image_undo_is_enabled ()</h3>
139
 
<a class="indexterm" name="id2628971"></a><pre class="programlisting">gboolean    gimp_image_undo_is_enabled      (gint32 image_ID);</pre>
 
138
<a class="indexterm" name="id2676710"></a><pre class="programlisting">gboolean            gimp_image_undo_is_enabled          (gint32 image_ID);</pre>
140
139
<p>
141
140
Check if the image's undo stack is enabled.
142
141
</p>
144
143
This procedure checks if the image's undo stack is currently enabled
145
144
or disabled. This is useful when several plugins or scripts call
146
145
each other and want to check if their caller has already used
147
 
'gimp_image_undo_disable' or 'gimp_image_undo_freeze'.</p>
 
146
<a href="libgimp-gimpundo.html#gimp-image-undo-disable"><code class="function">gimp_image_undo_disable()</code></a> or <a href="libgimp-gimpundo.html#gimp-image-undo-freeze"><code class="function">gimp_image_undo_freeze()</code></a>.</p>
148
147
<p>
149
148
 
150
149
</p>
152
151
<col align="left" valign="top">
153
152
<tbody>
154
153
<tr>
155
 
<td>
156
 
<span class="term"><em class="parameter"><code>image_ID</code></em>&#160;:</span></td>
 
154
<td><span class="term"><em class="parameter"><code>image_ID</code></em>&#160;:</span></td>
157
155
<td> The image.
158
156
</td>
159
157
</tr>
160
158
<tr>
161
 
<td>
162
 
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
163
 
<td> True if undo is enabled for this image.
 
159
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
160
<td> TRUE if undo is enabled for this image.
164
161
</td>
165
162
</tr>
166
163
</tbody>
168
165
</div>
169
166
<hr>
170
167
<div class="refsect2" lang="en">
171
 
<a name="id2629038"></a><h3>
 
168
<a name="id2667767"></a><h3>
172
169
<a name="gimp-image-undo-disable"></a>gimp_image_undo_disable ()</h3>
173
 
<a class="indexterm" name="id2629049"></a><pre class="programlisting">gboolean    gimp_image_undo_disable         (gint32 image_ID);</pre>
 
170
<a class="indexterm" name="id2667778"></a><pre class="programlisting">gboolean            gimp_image_undo_disable             (gint32 image_ID);</pre>
174
171
<p>
175
172
Disable the image's undo stack.
176
173
</p>
177
174
<p>
178
175
This procedure disables the image's undo stack, allowing subsequent
179
176
operations to ignore their undo steps. This is generally called in
180
 
conjunction with 'gimp_image_undo_enable' to temporarily disable an
 
177
conjunction with <a href="libgimp-gimpundo.html#gimp-image-undo-enable"><code class="function">gimp_image_undo_enable()</code></a> to temporarily disable an
181
178
image undo stack. This is advantageous because saving undo steps can
182
179
be time and memory intensive.</p>
183
180
<p>
187
184
<col align="left" valign="top">
188
185
<tbody>
189
186
<tr>
190
 
<td>
191
 
<span class="term"><em class="parameter"><code>image_ID</code></em>&#160;:</span></td>
 
187
<td><span class="term"><em class="parameter"><code>image_ID</code></em>&#160;:</span></td>
192
188
<td> The image.
193
189
</td>
194
190
</tr>
195
191
<tr>
196
 
<td>
197
 
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
198
 
<td> True if the image undo has been disabled.
 
192
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
193
<td> TRUE if the image undo has been disabled.
199
194
</td>
200
195
</tr>
201
196
</tbody>
203
198
</div>
204
199
<hr>
205
200
<div class="refsect2" lang="en">
206
 
<a name="id2623144"></a><h3>
 
201
<a name="id2667854"></a><h3>
207
202
<a name="gimp-image-undo-enable"></a>gimp_image_undo_enable ()</h3>
208
 
<a class="indexterm" name="id2623155"></a><pre class="programlisting">gboolean    gimp_image_undo_enable          (gint32 image_ID);</pre>
 
203
<a class="indexterm" name="id2667865"></a><pre class="programlisting">gboolean            gimp_image_undo_enable              (gint32 image_ID);</pre>
209
204
<p>
210
205
Enable the image's undo stack.
211
206
</p>
212
207
<p>
213
208
This procedure enables the image's undo stack, allowing subsequent
214
209
operations to store their undo steps. This is generally called in
215
 
conjunction with 'gimp_image_undo_disable' to temporarily disable an
 
210
conjunction with <a href="libgimp-gimpundo.html#gimp-image-undo-disable"><code class="function">gimp_image_undo_disable()</code></a> to temporarily disable an
216
211
image undo stack.</p>
217
212
<p>
218
213
 
221
216
<col align="left" valign="top">
222
217
<tbody>
223
218
<tr>
224
 
<td>
225
 
<span class="term"><em class="parameter"><code>image_ID</code></em>&#160;:</span></td>
 
219
<td><span class="term"><em class="parameter"><code>image_ID</code></em>&#160;:</span></td>
226
220
<td> The image.
227
221
</td>
228
222
</tr>
229
223
<tr>
230
 
<td>
231
 
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
232
 
<td> True if the image undo has been enabled.
 
224
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
225
<td> TRUE if the image undo has been enabled.
233
226
</td>
234
227
</tr>
235
228
</tbody>
237
230
</div>
238
231
<hr>
239
232
<div class="refsect2" lang="en">
240
 
<a name="id2623223"></a><h3>
 
233
<a name="id2667939"></a><h3>
241
234
<a name="gimp-image-undo-freeze"></a>gimp_image_undo_freeze ()</h3>
242
 
<a class="indexterm" name="id2623234"></a><pre class="programlisting">gboolean    gimp_image_undo_freeze          (gint32 image_ID);</pre>
 
235
<a class="indexterm" name="id2667950"></a><pre class="programlisting">gboolean            gimp_image_undo_freeze              (gint32 image_ID);</pre>
243
236
<p>
244
237
Freeze the image's undo stack.
245
238
</p>
246
239
<p>
247
240
This procedure freezes the image's undo stack, allowing subsequent
248
241
operations to ignore their undo steps. This is generally called in
249
 
conjunction with 'gimp_image_undo_thaw' to temporarily disable an
 
242
conjunction with <a href="libgimp-gimpundo.html#gimp-image-undo-thaw"><code class="function">gimp_image_undo_thaw()</code></a> to temporarily disable an
250
243
image undo stack. This is advantageous because saving undo steps can
251
 
be time and memory intensive. 'gimp_image_undo_{freeze,thaw}' and
252
 
'gimp_image_undo_{disable,enable}' differ in that the former does
253
 
not free up all undo steps when undo is thawed, so is more suited to
254
 
interactive in-situ previews. It is important in this case that the
255
 
image is back to the same state it was frozen in before thawing,
256
 
else 'undo' behaviour is undefined.</p>
 
244
be time and memory intensive. <a href="libgimp-gimpundo.html#gimp-image-undo-freeze"><code class="function">gimp_image_undo_freeze()</code></a> /
 
245
<a href="libgimp-gimpundo.html#gimp-image-undo-thaw"><code class="function">gimp_image_undo_thaw()</code></a> and <a href="libgimp-gimpundo.html#gimp-image-undo-disable"><code class="function">gimp_image_undo_disable()</code></a> /
 
246
<a href="libgimp-gimpundo.html#gimp-image-undo-enable"><code class="function">gimp_image_undo_enable()</code></a> differ in that the former does not free up
 
247
all undo steps when undo is thawed, so is more suited to interactive
 
248
in-situ previews. It is important in this case that the image is
 
249
back to the same state it was frozen in before thawing, else 'undo'
 
250
behaviour is undefined.</p>
257
251
<p>
258
252
 
259
253
</p>
261
255
<col align="left" valign="top">
262
256
<tbody>
263
257
<tr>
264
 
<td>
265
 
<span class="term"><em class="parameter"><code>image_ID</code></em>&#160;:</span></td>
 
258
<td><span class="term"><em class="parameter"><code>image_ID</code></em>&#160;:</span></td>
266
259
<td> The image.
267
260
</td>
268
261
</tr>
269
262
<tr>
270
 
<td>
271
 
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
272
 
<td> True if the image undo has been frozen.
 
263
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
264
<td> TRUE if the image undo has been frozen.
273
265
</td>
274
266
</tr>
275
267
</tbody>
277
269
</div>
278
270
<hr>
279
271
<div class="refsect2" lang="en">
280
 
<a name="id2559486"></a><h3>
 
272
<a name="id2668066"></a><h3>
281
273
<a name="gimp-image-undo-thaw"></a>gimp_image_undo_thaw ()</h3>
282
 
<a class="indexterm" name="id2629080"></a><pre class="programlisting">gboolean    gimp_image_undo_thaw            (gint32 image_ID);</pre>
 
274
<a class="indexterm" name="id2668077"></a><pre class="programlisting">gboolean            gimp_image_undo_thaw                (gint32 image_ID);</pre>
283
275
<p>
284
276
Thaw the image's undo stack.
285
277
</p>
286
278
<p>
287
279
This procedure thaws the image's undo stack, allowing subsequent
288
280
operations to store their undo steps. This is generally called in
289
 
conjunction with 'gimp_image_undo_freeze' to temporarily freeze an
290
 
image undo stack. 'gimp_image_undo_thaw' does NOT free the undo
291
 
stack as 'gimp_image_undo_enable' does, so is suited for situations
 
281
conjunction with <a href="libgimp-gimpundo.html#gimp-image-undo-freeze"><code class="function">gimp_image_undo_freeze()</code></a> to temporarily freeze an
 
282
image undo stack. <a href="libgimp-gimpundo.html#gimp-image-undo-thaw"><code class="function">gimp_image_undo_thaw()</code></a> does NOT free the undo
 
283
stack as <a href="libgimp-gimpundo.html#gimp-image-undo-enable"><code class="function">gimp_image_undo_enable()</code></a> does, so is suited for situations
292
284
where one wishes to leave the undo stack in the same state in which
293
285
one found it despite non-destructively playing with the image in the
294
286
meantime. An example would be in-situ plugin previews. Balancing
301
293
<col align="left" valign="top">
302
294
<tbody>
303
295
<tr>
304
 
<td>
305
 
<span class="term"><em class="parameter"><code>image_ID</code></em>&#160;:</span></td>
 
296
<td><span class="term"><em class="parameter"><code>image_ID</code></em>&#160;:</span></td>
306
297
<td> The image.
307
298
</td>
308
299
</tr>
309
300
<tr>
310
 
<td>
311
 
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
312
 
<td> True if the image undo has been thawed.
 
301
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
302
<td> TRUE if the image undo has been thawed.
313
303
</td>
314
304
</tr>
315
305
</tbody>