Imported Upstream version 2.4.6

This commit is contained in:
Ari Pollak
2010-08-11 01:24:52 -04:00
parent 9398f19fe7
commit 478f5ecc84
539 changed files with 157836 additions and 69286 deletions

View File

@ -1,21 +1,21 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>gimpcontext</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-gimpbuffer.html" title="gimpbuffer">
<link rel="next" href="libgimp-gimpgimprc.html" title="gimpgimprc">
<meta name="generator" content="GTK-Doc V1.9 (XML mode)">
<meta name="generator" content="GTK-Doc V1.10 (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="part" href="libgimp.html" title="Part I. 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="part" href="libgimpui.html" title="Part II. 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">
@ -31,142 +31,136 @@
<th width="100%" align="center">GIMP Library Reference Manual</th>
<td><a accesskey="n" href="libgimp-gimpgimprc.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="#id2613805" class="shortcut">Top</a>
&#160;|&#160;
<a href="#id2616350" class="shortcut">Description</a></nobr></td></tr>
<tr><td colspan="5" class="shortcuts"><nobr><a href="#libgimp-gimpcontext.synopsis" class="shortcut">Top</a>
 | 
<a href="#libgimp-gimpcontext.description" class="shortcut">Description</a></nobr></td></tr>
</table>
<div class="refentry" lang="en">
<a name="libgimp-gimpcontext"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2>
<a name="id2613805"></a><span class="refentrytitle">gimpcontext</span>
</h2>
<p>gimpcontext &#8212; Functions to manipulate a plug-in's context.</p>
<h2><span class="refentrytitle"><a name="libgimp-gimpcontext.top_of_page"></a>gimpcontext</span></h2>
<p>gimpcontext — Functions to manipulate a plug-in's context.</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<h2>Synopsis</h2>
<a name="libgimp-gimpcontext.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpcontext.html#gimp-context-push">gimp_context_push</a> (void);
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpcontext.html#gimp-context-push" title="gimp_context_push ()">gimp_context_push</a> (void);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpcontext.html#gimp-context-pop">gimp_context_pop</a> (void);
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpcontext.html#gimp-context-pop" title="gimp_context_pop ()">gimp_context_pop</a> (void);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpcontext.html#gimp-context-get-foreground">gimp_context_get_foreground</a> (<a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpcontext.html#gimp-context-get-foreground" title="gimp_context_get_foreground ()">gimp_context_get_foreground</a> (<a
href="/usr/share/gtk-doc/html/libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *foreground);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpcontext.html#gimp-context-set-foreground">gimp_context_set_foreground</a> (const <a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpcontext.html#gimp-context-set-foreground" title="gimp_context_set_foreground ()">gimp_context_set_foreground</a> (const <a
href="/usr/share/gtk-doc/html/libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *foreground);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpcontext.html#gimp-context-get-background">gimp_context_get_background</a> (<a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpcontext.html#gimp-context-get-background" title="gimp_context_get_background ()">gimp_context_get_background</a> (<a
href="/usr/share/gtk-doc/html/libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *background);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpcontext.html#gimp-context-set-background">gimp_context_set_background</a> (const <a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpcontext.html#gimp-context-set-background" title="gimp_context_set_background ()">gimp_context_set_background</a> (const <a
href="/usr/share/gtk-doc/html/libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *background);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpcontext.html#gimp-context-set-default-colors">gimp_context_set_default_colors</a> (void);
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpcontext.html#gimp-context-set-default-colors" title="gimp_context_set_default_colors ()">gimp_context_set_default_colors</a> (void);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpcontext.html#gimp-context-swap-colors">gimp_context_swap_colors</a> (void);
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpcontext.html#gimp-context-swap-colors" title="gimp_context_swap_colors ()">gimp_context_swap_colors</a> (void);
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> <a class="link" href="libgimp-gimpcontext.html#gimp-context-get-opacity">gimp_context_get_opacity</a> (void);
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> <a class="link" href="libgimp-gimpcontext.html#gimp-context-get-opacity" title="gimp_context_get_opacity ()">gimp_context_get_opacity</a> (void);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpcontext.html#gimp-context-set-opacity">gimp_context_set_opacity</a> (<a
href="../glib/glib-Basic-Types.html#gdouble"
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpcontext.html#gimp-context-set-opacity" title="gimp_context_set_opacity ()">gimp_context_set_opacity</a> (<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> opacity);
<a class="link" href="libgimp-gimpenums.html#GimpLayerModeEffects">GimpLayerModeEffects</a> <a class="link" href="libgimp-gimpcontext.html#gimp-context-get-paint-mode">gimp_context_get_paint_mode</a> (void);
<a class="link" href="libgimp-gimpenums.html#GimpLayerModeEffects" title="enum GimpLayerModeEffects">GimpLayerModeEffects</a> <a class="link" href="libgimp-gimpcontext.html#gimp-context-get-paint-mode" title="gimp_context_get_paint_mode ()">gimp_context_get_paint_mode</a> (void);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpcontext.html#gimp-context-set-paint-mode">gimp_context_set_paint_mode</a> (<a class="link" href="libgimp-gimpenums.html#GimpLayerModeEffects">GimpLayerModeEffects</a> paint_mode);
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpcontext.html#gimp-context-set-paint-mode" title="gimp_context_set_paint_mode ()">gimp_context_set_paint_mode</a> (<a class="link" href="libgimp-gimpenums.html#GimpLayerModeEffects" title="enum GimpLayerModeEffects">GimpLayerModeEffects</a> paint_mode);
<a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a>* <a class="link" href="libgimp-gimpcontext.html#gimp-context-get-brush">gimp_context_get_brush</a> (void);
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>* <a class="link" href="libgimp-gimpcontext.html#gimp-context-get-brush" title="gimp_context_get_brush ()">gimp_context_get_brush</a> (void);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpcontext.html#gimp-context-set-brush">gimp_context_set_brush</a> (const <a
href="../glib/glib-Basic-Types.html#gchar"
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpcontext.html#gimp-context-set-brush" title="gimp_context_set_brush ()">gimp_context_set_brush</a> (const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *name);
<a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a>* <a class="link" href="libgimp-gimpcontext.html#gimp-context-get-pattern">gimp_context_get_pattern</a> (void);
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>* <a class="link" href="libgimp-gimpcontext.html#gimp-context-get-pattern" title="gimp_context_get_pattern ()">gimp_context_get_pattern</a> (void);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpcontext.html#gimp-context-set-pattern">gimp_context_set_pattern</a> (const <a
href="../glib/glib-Basic-Types.html#gchar"
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpcontext.html#gimp-context-set-pattern" title="gimp_context_set_pattern ()">gimp_context_set_pattern</a> (const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *name);
<a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a>* <a class="link" href="libgimp-gimpcontext.html#gimp-context-get-gradient">gimp_context_get_gradient</a> (void);
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>* <a class="link" href="libgimp-gimpcontext.html#gimp-context-get-gradient" title="gimp_context_get_gradient ()">gimp_context_get_gradient</a> (void);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpcontext.html#gimp-context-set-gradient">gimp_context_set_gradient</a> (const <a
href="../glib/glib-Basic-Types.html#gchar"
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpcontext.html#gimp-context-set-gradient" title="gimp_context_set_gradient ()">gimp_context_set_gradient</a> (const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *name);
<a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a>* <a class="link" href="libgimp-gimpcontext.html#gimp-context-get-palette">gimp_context_get_palette</a> (void);
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>* <a class="link" href="libgimp-gimpcontext.html#gimp-context-get-palette" title="gimp_context_get_palette ()">gimp_context_get_palette</a> (void);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpcontext.html#gimp-context-set-palette">gimp_context_set_palette</a> (const <a
href="../glib/glib-Basic-Types.html#gchar"
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpcontext.html#gimp-context-set-palette" title="gimp_context_set_palette ()">gimp_context_set_palette</a> (const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *name);
<a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a>* <a class="link" href="libgimp-gimpcontext.html#gimp-context-get-font">gimp_context_get_font</a> (void);
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>* <a class="link" href="libgimp-gimpcontext.html#gimp-context-get-font" title="gimp_context_get_font ()">gimp_context_get_font</a> (void);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpcontext.html#gimp-context-set-font">gimp_context_set_font</a> (const <a
href="../glib/glib-Basic-Types.html#gchar"
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpcontext.html#gimp-context-set-font" title="gimp_context_set_font ()">gimp_context_set_font</a> (const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *name);
<a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a>* <a class="link" href="libgimp-gimpcontext.html#gimp-context-get-paint-method">gimp_context_get_paint_method</a> (void);
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>* <a class="link" href="libgimp-gimpcontext.html#gimp-context-get-paint-method" title="gimp_context_get_paint_method ()">gimp_context_get_paint_method</a> (void);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpcontext.html#gimp-context-set-paint-method">gimp_context_set_paint_method</a> (const <a
href="../glib/glib-Basic-Types.html#gchar"
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpcontext.html#gimp-context-set-paint-method" title="gimp_context_set_paint_method ()">gimp_context_set_paint_method</a> (const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *name);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpcontext.html#gimp-context-list-paint-methods">gimp_context_list_paint_methods</a> (<a
href="../glib/glib-Basic-Types.html#gint"
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpcontext.html#gimp-context-list-paint-methods" title="gimp_context_list_paint_methods ()">gimp_context_list_paint_methods</a> (<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *num_paint_methods,
<a
href="../glib/glib-Basic-Types.html#gchar"
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> ***paint_methods);
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id2616350"></a><h2>Description</h2>
<a name="libgimp-gimpcontext.description"></a><h2>Description</h2>
<p>
Functions to manipulate a plug-in's context.
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2616366"></a><h2>Details</h2>
<a name="libgimp-gimpcontext.details"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="id2616377"></a><h3>
<a name="gimp-context-push"></a>gimp_context_push ()</h3>
<a class="indexterm" name="id2616392"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
<a name="gimp-context-push"></a><h3>gimp_context_push ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gimp_context_push (void);</pre>
<p>
Pushes a context to the top of the plug-in's context stack.
@ -174,14 +168,14 @@ Pushes a context to the top of the plug-in's context stack.
<p>
This procedure creates a new context by copying the current context.
This copy becomes the new current context for the calling plug-in
until it is popped again using <a class="link" href="libgimp-gimpcontext.html#gimp-context-pop"><code class="function">gimp_context_pop()</code></a>.</p>
until it is popped again using <a class="link" href="libgimp-gimpcontext.html#gimp-context-pop" title="gimp_context_pop ()"><code class="function">gimp_context_pop()</code></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> TRUE on success.
</td>
@ -192,10 +186,9 @@ until it is popped again using <a class="link" href="libgimp-gimpcontext.html#gi
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2616456"></a><h3>
<a name="gimp-context-pop"></a>gimp_context_pop ()</h3>
<a class="indexterm" name="id2616471"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
<a name="gimp-context-pop"></a><h3>gimp_context_pop ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gimp_context_pop (void);</pre>
<p>
Pops the topmost context from the plug-in's context stack.
@ -203,7 +196,7 @@ Pops the topmost context from the plug-in's context stack.
<p>
This procedure removes the topmost context from the plug-in's
context stack. The context that was active before the corresponding
call to <a class="link" href="libgimp-gimpcontext.html#gimp-context-push"><code class="function">gimp_context_push()</code></a> becomes the new current context of the
call to <a class="link" href="libgimp-gimpcontext.html#gimp-context-push" title="gimp_context_push ()"><code class="function">gimp_context_push()</code></a> becomes the new current context of the
plug-in.</p>
<p>
@ -211,7 +204,7 @@ plug-in.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> TRUE on success.
</td>
@ -222,12 +215,11 @@ plug-in.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2616535"></a><h3>
<a name="gimp-context-get-foreground"></a>gimp_context_get_foreground ()</h3>
<a class="indexterm" name="id2616549"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
<a name="gimp-context-get-foreground"></a><h3>gimp_context_get_foreground ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gimp_context_get_foreground (<a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
href="/usr/share/gtk-doc/html/libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *foreground);</pre>
<p>
Get the current GIMP foreground color.
@ -243,12 +235,12 @@ blending, and bucket fill.</p>
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>foreground</code></em>&#160;:</span></p></td>
<td><p><span class="term"><em class="parameter"><code>foreground</code></em> :</span></p></td>
<td> The foreground color.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> TRUE on success.
</td>
@ -260,12 +252,11 @@ blending, and bucket fill.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2617175"></a><h3>
<a name="gimp-context-set-foreground"></a>gimp_context_set_foreground ()</h3>
<a class="indexterm" name="id2617189"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
<a name="gimp-context-set-foreground"></a><h3>gimp_context_set_foreground ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gimp_context_set_foreground (const <a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
href="/usr/share/gtk-doc/html/libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *foreground);</pre>
<p>
Set the current GIMP foreground color.
@ -281,12 +272,12 @@ and bucket fill will use the new value.</p>
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>foreground</code></em>&#160;:</span></p></td>
<td><p><span class="term"><em class="parameter"><code>foreground</code></em> :</span></p></td>
<td> The foreground color.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> TRUE on success.
</td>
@ -298,12 +289,11 @@ and bucket fill will use the new value.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2617262"></a><h3>
<a name="gimp-context-get-background"></a>gimp_context_get_background ()</h3>
<a class="indexterm" name="id2617276"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
<a name="gimp-context-get-background"></a><h3>gimp_context_get_background ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gimp_context_get_background (<a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
href="/usr/share/gtk-doc/html/libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *background);</pre>
<p>
Get the current GIMP background color.
@ -319,12 +309,12 @@ erasing (with non-alpha images), and image filling.</p>
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>background</code></em>&#160;:</span></p></td>
<td><p><span class="term"><em class="parameter"><code>background</code></em> :</span></p></td>
<td> The background color.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> TRUE on success.
</td>
@ -336,12 +326,11 @@ erasing (with non-alpha images), and image filling.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2617349"></a><h3>
<a name="gimp-context-set-background"></a>gimp_context_set_background ()</h3>
<a class="indexterm" name="id2617363"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
<a name="gimp-context-set-background"></a><h3>gimp_context_set_background ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gimp_context_set_background (const <a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
href="/usr/share/gtk-doc/html/libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *background);</pre>
<p>
Set the current GIMP background color.
@ -358,12 +347,12 @@ value.</p>
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>background</code></em>&#160;:</span></p></td>
<td><p><span class="term"><em class="parameter"><code>background</code></em> :</span></p></td>
<td> The background color.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> TRUE on success.
</td>
@ -375,10 +364,9 @@ value.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2624387"></a><h3>
<a name="gimp-context-set-default-colors"></a>gimp_context_set_default_colors ()</h3>
<a class="indexterm" name="id2624399"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
<a name="gimp-context-set-default-colors"></a><h3>gimp_context_set_default_colors ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gimp_context_set_default_colors (void);</pre>
<p>
Set the current GIMP foreground and background colors to black and
@ -393,7 +381,7 @@ colors to their initial default values, black and white.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> TRUE on success.
</td>
@ -404,10 +392,9 @@ colors to their initial default values, black and white.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2624448"></a><h3>
<a name="gimp-context-swap-colors"></a>gimp_context_swap_colors ()</h3>
<a class="indexterm" name="id2624460"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
<a name="gimp-context-swap-colors"></a><h3>gimp_context_swap_colors ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gimp_context_swap_colors (void);</pre>
<p>
Swap the current GIMP foreground and background colors.
@ -422,7 +409,7 @@ color and vice versa.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> TRUE on success.
</td>
@ -433,10 +420,9 @@ color and vice versa.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2624509"></a><h3>
<a name="gimp-context-get-opacity"></a>gimp_context_get_opacity ()</h3>
<a class="indexterm" name="id2624521"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gdouble"
<a name="gimp-context-get-opacity"></a><h3>gimp_context_get_opacity ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> gimp_context_get_opacity (void);</pre>
<p>
Get the opacity.
@ -450,7 +436,7 @@ floating point number between 0 and 100.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> The opacity.
</td>
@ -461,12 +447,11 @@ floating point number between 0 and 100.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2624568"></a><h3>
<a name="gimp-context-set-opacity"></a>gimp_context_set_opacity ()</h3>
<a class="indexterm" name="id2624581"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
<a name="gimp-context-set-opacity"></a><h3>gimp_context_set_opacity ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gimp_context_set_opacity (<a
href="../glib/glib-Basic-Types.html#gdouble"
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> opacity);</pre>
<p>
Set the opacity.
@ -481,12 +466,12 @@ floating point number between 0 and 100.</p>
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>opacity</code></em>&#160;:</span></p></td>
<td><p><span class="term"><em class="parameter"><code>opacity</code></em> :</span></p></td>
<td> The opacity.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> TRUE on success.
</td>
@ -498,9 +483,8 @@ floating point number between 0 and 100.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2624646"></a><h3>
<a name="gimp-context-get-paint-mode"></a>gimp_context_get_paint_mode ()</h3>
<a class="indexterm" name="id2624658"></a><pre class="programlisting"><a class="link" href="libgimp-gimpenums.html#GimpLayerModeEffects">GimpLayerModeEffects</a> gimp_context_get_paint_mode (void);</pre>
<a name="gimp-context-get-paint-mode"></a><h3>gimp_context_get_paint_mode ()</h3>
<pre class="programlisting"><a class="link" href="libgimp-gimpenums.html#GimpLayerModeEffects" title="enum GimpLayerModeEffects">GimpLayerModeEffects</a> gimp_context_get_paint_mode (void);</pre>
<p>
Get the paint mode.
</p>
@ -514,7 +498,7 @@ description.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> The paint mode.
</td>
@ -525,11 +509,10 @@ description.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2624704"></a><h3>
<a name="gimp-context-set-paint-mode"></a>gimp_context_set_paint_mode ()</h3>
<a class="indexterm" name="id2624717"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gimp_context_set_paint_mode (<a class="link" href="libgimp-gimpenums.html#GimpLayerModeEffects">GimpLayerModeEffects</a> paint_mode);</pre>
<a name="gimp-context-set-paint-mode"></a><h3>gimp_context_set_paint_mode ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gimp_context_set_paint_mode (<a class="link" href="libgimp-gimpenums.html#GimpLayerModeEffects" title="enum GimpLayerModeEffects">GimpLayerModeEffects</a> paint_mode);</pre>
<p>
Set the paint mode.
</p>
@ -542,12 +525,12 @@ This procedure modifies the paint_mode setting.</p>
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>paint_mode</code></em>&#160;:</span></p></td>
<td><p><span class="term"><em class="parameter"><code>paint_mode</code></em> :</span></p></td>
<td> The paint mode.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> TRUE on success.
</td>
@ -559,10 +542,9 @@ This procedure modifies the paint_mode setting.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2624781"></a><h3>
<a name="gimp-context-get-brush"></a>gimp_context_get_brush ()</h3>
<a class="indexterm" name="id2624793"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gchar"
<a name="gimp-context-get-brush"></a><h3>gimp_context_get_brush ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>* gimp_context_get_brush (void);</pre>
<p>
Retrieve the currently active brush.
@ -577,7 +559,7 @@ application of paint to the image.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> The name of the active brush.
</td>
@ -588,12 +570,11 @@ application of paint to the image.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2624842"></a><h3>
<a name="gimp-context-set-brush"></a>gimp_context_set_brush ()</h3>
<a class="indexterm" name="id2624855"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
<a name="gimp-context-set-brush"></a><h3>gimp_context_set_brush ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gimp_context_set_brush (const <a
href="../glib/glib-Basic-Types.html#gchar"
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *name);</pre>
<p>
Set the specified brush as the active brush.
@ -611,12 +592,12 @@ becomes active and will be used in all subsequent paint operations.</p>
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em>&#160;:</span></p></td>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td> The name of the brush.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> TRUE on success.
</td>
@ -628,10 +609,9 @@ becomes active and will be used in all subsequent paint operations.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2624924"></a><h3>
<a name="gimp-context-get-pattern"></a>gimp_context_get_pattern ()</h3>
<a class="indexterm" name="id2624937"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gchar"
<a name="gimp-context-get-pattern"></a><h3>gimp_context_get_pattern ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>* gimp_context_get_pattern (void);</pre>
<p>
Retrieve the currently active pattern.
@ -646,7 +626,7 @@ to control the application of paint to the image.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> The name of the active pattern.
</td>
@ -657,12 +637,11 @@ to control the application of paint to the image.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2624987"></a><h3>
<a name="gimp-context-set-pattern"></a>gimp_context_set_pattern ()</h3>
<a class="indexterm" name="id2624999"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
<a name="gimp-context-set-pattern"></a><h3>gimp_context_set_pattern ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gimp_context_set_pattern (const <a
href="../glib/glib-Basic-Types.html#gchar"
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *name);</pre>
<p>
Set the specified pattern as the active pattern.
@ -681,12 +660,12 @@ operations.</p>
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em>&#160;:</span></p></td>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td> The name of the pattern.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> TRUE on success.
</td>
@ -698,10 +677,9 @@ operations.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2625069"></a><h3>
<a name="gimp-context-get-gradient"></a>gimp_context_get_gradient ()</h3>
<a class="indexterm" name="id2625082"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gchar"
<a name="gimp-context-get-gradient"></a><h3>gimp_context_get_gradient ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>* gimp_context_get_gradient (void);</pre>
<p>
Retrieve the currently active gradient.
@ -714,7 +692,7 @@ This procedure returns the name of the currently active gradient.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> The name of the active gradient.
</td>
@ -725,12 +703,11 @@ This procedure returns the name of the currently active gradient.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2625130"></a><h3>
<a name="gimp-context-set-gradient"></a>gimp_context_set_gradient ()</h3>
<a class="indexterm" name="id2625143"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
<a name="gimp-context-set-gradient"></a><h3>gimp_context_set_gradient ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gimp_context_set_gradient (const <a
href="../glib/glib-Basic-Types.html#gchar"
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *name);</pre>
<p>
Sets the specified gradient as the active gradient.
@ -749,12 +726,12 @@ operations.</p>
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em>&#160;:</span></p></td>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td> The name of the gradient.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> TRUE on success.
</td>
@ -766,10 +743,9 @@ operations.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2625213"></a><h3>
<a name="gimp-context-get-palette"></a>gimp_context_get_palette ()</h3>
<a class="indexterm" name="id2625225"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gchar"
<a name="gimp-context-get-palette"></a><h3>gimp_context_get_palette ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>* gimp_context_get_palette (void);</pre>
<p>
Retrieve the currently active palette.
@ -782,7 +758,7 @@ This procedure returns the name of the the currently active palette.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> The name of the active palette.
</td>
@ -793,12 +769,11 @@ This procedure returns the name of the the currently active palette.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2625273"></a><h3>
<a name="gimp-context-set-palette"></a>gimp_context_set_palette ()</h3>
<a class="indexterm" name="id2625285"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
<a name="gimp-context-set-palette"></a><h3>gimp_context_set_palette ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gimp_context_set_palette (const <a
href="../glib/glib-Basic-Types.html#gchar"
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *name);</pre>
<p>
Set the specified palette as the active palette.
@ -817,12 +792,12 @@ operations.</p>
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em>&#160;:</span></p></td>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td> The name of the palette.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> TRUE on success.
</td>
@ -834,10 +809,9 @@ operations.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2625355"></a><h3>
<a name="gimp-context-get-font"></a>gimp_context_get_font ()</h3>
<a class="indexterm" name="id2625367"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gchar"
<a name="gimp-context-get-font"></a><h3>gimp_context_get_font ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>* gimp_context_get_font (void);</pre>
<p>
Retrieve the currently active font.
@ -850,7 +824,7 @@ This procedure returns the name of the currently active font.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> The name of the active font.
</td>
@ -861,12 +835,11 @@ This procedure returns the name of the currently active font.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2625415"></a><h3>
<a name="gimp-context-set-font"></a>gimp_context_set_font ()</h3>
<a class="indexterm" name="id2625428"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
<a name="gimp-context-set-font"></a><h3>gimp_context_set_font ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gimp_context_set_font (const <a
href="../glib/glib-Basic-Types.html#gchar"
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *name);</pre>
<p>
Set the specified font as the active font.
@ -884,12 +857,12 @@ becomes active and will be used in all subsequent font operations.</p>
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em>&#160;:</span></p></td>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td> The name of the font.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> TRUE on success.
</td>
@ -901,10 +874,9 @@ becomes active and will be used in all subsequent font operations.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2625497"></a><h3>
<a name="gimp-context-get-paint-method"></a>gimp_context_get_paint_method ()</h3>
<a class="indexterm" name="id2625511"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gchar"
<a name="gimp-context-get-paint-method"></a><h3>gimp_context_get_paint_method ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>* gimp_context_get_paint_method (void);</pre>
<p>
Retrieve the currently active paint method.
@ -918,7 +890,7 @@ method.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> The name of the active paint method.
</td>
@ -929,12 +901,11 @@ method.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2625560"></a><h3>
<a name="gimp-context-set-paint-method"></a>gimp_context_set_paint_method ()</h3>
<a class="indexterm" name="id2625575"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
<a name="gimp-context-set-paint-method"></a><h3>gimp_context_set_paint_method ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gimp_context_set_paint_method (const <a
href="../glib/glib-Basic-Types.html#gchar"
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *name);</pre>
<p>
Set the specified paint method as the active paint method.
@ -953,12 +924,12 @@ all subsequent paint operations.</p>
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em>&#160;:</span></p></td>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td> The name of the paint method.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> TRUE on success.
</td>
@ -970,22 +941,21 @@ all subsequent paint operations.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2625646"></a><h3>
<a name="gimp-context-list-paint-methods"></a>gimp_context_list_paint_methods ()</h3>
<a class="indexterm" name="id2625660"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
<a name="gimp-context-list-paint-methods"></a><h3>gimp_context_list_paint_methods ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gimp_context_list_paint_methods (<a
href="../glib/glib-Basic-Types.html#gint"
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *num_paint_methods,
<a
href="../glib/glib-Basic-Types.html#gchar"
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> ***paint_methods);</pre>
<p>
Lists the available paint methods.
</p>
<p>
This procedure lists the names of the available paint methods. Any
of the results can be used for <a class="link" href="libgimp-gimpcontext.html#gimp-context-set-paint-method"><code class="function">gimp_context_set_paint_method()</code></a>.</p>
of the results can be used for <a class="link" href="libgimp-gimpcontext.html#gimp-context-set-paint-method" title="gimp_context_set_paint_method ()"><code class="function">gimp_context_set_paint_method()</code></a>.</p>
<p>
</p>
@ -993,17 +963,17 @@ of the results can be used for <a class="link" href="libgimp-gimpcontext.html#gi
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>num_paint_methods</code></em>&#160;:</span></p></td>
<td><p><span class="term"><em class="parameter"><code>num_paint_methods</code></em> :</span></p></td>
<td> The number of the available paint methods.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>paint_methods</code></em>&#160;:</span></p></td>
<td><p><span class="term"><em class="parameter"><code>paint_methods</code></em> :</span></p></td>
<td> The names of the available paint methods.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> TRUE on success.
</td>
@ -1014,11 +984,9 @@ of the results can be used for <a class="link" href="libgimp-gimpcontext.html#gi
</p>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id2625758"></a><div class="refsect2" lang="en"><a name="id2625759"></a></div>
</div>
<div class="footer">
<hr>
<div class="refsect2" lang="en"><a name="id2625760"></a></div>
</div>
</div>
Generated by GTK-Doc V1.10</div>
</body>
</html>