Files
gimp/devel-docs/libgimp/html/libgimp-gimpbuffer.html
2010-08-11 01:23:35 -04:00

383 lines
12 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>gimpbuffer</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
<link rel="start" href="index.html" title="GIMP Library Reference Manual">
<link rel="up" href="libgimp-general.html" title="Functions not Related to Specific Images">
<link rel="prev" href="libgimp-gimpenums.html" title="gimpenums">
<link rel="next" href="libgimp-gimpcontext.html" title="gimpcontext">
<meta name="generator" content="GTK-Doc V1.9 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="part" href="libgimp.html" title="Part&#160;I.&#160;GIMP Library">
<link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images">
<link rel="chapter" href="libgimp-image.html" title="Manupulating Images and their Properties">
<link rel="chapter" href="libgimp-data.html" title="Data Objects">
<link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs">
<link rel="part" href="libgimpui.html" title="Part&#160;II.&#160;GIMP User Interface Library">
<link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy">
<link rel="index" href="libgimp-index.html" title="Index">
<link rel="index" href="libgimp-index-new-in-2-2.html" title="Index of new symbols in GIMP 2.2">
<link rel="index" href="libgimp-index-new-in-2-4.html" title="Index of new symbols in GIMP 2.4">
<link rel="index" href="libgimp-index-deprecated.html" title="Index of deprecated symbols">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="libgimp-gimpenums.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="libgimp-general.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GIMP Library Reference Manual</th>
<td><a accesskey="n" href="libgimp-gimpcontext.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2613229" class="shortcut">Top</a>
&#160;|&#160;
<a href="#id2576413" class="shortcut">Description</a></nobr></td></tr>
</table>
<div class="refentry" lang="en">
<a name="libgimp-gimpbuffer"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2>
<a name="id2613229"></a><span class="refentrytitle">gimpbuffer</span>
</h2>
<p>gimpbuffer</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<h2>Synopsis</h2>
<pre class="synopsis">
<a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a>** <a class="link" href="libgimp-gimpbuffer.html#gimp-buffers-get-list">gimp_buffers_get_list</a> (const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *filter,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *num_buffers);
<a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a>* <a class="link" href="libgimp-gimpbuffer.html#gimp-buffer-rename">gimp_buffer_rename</a> (const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *buffer_name,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *new_name);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpbuffer.html#gimp-buffer-delete">gimp_buffer_delete</a> (const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *buffer_name);
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> <a class="link" href="libgimp-gimpbuffer.html#gimp-buffer-get-width">gimp_buffer_get_width</a> (const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *buffer_name);
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> <a class="link" href="libgimp-gimpbuffer.html#gimp-buffer-get-height">gimp_buffer_get_height</a> (const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *buffer_name);
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> <a class="link" href="libgimp-gimpbuffer.html#gimp-buffer-get-bytes">gimp_buffer_get_bytes</a> (const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *buffer_name);
<a
href="../libgimpbase/libgimpbase-gimpbaseenums.html#GimpImageBaseType"
>GimpImageBaseType</a> <a class="link" href="libgimp-gimpbuffer.html#gimp-buffer-get-image-type">gimp_buffer_get_image_type</a> (const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *buffer_name);
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id2576413"></a><h2>Description</h2>
<p>
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2576429"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="id2576440"></a><h3>
<a name="gimp-buffers-get-list"></a>gimp_buffers_get_list ()</h3>
<a class="indexterm" name="id2576453"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a>** gimp_buffers_get_list (const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *filter,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *num_buffers);</pre>
<p>
Retrieve a complete listing of the available buffers.
</p>
<p>
This procedure returns a complete listing of available named
buffers.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>filter</code></em>&#160;:</span></p></td>
<td> An optional regular expression used to filter the list.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>num_buffers</code></em>&#160;:</span></p></td>
<td> The number of buffers.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> The list of buffer names.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since GIMP 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2584733"></a><h3>
<a name="gimp-buffer-rename"></a>gimp_buffer_rename ()</h3>
<a class="indexterm" name="id2584747"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a>* gimp_buffer_rename (const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *buffer_name,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *new_name);</pre>
<p>
Renames a named buffer.
</p>
<p>
This procedure renames a named buffer.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>buffer_name</code></em>&#160;:</span></p></td>
<td> The buffer name.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>new_name</code></em>&#160;:</span></p></td>
<td> The buffer's new name.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> The real name given to the buffer.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since GIMP 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2574789"></a><h3>
<a name="gimp-buffer-delete"></a>gimp_buffer_delete ()</h3>
<a class="indexterm" name="id2574803"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gimp_buffer_delete (const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *buffer_name);</pre>
<p>
Deletes a named buffer.
</p>
<p>
This procedure deletes a named buffer.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>buffer_name</code></em>&#160;:</span></p></td>
<td> The buffer name.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> TRUE on success.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since GIMP 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2574874"></a><h3>
<a name="gimp-buffer-get-width"></a>gimp_buffer_get_width ()</h3>
<a class="indexterm" name="id2574888"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> gimp_buffer_get_width (const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *buffer_name);</pre>
<p>
Retrieves the specified buffer's width.
</p>
<p>
This procedure retrieves the specified named buffer's width.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>buffer_name</code></em>&#160;:</span></p></td>
<td> The buffer name.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> The buffer width.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since GIMP 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2574959"></a><h3>
<a name="gimp-buffer-get-height"></a>gimp_buffer_get_height ()</h3>
<a class="indexterm" name="id2574973"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> gimp_buffer_get_height (const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *buffer_name);</pre>
<p>
Retrieves the specified buffer's height.
</p>
<p>
This procedure retrieves the specified named buffer's height.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>buffer_name</code></em>&#160;:</span></p></td>
<td> The buffer name.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> The buffer height.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since GIMP 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2619526"></a><h3>
<a name="gimp-buffer-get-bytes"></a>gimp_buffer_get_bytes ()</h3>
<a class="indexterm" name="id2619540"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> gimp_buffer_get_bytes (const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *buffer_name);</pre>
<p>
Retrieves the specified buffer's bytes.
</p>
<p>
This procedure retrieves the specified named buffer's bytes.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>buffer_name</code></em>&#160;:</span></p></td>
<td> The buffer name.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> The buffer bpp.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since GIMP 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2619612"></a><h3>
<a name="gimp-buffer-get-image-type"></a>gimp_buffer_get_image_type ()</h3>
<a class="indexterm" name="id2619626"></a><pre class="programlisting"><a
href="../libgimpbase/libgimpbase-gimpbaseenums.html#GimpImageBaseType"
>GimpImageBaseType</a> gimp_buffer_get_image_type (const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *buffer_name);</pre>
<p>
Retrieves the specified buffer's image type.
</p>
<p>
This procedure retrieves the specified named buffer's image type.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>buffer_name</code></em>&#160;:</span></p></td>
<td> The buffer name.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> The buffer image type.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since GIMP 2.4
</p>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id2619700"></a><div class="refsect2" lang="en"><a name="id2619701"></a></div>
<hr>
<div class="refsect2" lang="en"><a name="id2619702"></a></div>
</div>
</div>
</body>
</html>