Imported Upstream version 2.3.18

This commit is contained in:
Ari Pollak
2010-08-11 01:21:39 -04:00
parent 2e1d89b96f
commit 50ca37e277
1279 changed files with 155433 additions and 58921 deletions

View File

@ -31,16 +31,16 @@
<th width="100%" align="center">GIMP Library Reference Manual</th>
<td><a accesskey="n" href="libgimp-gimpbrushes.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="#id2568243" class="shortcut">Top</a>
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2597821" class="shortcut">Top</a>
&#160;|&#160;
<a href="#id2684357" class="shortcut">Description</a></nobr></td></tr>
<a href="#id2684432" class="shortcut">Description</a></nobr></td></tr>
</table>
<div class="refentry" lang="en">
<a name="libgimp-gimpbrush"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2>
<a name="id2568243"></a><span class="refentrytitle">gimpbrush</span>
<a name="id2597821"></a><span class="refentrytitle">gimpbrush</span>
</h2>
<p>gimpbrush &#8212; Functions operating on a single brush.</p>
</td>
@ -98,17 +98,17 @@ gboolean <a href="libgimp-gimpbrush.html#gimp-brush-is-editable">gimp
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id2684357"></a><h2>Description</h2>
<a name="id2684432"></a><h2>Description</h2>
<p>
Functions operating on a single brush.
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2684373"></a><h2>Details</h2>
<a name="id2684447"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="id2684383"></a><h3>
<a name="id2684457"></a><h3>
<a name="gimp-brush-new"></a>gimp_brush_new ()</h3>
<a class="indexterm" name="id2684396"></a><pre class="programlisting">gchar* gimp_brush_new (const gchar *name);</pre>
<a class="indexterm" name="id2684471"></a><pre class="programlisting">gchar* gimp_brush_new (const gchar *name);</pre>
<p>
Creates a new brush
</p>
@ -138,9 +138,9 @@ This procedure creates a new, uninitialized brush</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2684466"></a><h3>
<a name="id2684541"></a><h3>
<a name="gimp-brush-duplicate"></a>gimp_brush_duplicate ()</h3>
<a class="indexterm" name="id2684480"></a><pre class="programlisting">gchar* gimp_brush_duplicate (const gchar *name);</pre>
<a class="indexterm" name="id2684554"></a><pre class="programlisting">gchar* gimp_brush_duplicate (const gchar *name);</pre>
<p>
Duplicates a brush
</p>
@ -170,9 +170,9 @@ This procedure creates an identical brush by a different name</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2684550"></a><h3>
<a name="id2684624"></a><h3>
<a name="gimp-brush-rename"></a>gimp_brush_rename ()</h3>
<a class="indexterm" name="id2684563"></a><pre class="programlisting">gchar* gimp_brush_rename (const gchar *name,
<a class="indexterm" name="id2684637"></a><pre class="programlisting">gchar* gimp_brush_rename (const gchar *name,
const gchar *new_name);</pre>
<p>
Rename a brush
@ -208,9 +208,9 @@ This procedure renames a brush</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2684653"></a><h3>
<a name="id2684727"></a><h3>
<a name="gimp-brush-delete"></a>gimp_brush_delete ()</h3>
<a class="indexterm" name="id2684666"></a><pre class="programlisting">gboolean gimp_brush_delete (const gchar *name);</pre>
<a class="indexterm" name="id2684740"></a><pre class="programlisting">gboolean gimp_brush_delete (const gchar *name);</pre>
<p>
Deletes a brush
</p>
@ -240,9 +240,9 @@ This procedure deletes a brush</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2672108"></a><h3>
<a name="id2684809"></a><h3>
<a name="gimp-brush-get-info"></a>gimp_brush_get_info ()</h3>
<a class="indexterm" name="id2672121"></a><pre class="programlisting">gboolean gimp_brush_get_info (const gchar *name,
<a class="indexterm" name="id2672225"></a><pre class="programlisting">gboolean gimp_brush_get_info (const gchar *name,
gint *width,
gint *height,
gint *mask_bpp,
@ -297,9 +297,9 @@ includes the brush name, and the brush extents (width and height).</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2672277"></a><h3>
<a name="id2672381"></a><h3>
<a name="gimp-brush-get-pixels"></a>gimp_brush_get_pixels ()</h3>
<a class="indexterm" name="id2672290"></a><pre class="programlisting">gboolean gimp_brush_get_pixels (const gchar *name,
<a class="indexterm" name="id2672394"></a><pre class="programlisting">gboolean gimp_brush_get_pixels (const gchar *name,
gint *width,
gint *height,
gint *mask_bpp,
@ -378,9 +378,9 @@ includes the brush extents (width and height) and its pixels data.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2672533"></a><h3>
<a name="id2672634"></a><h3>
<a name="gimp-brush-get-spacing"></a>gimp_brush_get_spacing ()</h3>
<a class="indexterm" name="id2672547"></a><pre class="programlisting">gboolean gimp_brush_get_spacing (const gchar *name,
<a class="indexterm" name="id2672647"></a><pre class="programlisting">gboolean gimp_brush_get_spacing (const gchar *name,
gint *spacing);</pre>
<p>
Get the brush spacing.
@ -418,9 +418,9 @@ percentage of the maximum of the width and height of the mask.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2672642"></a><h3>
<a name="id2672740"></a><h3>
<a name="gimp-brush-set-spacing"></a>gimp_brush_set_spacing ()</h3>
<a class="indexterm" name="id2672656"></a><pre class="programlisting">gboolean gimp_brush_set_spacing (const gchar *name,
<a class="indexterm" name="id2672754"></a><pre class="programlisting">gboolean gimp_brush_set_spacing (const gchar *name,
gint spacing);</pre>
<p>
Set the brush spacing.
@ -457,9 +457,9 @@ The value should be a integer between 0 and 1000.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2672749"></a><h3>
<a name="id2672846"></a><h3>
<a name="gimp-brush-get-shape"></a>gimp_brush_get_shape ()</h3>
<a class="indexterm" name="id2672763"></a><pre class="programlisting"><a href="libgimp-gimpenums.html#GimpBrushGeneratedShape">GimpBrushGeneratedShape</a> gimp_brush_get_shape (const gchar *name);</pre>
<a class="indexterm" name="id2672859"></a><pre class="programlisting"><a href="libgimp-gimpenums.html#GimpBrushGeneratedShape">GimpBrushGeneratedShape</a> gimp_brush_get_shape (const gchar *name);</pre>
<p>
Get the shape of a generated brush.
</p>
@ -494,9 +494,9 @@ in the future.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2672837"></a><h3>
<a name="id2672932"></a><h3>
<a name="gimp-brush-set-shape"></a>gimp_brush_set_shape ()</h3>
<a class="indexterm" name="id2672851"></a><pre class="programlisting"><a href="libgimp-gimpenums.html#GimpBrushGeneratedShape">GimpBrushGeneratedShape</a> gimp_brush_set_shape (const gchar *name,
<a class="indexterm" name="id2672945"></a><pre class="programlisting"><a href="libgimp-gimpenums.html#GimpBrushGeneratedShape">GimpBrushGeneratedShape</a> gimp_brush_set_shape (const gchar *name,
<a href="libgimp-gimpenums.html#GimpBrushGeneratedShape">GimpBrushGeneratedShape</a> shape_in);</pre>
<p>
Set the shape of a generated brush.
@ -537,9 +537,9 @@ in the future.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2672946"></a><h3>
<a name="id2673038"></a><h3>
<a name="gimp-brush-get-spikes"></a>gimp_brush_get_spikes ()</h3>
<a class="indexterm" name="id2672960"></a><pre class="programlisting">gint gimp_brush_get_spikes (const gchar *name);</pre>
<a class="indexterm" name="id2673052"></a><pre class="programlisting">gint gimp_brush_get_spikes (const gchar *name);</pre>
<p>
Get the number of spikes for a generated brush.
</p>
@ -570,9 +570,9 @@ called for any other type of brush, it does not succeed.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2673033"></a><h3>
<a name="id2673124"></a><h3>
<a name="gimp-brush-set-spikes"></a>gimp_brush_set_spikes ()</h3>
<a class="indexterm" name="id2673047"></a><pre class="programlisting">gint gimp_brush_set_spikes (const gchar *name,
<a class="indexterm" name="id2673137"></a><pre class="programlisting">gint gimp_brush_set_spikes (const gchar *name,
gint spikes_in);</pre>
<p>
Set the number of spikes for a generated brush.
@ -609,9 +609,9 @@ called for any other type of brush, it does not succeed.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2673141"></a><h3>
<a name="id2673230"></a><h3>
<a name="gimp-brush-get-angle"></a>gimp_brush_get_angle ()</h3>
<a class="indexterm" name="id2673155"></a><pre class="programlisting">gdouble gimp_brush_get_angle (const gchar *name);</pre>
<a class="indexterm" name="id2673243"></a><pre class="programlisting">gdouble gimp_brush_get_angle (const gchar *name);</pre>
<p>
Get the rotation angle of a generated brush.
</p>
@ -642,9 +642,9 @@ called for any other type of brush, it does not succeed.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2673228"></a><h3>
<a name="id2673315"></a><h3>
<a name="gimp-brush-set-angle"></a>gimp_brush_set_angle ()</h3>
<a class="indexterm" name="id2673242"></a><pre class="programlisting">gdouble gimp_brush_set_angle (const gchar *name,
<a class="indexterm" name="id2673329"></a><pre class="programlisting">gdouble gimp_brush_set_angle (const gchar *name,
gdouble angle_in);</pre>
<p>
Set the rotation angle of a generated brush.
@ -681,9 +681,9 @@ called for any other type of brush, it does not succeed.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2673337"></a><h3>
<a name="id2673423"></a><h3>
<a name="gimp-brush-get-radius"></a>gimp_brush_get_radius ()</h3>
<a class="indexterm" name="id2673351"></a><pre class="programlisting">gdouble gimp_brush_get_radius (const gchar *name);</pre>
<a class="indexterm" name="id2673436"></a><pre class="programlisting">gdouble gimp_brush_get_radius (const gchar *name);</pre>
<p>
Get the radius of a generated brush.
</p>
@ -714,9 +714,9 @@ called for any other type of brush, it does not succeed.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2673423"></a><h3>
<a name="id2673507"></a><h3>
<a name="gimp-brush-set-radius"></a>gimp_brush_set_radius ()</h3>
<a class="indexterm" name="id2673437"></a><pre class="programlisting">gdouble gimp_brush_set_radius (const gchar *name,
<a class="indexterm" name="id2673520"></a><pre class="programlisting">gdouble gimp_brush_set_radius (const gchar *name,
gdouble radius_in);</pre>
<p>
Set the radius of a generated brush.
@ -753,9 +753,9 @@ any other type of brush, it does not succeed.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2673530"></a><h3>
<a name="id2673612"></a><h3>
<a name="gimp-brush-get-aspect-ratio"></a>gimp_brush_get_aspect_ratio ()</h3>
<a class="indexterm" name="id2673544"></a><pre class="programlisting">gdouble gimp_brush_get_aspect_ratio (const gchar *name);</pre>
<a class="indexterm" name="id2673625"></a><pre class="programlisting">gdouble gimp_brush_get_aspect_ratio (const gchar *name);</pre>
<p>
Get the aspect ratio of a generated brush.
</p>
@ -786,9 +786,9 @@ for any other type of brush, it does not succeed.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2673617"></a><h3>
<a name="id2673697"></a><h3>
<a name="gimp-brush-set-aspect-ratio"></a>gimp_brush_set_aspect_ratio ()</h3>
<a class="indexterm" name="id2673630"></a><pre class="programlisting">gdouble gimp_brush_set_aspect_ratio (const gchar *name,
<a class="indexterm" name="id2673710"></a><pre class="programlisting">gdouble gimp_brush_set_aspect_ratio (const gchar *name,
gdouble aspect_ratio_in);</pre>
<p>
Set the aspect ratio of a generated brush.
@ -825,9 +825,9 @@ called for any other type of brush, it does not succeed.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2673726"></a><h3>
<a name="id2673804"></a><h3>
<a name="gimp-brush-get-hardness"></a>gimp_brush_get_hardness ()</h3>
<a class="indexterm" name="id2673740"></a><pre class="programlisting">gdouble gimp_brush_get_hardness (const gchar *name);</pre>
<a class="indexterm" name="id2673817"></a><pre class="programlisting">gdouble gimp_brush_get_hardness (const gchar *name);</pre>
<p>
Get the hardness of a generated brush.
</p>
@ -859,9 +859,9 @@ called for any other type of brush, the function does not succeed.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2673814"></a><h3>
<a name="id2673891"></a><h3>
<a name="gimp-brush-set-hardness"></a>gimp_brush_set_hardness ()</h3>
<a class="indexterm" name="id2673828"></a><pre class="programlisting">gdouble gimp_brush_set_hardness (const gchar *name,
<a class="indexterm" name="id2673904"></a><pre class="programlisting">gdouble gimp_brush_set_hardness (const gchar *name,
gdouble hardness_in);</pre>
<p>
Set the hardness of a generated brush.
@ -898,9 +898,9 @@ for any other type of brush, it does not succeed.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2673923"></a><h3>
<a name="id2673997"></a><h3>
<a name="gimp-brush-is-generated"></a>gimp_brush_is_generated ()</h3>
<a class="indexterm" name="id2673936"></a><pre class="programlisting">gboolean gimp_brush_is_generated (const gchar *name);</pre>
<a class="indexterm" name="id2674010"></a><pre class="programlisting">gboolean gimp_brush_is_generated (const gchar *name);</pre>
<p>
Tests if brush is generated
</p>
@ -930,9 +930,9 @@ Returns TRUE if this brush is parametric, FALSE for other types</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2674008"></a><h3>
<a name="id2674081"></a><h3>
<a name="gimp-brush-is-editable"></a>gimp_brush_is_editable ()</h3>
<a class="indexterm" name="id2674022"></a><pre class="programlisting">gboolean gimp_brush_is_editable (const gchar *name);</pre>
<a class="indexterm" name="id2674094"></a><pre class="programlisting">gboolean gimp_brush_is_editable (const gchar *name);</pre>
<p>
Tests if brush can be edited
</p>