Imported Upstream version 2.2.14
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
||||
<title>gimpunit</title>
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.72.0">
|
||||
<link rel="start" href="index.html" title="GIMP Base Library Reference Manual">
|
||||
<link rel="up" href="libgimpbase.html" title="Part I. GIMP Base Library">
|
||||
<link rel="prev" href="libgimpbase-gimpsignal.html" title="gimpsignal">
|
||||
@ -21,16 +21,16 @@
|
||||
<th width="100%" align="center">GIMP Base Library Reference Manual</th>
|
||||
<td><a accesskey="n" href="libgimpbase-gimputils.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="#id2553281" class="shortcut">Top</a>
|
||||
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2568275" class="shortcut">Top</a>
|
||||
 | 
|
||||
<a href="#id2568944" class="shortcut">Description</a></nobr></td></tr>
|
||||
<a href="#id2557222" class="shortcut">Description</a></nobr></td></tr>
|
||||
</table>
|
||||
<div class="refentry" lang="en">
|
||||
<a name="libgimpbase-gimpunit"></a><div class="titlepage"></div>
|
||||
<div class="refnamediv"><table width="100%"><tr>
|
||||
<td valign="top">
|
||||
<h2>
|
||||
<a name="id2553281"></a><span class="refentrytitle">gimpunit</span>
|
||||
<a name="id2568275"></a><span class="refentrytitle">gimpunit</span>
|
||||
</h2>
|
||||
<p>gimpunit — Provides a collection of predefined units and functions for creating
|
||||
user-defined units.</p>
|
||||
@ -70,7 +70,7 @@ const gchar* <a href="libgimpbase-gimpunit.html#gimp-unit-get-plural">gimp_unit_
|
||||
</pre>
|
||||
</div>
|
||||
<div class="refsect1" lang="en">
|
||||
<a name="id2568944"></a><h2>Description</h2>
|
||||
<a name="id2557222"></a><h2>Description</h2>
|
||||
<p>
|
||||
Provides a collection of predefined units and functions for creating
|
||||
user-defined units.
|
||||
@ -78,11 +78,11 @@ user-defined units.
|
||||
</p>
|
||||
</div>
|
||||
<div class="refsect1" lang="en">
|
||||
<a name="id2568961"></a><h2>Details</h2>
|
||||
<a name="id2557239"></a><h2>Details</h2>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2568972"></a><h3>
|
||||
<a name="id2557250"></a><h3>
|
||||
<a name="GimpUnit"></a>enum GimpUnit</h3>
|
||||
<a class="indexterm" name="id2568984"></a><pre class="programlisting">typedef enum /*< skip >*/
|
||||
<a class="indexterm" name="id2557262"></a><pre class="programlisting">typedef enum /*< skip >*/
|
||||
{
|
||||
GIMP_UNIT_PIXEL = 0,
|
||||
|
||||
@ -102,9 +102,9 @@ user-defined units.
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2553781"></a><h3>
|
||||
<a name="id2557282"></a><h3>
|
||||
<a name="gimp-unit-get-number-of-units"></a>gimp_unit_get_number_of_units ()</h3>
|
||||
<a class="indexterm" name="id2553793"></a><pre class="programlisting">gint gimp_unit_get_number_of_units (void);</pre>
|
||||
<a class="indexterm" name="id2561215"></a><pre class="programlisting">gint gimp_unit_get_number_of_units (void);</pre>
|
||||
<p>
|
||||
Returns the number of units which are known to the <a href="libgimpbase-gimpunit.html#GimpUnit"><span class="type">GimpUnit</span></a> system.</p>
|
||||
<p>
|
||||
@ -113,8 +113,7 @@ Returns the number of units which are known to the <a href="libgimpbase-gimpunit
|
||||
<div class="variablelist"><table border="0">
|
||||
<col align="left" valign="top">
|
||||
<tbody><tr>
|
||||
<td>
|
||||
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<td> The number of defined units.
|
||||
</td>
|
||||
</tr></tbody>
|
||||
@ -122,9 +121,9 @@ Returns the number of units which are known to the <a href="libgimpbase-gimpunit
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2553840"></a><h3>
|
||||
<a name="id2561262"></a><h3>
|
||||
<a name="gimp-unit-get-number-of-built-in-units"></a>gimp_unit_get_number_of_built_in_units ()</h3>
|
||||
<a class="indexterm" name="id2553851"></a><pre class="programlisting">gint gimp_unit_get_number_of_built_in_units
|
||||
<a class="indexterm" name="id2561274"></a><pre class="programlisting">gint gimp_unit_get_number_of_built_in_units
|
||||
(void);</pre>
|
||||
<p>
|
||||
Returns the number of <a href="libgimpbase-gimpunit.html#GimpUnit"><span class="type">GimpUnit</span></a>'s which are hardcoded in the unit system
|
||||
@ -136,8 +135,7 @@ Returns the number of <a href="libgimpbase-gimpunit.html#GimpUnit"><span class="
|
||||
<div class="variablelist"><table border="0">
|
||||
<col align="left" valign="top">
|
||||
<tbody><tr>
|
||||
<td>
|
||||
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<td> The number of built-in units.
|
||||
</td>
|
||||
</tr></tbody>
|
||||
@ -145,9 +143,9 @@ Returns the number of <a href="libgimpbase-gimpunit.html#GimpUnit"><span class="
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2553900"></a><h3>
|
||||
<a name="id2561324"></a><h3>
|
||||
<a name="gimp-unit-new"></a>gimp_unit_new ()</h3>
|
||||
<a class="indexterm" name="id2553913"></a><pre class="programlisting"><a href="libgimpbase-gimpunit.html#GimpUnit">GimpUnit</a> gimp_unit_new (gchar *identifier,
|
||||
<a class="indexterm" name="id2561337"></a><pre class="programlisting"><a href="libgimpbase-gimpunit.html#GimpUnit">GimpUnit</a> gimp_unit_new (gchar *identifier,
|
||||
gdouble factor,
|
||||
gint digits,
|
||||
gchar *symbol,
|
||||
@ -168,50 +166,42 @@ set to <code class="literal">TRUE</code>. You will have to set it to <code class
|
||||
<col align="left" valign="top">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>identifier</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>identifier</code></em> :</span></td>
|
||||
<td> The unit's identifier string.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>factor</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>factor</code></em> :</span></td>
|
||||
<td> The unit's factor (how many units are in one inch).
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>digits</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>digits</code></em> :</span></td>
|
||||
<td> The unit's suggested number of digits (see <a href="libgimpbase-gimpunit.html#gimp-unit-get-digits"><code class="function">gimp_unit_get_digits()</code></a>).
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>symbol</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>symbol</code></em> :</span></td>
|
||||
<td> The symbol of the unit (e.g. "''" for inch).
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>abbreviation</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>abbreviation</code></em> :</span></td>
|
||||
<td> The abbreviation of the unit.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>singular</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>singular</code></em> :</span></td>
|
||||
<td> The singular form of the unit.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>plural</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>plural</code></em> :</span></td>
|
||||
<td> The plural form of the unit.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<td> The ID of the new unit.
|
||||
</td>
|
||||
</tr>
|
||||
@ -220,9 +210,9 @@ set to <code class="literal">TRUE</code>. You will have to set it to <code class
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2550468"></a><h3>
|
||||
<a name="id2559433"></a><h3>
|
||||
<a name="gimp-unit-get-deletion-flag"></a>gimp_unit_get_deletion_flag ()</h3>
|
||||
<a class="indexterm" name="id2550480"></a><pre class="programlisting">gboolean gimp_unit_get_deletion_flag (<a href="libgimpbase-gimpunit.html#GimpUnit">GimpUnit</a> unit);</pre>
|
||||
<a class="indexterm" name="id2559445"></a><pre class="programlisting">gboolean gimp_unit_get_deletion_flag (<a href="libgimpbase-gimpunit.html#GimpUnit">GimpUnit</a> unit);</pre>
|
||||
<p>
|
||||
</p>
|
||||
<p>
|
||||
@ -232,14 +222,12 @@ set to <code class="literal">TRUE</code>. You will have to set it to <code class
|
||||
<col align="left" valign="top">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>unit</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>unit</code></em> :</span></td>
|
||||
<td> The unit you want to know the <em class="parameter"><code>deletion_flag</code></em> of.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<td> The unit's <em class="parameter"><code>deletion_flag</code></em>.
|
||||
</td>
|
||||
</tr>
|
||||
@ -248,9 +236,9 @@ set to <code class="literal">TRUE</code>. You will have to set it to <code class
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2550553"></a><h3>
|
||||
<a name="id2559517"></a><h3>
|
||||
<a name="gimp-unit-set-deletion-flag"></a>gimp_unit_set_deletion_flag ()</h3>
|
||||
<a class="indexterm" name="id2550565"></a><pre class="programlisting">void gimp_unit_set_deletion_flag (<a href="libgimpbase-gimpunit.html#GimpUnit">GimpUnit</a> unit,
|
||||
<a class="indexterm" name="id2559529"></a><pre class="programlisting">void gimp_unit_set_deletion_flag (<a href="libgimpbase-gimpunit.html#GimpUnit">GimpUnit</a> unit,
|
||||
gboolean deletion_flag);</pre>
|
||||
<p>
|
||||
Sets a <a href="libgimpbase-gimpunit.html#GimpUnit"><span class="type">GimpUnit</span></a>'s <em class="parameter"><code>deletion_flag</code></em>. If the <em class="parameter"><code>deletion_flag</code></em> of a unit is
|
||||
@ -267,14 +255,12 @@ ignored.</p>
|
||||
<col align="left" valign="top">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>unit</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>unit</code></em> :</span></td>
|
||||
<td> The unit you want to set the <em class="parameter"><code>deletion_flag</code></em> for.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>deletion_flag</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>deletion_flag</code></em> :</span></td>
|
||||
<td> The new deletion_flag.
|
||||
</td>
|
||||
</tr>
|
||||
@ -283,9 +269,9 @@ ignored.</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2572793"></a><h3>
|
||||
<a name="id2605778"></a><h3>
|
||||
<a name="gimp-unit-get-factor"></a>gimp_unit_get_factor ()</h3>
|
||||
<a class="indexterm" name="id2572803"></a><pre class="programlisting">gdouble gimp_unit_get_factor (<a href="libgimpbase-gimpunit.html#GimpUnit">GimpUnit</a> unit);</pre>
|
||||
<a class="indexterm" name="id2605788"></a><pre class="programlisting">gdouble gimp_unit_get_factor (<a href="libgimpbase-gimpunit.html#GimpUnit">GimpUnit</a> unit);</pre>
|
||||
<p>
|
||||
A <a href="libgimpbase-gimpunit.html#GimpUnit"><span class="type">GimpUnit</span></a>'s <em class="parameter"><code>factor</code></em> is defined to be:
|
||||
</p>
|
||||
@ -301,14 +287,12 @@ Returns 0 for <em class="parameter"><code>unit</code></em> == GIMP_UNIT_PIXEL.</
|
||||
<col align="left" valign="top">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>unit</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>unit</code></em> :</span></td>
|
||||
<td> The unit you want to know the factor of.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<td> The unit's factor.
|
||||
</td>
|
||||
</tr>
|
||||
@ -317,9 +301,9 @@ Returns 0 for <em class="parameter"><code>unit</code></em> == GIMP_UNIT_PIXEL.</
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2572887"></a><h3>
|
||||
<a name="id2605871"></a><h3>
|
||||
<a name="gimp-unit-get-digits"></a>gimp_unit_get_digits ()</h3>
|
||||
<a class="indexterm" name="id2572898"></a><pre class="programlisting">gint gimp_unit_get_digits (<a href="libgimpbase-gimpunit.html#GimpUnit">GimpUnit</a> unit);</pre>
|
||||
<a class="indexterm" name="id2605882"></a><pre class="programlisting">gint gimp_unit_get_digits (<a href="libgimpbase-gimpunit.html#GimpUnit">GimpUnit</a> unit);</pre>
|
||||
<p>
|
||||
Returns the number of digits an entry field should provide to get
|
||||
approximately the same accuracy as an inch input field with two digits.
|
||||
@ -333,14 +317,12 @@ Returns 0 for <em class="parameter"><code>unit</code></em> == GIMP_UNIT_PIXEL.</
|
||||
<col align="left" valign="top">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>unit</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>unit</code></em> :</span></td>
|
||||
<td> The unit you want to know the digits.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<td> The suggested number of digits.
|
||||
</td>
|
||||
</tr>
|
||||
@ -349,9 +331,9 @@ Returns 0 for <em class="parameter"><code>unit</code></em> == GIMP_UNIT_PIXEL.</
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2572971"></a><h3>
|
||||
<a name="id2605955"></a><h3>
|
||||
<a name="gimp-unit-get-identifier"></a>gimp_unit_get_identifier ()</h3>
|
||||
<a class="indexterm" name="id2572982"></a><pre class="programlisting">const gchar* gimp_unit_get_identifier (<a href="libgimpbase-gimpunit.html#GimpUnit">GimpUnit</a> unit);</pre>
|
||||
<a class="indexterm" name="id2605966"></a><pre class="programlisting">const gchar* gimp_unit_get_identifier (<a href="libgimpbase-gimpunit.html#GimpUnit">GimpUnit</a> unit);</pre>
|
||||
<p>
|
||||
This is an unstranslated string and must not be changed or freed.</p>
|
||||
<p>
|
||||
@ -361,14 +343,12 @@ This is an unstranslated string and must not be changed or freed.</p>
|
||||
<col align="left" valign="top">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>unit</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>unit</code></em> :</span></td>
|
||||
<td> The unit you want to know the identifier of.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<td> The unit's identifier.
|
||||
</td>
|
||||
</tr>
|
||||
@ -377,9 +357,9 @@ This is an unstranslated string and must not be changed or freed.</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2573044"></a><h3>
|
||||
<a name="id2606029"></a><h3>
|
||||
<a name="gimp-unit-get-symbol"></a>gimp_unit_get_symbol ()</h3>
|
||||
<a class="indexterm" name="id2573056"></a><pre class="programlisting">const gchar* gimp_unit_get_symbol (<a href="libgimpbase-gimpunit.html#GimpUnit">GimpUnit</a> unit);</pre>
|
||||
<a class="indexterm" name="id2606040"></a><pre class="programlisting">const gchar* gimp_unit_get_symbol (<a href="libgimpbase-gimpunit.html#GimpUnit">GimpUnit</a> unit);</pre>
|
||||
<p>
|
||||
This is e.g. "''" for UNIT_INCH.
|
||||
</p>
|
||||
@ -392,14 +372,12 @@ NOTE: This string must not be changed or freed.</p>
|
||||
<col align="left" valign="top">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>unit</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>unit</code></em> :</span></td>
|
||||
<td> The unit you want to know the symbol of.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<td> The unit's symbol.
|
||||
</td>
|
||||
</tr>
|
||||
@ -408,9 +386,9 @@ NOTE: This string must not be changed or freed.</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2573122"></a><h3>
|
||||
<a name="id2606106"></a><h3>
|
||||
<a name="gimp-unit-get-abbreviation"></a>gimp_unit_get_abbreviation ()</h3>
|
||||
<a class="indexterm" name="id2573134"></a><pre class="programlisting">const gchar* gimp_unit_get_abbreviation (<a href="libgimpbase-gimpunit.html#GimpUnit">GimpUnit</a> unit);</pre>
|
||||
<a class="indexterm" name="id2606118"></a><pre class="programlisting">const gchar* gimp_unit_get_abbreviation (<a href="libgimpbase-gimpunit.html#GimpUnit">GimpUnit</a> unit);</pre>
|
||||
<p>
|
||||
For built-in units, this function returns the translated abbreviation
|
||||
of the unit.
|
||||
@ -424,14 +402,12 @@ NOTE: This string must not be changed or freed.</p>
|
||||
<col align="left" valign="top">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>unit</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>unit</code></em> :</span></td>
|
||||
<td> The unit you want to know the abbreviation of.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<td> The unit's abbreviation.
|
||||
</td>
|
||||
</tr>
|
||||
@ -440,9 +416,9 @@ NOTE: This string must not be changed or freed.</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2573201"></a><h3>
|
||||
<a name="id2606185"></a><h3>
|
||||
<a name="gimp-unit-get-singular"></a>gimp_unit_get_singular ()</h3>
|
||||
<a class="indexterm" name="id2573212"></a><pre class="programlisting">const gchar* gimp_unit_get_singular (<a href="libgimpbase-gimpunit.html#GimpUnit">GimpUnit</a> unit);</pre>
|
||||
<a class="indexterm" name="id2606196"></a><pre class="programlisting">const gchar* gimp_unit_get_singular (<a href="libgimpbase-gimpunit.html#GimpUnit">GimpUnit</a> unit);</pre>
|
||||
<p>
|
||||
For built-in units, this function returns the translated singular form
|
||||
of the unit's name.
|
||||
@ -456,14 +432,12 @@ NOTE: This string must not be changed or freed.</p>
|
||||
<col align="left" valign="top">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>unit</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>unit</code></em> :</span></td>
|
||||
<td> The unit you want to know the singular form of.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<td> The unit's singular form.
|
||||
</td>
|
||||
</tr>
|
||||
@ -472,9 +446,9 @@ NOTE: This string must not be changed or freed.</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2573279"></a><h3>
|
||||
<a name="id2606264"></a><h3>
|
||||
<a name="gimp-unit-get-plural"></a>gimp_unit_get_plural ()</h3>
|
||||
<a class="indexterm" name="id2573290"></a><pre class="programlisting">const gchar* gimp_unit_get_plural (<a href="libgimpbase-gimpunit.html#GimpUnit">GimpUnit</a> unit);</pre>
|
||||
<a class="indexterm" name="id2606275"></a><pre class="programlisting">const gchar* gimp_unit_get_plural (<a href="libgimpbase-gimpunit.html#GimpUnit">GimpUnit</a> unit);</pre>
|
||||
<p>
|
||||
For built-in units, this function returns the translated plural form
|
||||
of the unit's name.
|
||||
@ -488,14 +462,12 @@ NOTE: This string must not be changed or freed.</p>
|
||||
<col align="left" valign="top">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>unit</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>unit</code></em> :</span></td>
|
||||
<td> The unit you want to know the plural form of.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<td> The unit's plural form.
|
||||
</td>
|
||||
</tr>
|
||||
@ -504,9 +476,9 @@ NOTE: This string must not be changed or freed.</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2573358"></a><h3>
|
||||
<a name="id2606342"></a><h3>
|
||||
<a name="GIMP-TYPE-UNIT:CAPS"></a>GIMP_TYPE_UNIT</h3>
|
||||
<a class="indexterm" name="id2573370"></a><pre class="programlisting">#define GIMP_TYPE_UNIT (gimp_unit_get_type ())
|
||||
<a class="indexterm" name="id2606354"></a><pre class="programlisting">#define GIMP_TYPE_UNIT (gimp_unit_get_type ())
|
||||
</pre>
|
||||
<p>
|
||||
<a href="libgimpbase-gimpunit.html#GIMP-TYPE-UNIT:CAPS"><span class="type">GIMP_TYPE_UNIT</span></a> is a <span class="type">GType</span> derived from <span class="type">G_TYPE_INT</span>.
|
||||
@ -514,9 +486,9 @@ NOTE: This string must not be changed or freed.</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2573389"></a><h3>
|
||||
<a name="id2606393"></a><h3>
|
||||
<a name="GIMP-VALUE-HOLDS-UNIT:CAPS"></a>GIMP_VALUE_HOLDS_UNIT()</h3>
|
||||
<a class="indexterm" name="id2573399"></a><pre class="programlisting">#define GIMP_VALUE_HOLDS_UNIT(value) (G_TYPE_CHECK_VALUE_TYPE ((value), GIMP_TYPE_UNIT))
|
||||
<a class="indexterm" name="id2606404"></a><pre class="programlisting">#define GIMP_VALUE_HOLDS_UNIT(value) (G_TYPE_CHECK_VALUE_TYPE ((value), GIMP_TYPE_UNIT))
|
||||
</pre>
|
||||
<p>
|
||||
|
||||
@ -524,8 +496,7 @@ NOTE: This string must not be changed or freed.</p>
|
||||
<div class="variablelist"><table border="0">
|
||||
<col align="left" valign="top">
|
||||
<tbody><tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>value</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>value</code></em> :</span></td>
|
||||
<td>
|
||||
|
||||
|
||||
@ -535,7 +506,7 @@ NOTE: This string must not be changed or freed.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="refsect1" lang="en">
|
||||
<a name="id2573432"></a><h2>See Also</h2>
|
||||
<a name="id2606441"></a><h2>See Also</h2>
|
||||
<p>
|
||||
<a
|
||||
href="../libgimpwidgets/GimpUnitMenu.html"
|
||||
|
Reference in New Issue
Block a user