1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
5
<title>gimpbuffer</title>
6
<meta name="generator" content="DocBook XSL Stylesheets V1.72.0">
7
<link rel="start" href="index.html" title="GIMP Library Reference Manual">
8
<link rel="up" href="libgimp-general.html" title="Functions not Related to Specific Images">
9
<link rel="prev" href="libgimp-gimpenums.html" title="gimpenums">
10
<link rel="next" href="libgimp-gimpcontext.html" title="gimpcontext">
11
<meta name="generator" content="GTK-Doc V1.8 (XML mode)">
12
<link rel="stylesheet" href="style.css" type="text/css">
13
<link rel="part" href="libgimp.html" title="Part I. GIMP Library">
14
<link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images">
15
<link rel="chapter" href="libgimp-image.html" title="Manupulating Images and their Properties">
16
<link rel="chapter" href="libgimp-data.html" title="Data Objects">
17
<link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs">
18
<link rel="part" href="libgimpui.html" title="Part II. GIMP User Interface Library">
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">
25
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
26
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
28
<td><a accesskey="p" href="libgimp-gimpenums.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
29
<td><a accesskey="u" href="libgimp-general.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
30
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
31
<th width="100%" align="center">GIMP Library Reference Manual</th>
32
<td><a accesskey="n" href="libgimp-gimpcontext.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
34
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2571405" class="shortcut">Top</a>
36
<a href="#id2559491" class="shortcut">Description</a></nobr></td></tr>
38
<div class="refentry" lang="en">
39
<a name="libgimp-gimpbuffer"></a><div class="titlepage"></div>
40
<div class="refnamediv"><table width="100%"><tr>
43
<a name="id2571405"></a><span class="refentrytitle">gimpbuffer</span>
47
<td valign="top" align="right"></td>
49
<div class="refsynopsisdiv">
51
<pre class="synopsis">
55
gchar** <a href="libgimp-gimpbuffer.html#gimp-buffers-get-list">gimp_buffers_get_list</a> (const gchar *filter,
57
gchar* <a href="libgimp-gimpbuffer.html#gimp-buffer-rename">gimp_buffer_rename</a> (const gchar *buffer_name,
58
const gchar *new_name);
59
gboolean <a href="libgimp-gimpbuffer.html#gimp-buffer-delete">gimp_buffer_delete</a> (const gchar *buffer_name);
60
gint <a href="libgimp-gimpbuffer.html#gimp-buffer-get-width">gimp_buffer_get_width</a> (const gchar *buffer_name);
61
gint <a href="libgimp-gimpbuffer.html#gimp-buffer-get-height">gimp_buffer_get_height</a> (const gchar *buffer_name);
62
gint <a href="libgimp-gimpbuffer.html#gimp-buffer-get-bytes">gimp_buffer_get_bytes</a> (const gchar *buffer_name);
64
href="../libgimpbase/libgimpbase-gimpbaseenums.html#GimpImageBaseType"
65
>GimpImageBaseType</a> <a href="libgimp-gimpbuffer.html#gimp-buffer-get-image-type">gimp_buffer_get_image_type</a> (const gchar *buffer_name);
68
<div class="refsect1" lang="en">
69
<a name="id2559491"></a><h2>Description</h2>
74
<div class="refsect1" lang="en">
75
<a name="id2559507"></a><h2>Details</h2>
76
<div class="refsect2" lang="en">
77
<a name="id2559517"></a><h3>
78
<a name="gimp-buffers-get-list"></a>gimp_buffers_get_list ()</h3>
79
<a class="indexterm" name="id2559531"></a><pre class="programlisting">gchar** gimp_buffers_get_list (const gchar *filter,
80
gint *num_buffers);</pre>
82
Retrieve a complete listing of the available buffers.
85
This procedure returns a complete listing of available named
90
<div class="variablelist"><table border="0">
91
<col align="left" valign="top">
94
<td><span class="term"><em class="parameter"><code>filter</code></em> :</span></td>
95
<td> An optional regular expression used to filter the list.
99
<td><span class="term"><em class="parameter"><code>num_buffers</code></em> :</span></td>
100
<td> The number of buffers.
104
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
105
<td> The list of buffer names.
111
<p class="since">Since GIMP 2.4
115
<div class="refsect2" lang="en">
116
<a name="id2567110"></a><h3>
117
<a name="gimp-buffer-rename"></a>gimp_buffer_rename ()</h3>
118
<a class="indexterm" name="id2567124"></a><pre class="programlisting">gchar* gimp_buffer_rename (const gchar *buffer_name,
119
const gchar *new_name);</pre>
121
Renames a named buffer.
124
This procedure renames a named buffer.</p>
128
<div class="variablelist"><table border="0">
129
<col align="left" valign="top">
132
<td><span class="term"><em class="parameter"><code>buffer_name</code></em> :</span></td>
133
<td> The buffer name.
137
<td><span class="term"><em class="parameter"><code>new_name</code></em> :</span></td>
138
<td> The buffer's new name.
142
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
143
<td> The real name given to the buffer.
149
<p class="since">Since GIMP 2.4
153
<div class="refsect2" lang="en">
154
<a name="id2564874"></a><h3>
155
<a name="gimp-buffer-delete"></a>gimp_buffer_delete ()</h3>
156
<a class="indexterm" name="id2564889"></a><pre class="programlisting">gboolean gimp_buffer_delete (const gchar *buffer_name);</pre>
158
Deletes a named buffer.
161
This procedure deletes a named buffer.</p>
165
<div class="variablelist"><table border="0">
166
<col align="left" valign="top">
169
<td><span class="term"><em class="parameter"><code>buffer_name</code></em> :</span></td>
170
<td> The buffer name.
174
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
175
<td> TRUE on success.
181
<p class="since">Since GIMP 2.4
185
<div class="refsect2" lang="en">
186
<a name="id2564960"></a><h3>
187
<a name="gimp-buffer-get-width"></a>gimp_buffer_get_width ()</h3>
188
<a class="indexterm" name="id2564973"></a><pre class="programlisting">gint gimp_buffer_get_width (const gchar *buffer_name);</pre>
190
Retrieves the specified buffer's width.
193
This procedure retrieves the specified named buffer's width.</p>
197
<div class="variablelist"><table border="0">
198
<col align="left" valign="top">
201
<td><span class="term"><em class="parameter"><code>buffer_name</code></em> :</span></td>
202
<td> The buffer name.
206
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
207
<td> The buffer width.
213
<p class="since">Since GIMP 2.4
217
<div class="refsect2" lang="en">
218
<a name="id2565045"></a><h3>
219
<a name="gimp-buffer-get-height"></a>gimp_buffer_get_height ()</h3>
220
<a class="indexterm" name="id2565059"></a><pre class="programlisting">gint gimp_buffer_get_height (const gchar *buffer_name);</pre>
222
Retrieves the specified buffer's height.
225
This procedure retrieves the specified named buffer's height.</p>
229
<div class="variablelist"><table border="0">
230
<col align="left" valign="top">
233
<td><span class="term"><em class="parameter"><code>buffer_name</code></em> :</span></td>
234
<td> The buffer name.
238
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
239
<td> The buffer height.
245
<p class="since">Since GIMP 2.4
249
<div class="refsect2" lang="en">
250
<a name="id2598731"></a><h3>
251
<a name="gimp-buffer-get-bytes"></a>gimp_buffer_get_bytes ()</h3>
252
<a class="indexterm" name="id2598744"></a><pre class="programlisting">gint gimp_buffer_get_bytes (const gchar *buffer_name);</pre>
254
Retrieves the specified buffer's bytes.
257
This procedure retrieves the specified named buffer's bytes.</p>
261
<div class="variablelist"><table border="0">
262
<col align="left" valign="top">
265
<td><span class="term"><em class="parameter"><code>buffer_name</code></em> :</span></td>
266
<td> The buffer name.
270
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
277
<p class="since">Since GIMP 2.4
281
<div class="refsect2" lang="en">
282
<a name="id2598816"></a><h3>
283
<a name="gimp-buffer-get-image-type"></a>gimp_buffer_get_image_type ()</h3>
284
<a class="indexterm" name="id2598830"></a><pre class="programlisting"><a
285
href="../libgimpbase/libgimpbase-gimpbaseenums.html#GimpImageBaseType"
286
>GimpImageBaseType</a> gimp_buffer_get_image_type (const gchar *buffer_name);</pre>
288
Retrieves the specified buffer's image type.
291
This procedure retrieves the specified named buffer's image type.</p>
295
<div class="variablelist"><table border="0">
296
<col align="left" valign="top">
299
<td><span class="term"><em class="parameter"><code>buffer_name</code></em> :</span></td>
300
<td> The buffer name.
304
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
305
<td> The buffer image type.
311
<p class="since">Since GIMP 2.4