43
43
<pre class="synopsis">
44
44
<a class="link" href="libgimpbase-gimpbasetypes.html#GimpEnumDesc" title="GimpEnumDesc">GimpEnumDesc</a>;
45
45
<a class="link" href="libgimpbase-gimpbasetypes.html#GimpFlagsDesc" title="GimpFlagsDesc">GimpFlagsDesc</a>;
46
void <a class="link" href="libgimpbase-gimpbasetypes.html#gimp-type-set-translation-domain" title="gimp_type_set_translation_domain ()">gimp_type_set_translation_domain</a> (<a
47
href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"
50
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
53
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
54
>gchar</a>* <a class="link" href="libgimpbase-gimpbasetypes.html#gimp-type-get-translation-domain" title="gimp_type_get_translation_domain ()">gimp_type_get_translation_domain</a> (<a
55
href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"
57
void <a class="link" href="libgimpbase-gimpbasetypes.html#gimp-enum-set-value-descriptions" title="gimp_enum_set_value_descriptions ()">gimp_enum_set_value_descriptions</a> (<a
58
href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"
46
void <a class="link" href="libgimpbase-gimpbasetypes.html#gimp-type-set-translation-domain" title="gimp_type_set_translation_domain ()">gimp_type_set_translation_domain</a> (GType type,
48
const gchar* <a class="link" href="libgimpbase-gimpbasetypes.html#gimp-type-get-translation-domain" title="gimp_type_get_translation_domain ()">gimp_type_get_translation_domain</a> (GType type);
49
void <a class="link" href="libgimpbase-gimpbasetypes.html#gimp-enum-set-value-descriptions" title="gimp_enum_set_value_descriptions ()">gimp_enum_set_value_descriptions</a> (GType enum_type,
60
50
const <a class="link" href="libgimpbase-gimpbasetypes.html#GimpEnumDesc" title="GimpEnumDesc">GimpEnumDesc</a> *descriptions);
61
const <a class="link" href="libgimpbase-gimpbasetypes.html#GimpEnumDesc" title="GimpEnumDesc">GimpEnumDesc</a>* <a class="link" href="libgimpbase-gimpbasetypes.html#gimp-enum-get-value-descriptions" title="gimp_enum_get_value_descriptions ()">gimp_enum_get_value_descriptions</a> (<a
62
href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"
63
>GType</a> enum_type);
64
const <a class="link" href="libgimpbase-gimpbasetypes.html#GimpFlagsDesc" title="GimpFlagsDesc">GimpFlagsDesc</a>* <a class="link" href="libgimpbase-gimpbasetypes.html#gimp-flags-get-value-descriptions" title="gimp_flags_get_value_descriptions ()">gimp_flags_get_value_descriptions</a> (<a
65
href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"
66
>GType</a> flags_type);
67
void <a class="link" href="libgimpbase-gimpbasetypes.html#gimp-flags-set-value-descriptions" title="gimp_flags_set_value_descriptions ()">gimp_flags_set_value_descriptions</a> (<a
68
href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"
69
>GType</a> flags_type,
51
const <a class="link" href="libgimpbase-gimpbasetypes.html#GimpEnumDesc" title="GimpEnumDesc">GimpEnumDesc</a>* <a class="link" href="libgimpbase-gimpbasetypes.html#gimp-enum-get-value-descriptions" title="gimp_enum_get_value_descriptions ()">gimp_enum_get_value_descriptions</a> (GType enum_type);
52
const <a class="link" href="libgimpbase-gimpbasetypes.html#GimpFlagsDesc" title="GimpFlagsDesc">GimpFlagsDesc</a>* <a class="link" href="libgimpbase-gimpbasetypes.html#gimp-flags-get-value-descriptions" title="gimp_flags_get_value_descriptions ()">gimp_flags_get_value_descriptions</a> (GType flags_type);
53
void <a class="link" href="libgimpbase-gimpbasetypes.html#gimp-flags-set-value-descriptions" title="gimp_flags_set_value_descriptions ()">gimp_flags_set_value_descriptions</a> (GType flags_type,
70
54
const <a class="link" href="libgimpbase-gimpbasetypes.html#GimpFlagsDesc" title="GimpFlagsDesc">GimpFlagsDesc</a> *descriptions);
107
91
<div class="refsect2" lang="en">
108
92
<a name="gimp-type-set-translation-domain"></a><h3>gimp_type_set_translation_domain ()</h3>
109
<pre class="programlisting">void gimp_type_set_translation_domain (<a
110
href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"
113
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
114
>gchar</a> *domain);</pre>
93
<pre class="programlisting">void gimp_type_set_translation_domain (GType type,
94
const gchar *domain);</pre>
116
96
This function attaches a constant string as a gettext translation
117
domain identifier to a <a
118
href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"
119
><span class="type">GType</span></a>. The only purpose of this function is
97
domain identifier to a <span class="type">GType</span>. The only purpose of this function is
120
98
to use it when registering a <span class="type">GTypeEnum</span> with translatable value
129
107
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
131
href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"
132
><span class="type">GType</span></a>
108
<td> a <span class="type">GType</span>
136
112
<td><p><span class="term"><em class="parameter"><code>domain</code></em> :</span></p></td>
137
<td> a constant string that identifies a translation domain or <a
138
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
139
><code class="literal">NULL</code></a>
113
<td> a constant string that identifies a translation domain or <code class="literal">NULL</code>
148
122
<div class="refsect2" lang="en">
149
123
<a name="gimp-type-get-translation-domain"></a><h3>gimp_type_get_translation_domain ()</h3>
150
<pre class="programlisting">const <a
151
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
152
>gchar</a>* gimp_type_get_translation_domain (<a
153
href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"
154
>GType</a> type);</pre>
124
<pre class="programlisting">const gchar* gimp_type_get_translation_domain (GType type);</pre>
156
126
Retrieves the gettext translation domain identifier that has been
157
127
previously set using <a class="link" href="libgimpbase-gimpbasetypes.html#gimp-type-set-translation-domain" title="gimp_type_set_translation_domain ()"><code class="function">gimp_type_set_translation_domain()</code></a>. You should
167
137
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
169
href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"
170
><span class="type">GType</span></a>
138
<td> a <span class="type">GType</span>
174
142
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
175
143
<td> the translation domain associated with <em class="parameter"><code>type</code></em>
177
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
178
><code class="literal">NULL</code></a> if no domain was set
144
or <code class="literal">NULL</code> if no domain was set
188
154
<div class="refsect2" lang="en">
189
155
<a name="gimp-enum-set-value-descriptions"></a><h3>gimp_enum_set_value_descriptions ()</h3>
190
<pre class="programlisting">void gimp_enum_set_value_descriptions (<a
191
href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"
192
>GType</a> enum_type,
156
<pre class="programlisting">void gimp_enum_set_value_descriptions (GType enum_type,
193
157
const <a class="link" href="libgimpbase-gimpbasetypes.html#GimpEnumDesc" title="GimpEnumDesc">GimpEnumDesc</a> *descriptions);</pre>
195
159
Sets the array of human readable and translatable descriptions
204
168
<td><p><span class="term"><em class="parameter"><code>enum_type</code></em> :</span></p></td>
206
href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"
207
><span class="type">GType</span></a>
169
<td> a <span class="type">GType</span>
211
173
<td><p><span class="term"><em class="parameter"><code>descriptions</code></em> :</span></p></td>
213
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
214
><code class="literal">NULL</code></a> terminated constant static array of <a class="link" href="libgimpbase-gimpbasetypes.html#GimpEnumDesc" title="GimpEnumDesc"><span class="type">GimpEnumDesc</span></a>
174
<td> a <code class="literal">NULL</code> terminated constant static array of <a class="link" href="libgimpbase-gimpbasetypes.html#GimpEnumDesc" title="GimpEnumDesc"><span class="type">GimpEnumDesc</span></a>
223
183
<div class="refsect2" lang="en">
224
184
<a name="gimp-enum-get-value-descriptions"></a><h3>gimp_enum_get_value_descriptions ()</h3>
225
<pre class="programlisting">const <a class="link" href="libgimpbase-gimpbasetypes.html#GimpEnumDesc" title="GimpEnumDesc">GimpEnumDesc</a>* gimp_enum_get_value_descriptions (<a
226
href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"
227
>GType</a> enum_type);</pre>
185
<pre class="programlisting">const <a class="link" href="libgimpbase-gimpbasetypes.html#GimpEnumDesc" title="GimpEnumDesc">GimpEnumDesc</a>* gimp_enum_get_value_descriptions (GType enum_type);</pre>
229
187
Retreives the array of human readable and translatable descriptions
230
188
and help texts for enum values.</p>
238
196
<td><p><span class="term"><em class="parameter"><code>enum_type</code></em> :</span></p></td>
240
href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"
241
><span class="type">GType</span></a>
197
<td> a <span class="type">GType</span>
245
201
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
247
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
248
><code class="literal">NULL</code></a> terminated constant array of <a class="link" href="libgimpbase-gimpbasetypes.html#GimpEnumDesc" title="GimpEnumDesc"><span class="type">GimpEnumDesc</span></a>
202
<td> a <code class="literal">NULL</code> terminated constant array of <a class="link" href="libgimpbase-gimpbasetypes.html#GimpEnumDesc" title="GimpEnumDesc"><span class="type">GimpEnumDesc</span></a>
258
212
<div class="refsect2" lang="en">
259
213
<a name="gimp-flags-get-value-descriptions"></a><h3>gimp_flags_get_value_descriptions ()</h3>
260
<pre class="programlisting">const <a class="link" href="libgimpbase-gimpbasetypes.html#GimpFlagsDesc" title="GimpFlagsDesc">GimpFlagsDesc</a>* gimp_flags_get_value_descriptions (<a
261
href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"
262
>GType</a> flags_type);</pre>
214
<pre class="programlisting">const <a class="link" href="libgimpbase-gimpbasetypes.html#GimpFlagsDesc" title="GimpFlagsDesc">GimpFlagsDesc</a>* gimp_flags_get_value_descriptions (GType flags_type);</pre>
264
216
Retreives the array of human readable and translatable descriptions
265
217
and help texts for flags values.</p>
273
225
<td><p><span class="term"><em class="parameter"><code>flags_type</code></em> :</span></p></td>
275
href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"
276
><span class="type">GType</span></a>
226
<td> a <span class="type">GType</span>
280
230
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
282
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
283
><code class="literal">NULL</code></a> terminated constant array of <a class="link" href="libgimpbase-gimpbasetypes.html#GimpFlagsDesc" title="GimpFlagsDesc"><span class="type">GimpFlagsDesc</span></a>
231
<td> a <code class="literal">NULL</code> terminated constant array of <a class="link" href="libgimpbase-gimpbasetypes.html#GimpFlagsDesc" title="GimpFlagsDesc"><span class="type">GimpFlagsDesc</span></a>
293
241
<div class="refsect2" lang="en">
294
242
<a name="gimp-flags-set-value-descriptions"></a><h3>gimp_flags_set_value_descriptions ()</h3>
295
<pre class="programlisting">void gimp_flags_set_value_descriptions (<a
296
href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"
297
>GType</a> flags_type,
243
<pre class="programlisting">void gimp_flags_set_value_descriptions (GType flags_type,
298
244
const <a class="link" href="libgimpbase-gimpbasetypes.html#GimpFlagsDesc" title="GimpFlagsDesc">GimpFlagsDesc</a> *descriptions);</pre>
300
246
Sets the array of human readable and translatable descriptions
309
255
<td><p><span class="term"><em class="parameter"><code>flags_type</code></em> :</span></p></td>
311
href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"
312
><span class="type">GType</span></a>
256
<td> a <span class="type">GType</span>
316
260
<td><p><span class="term"><em class="parameter"><code>descriptions</code></em> :</span></p></td>
318
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
319
><code class="literal">NULL</code></a> terminated constant static array of <a class="link" href="libgimpbase-gimpbasetypes.html#GimpFlagsDesc" title="GimpFlagsDesc"><span class="type">GimpFlagsDesc</span></a>
261
<td> a <code class="literal">NULL</code> terminated constant static array of <a class="link" href="libgimpbase-gimpbasetypes.html#GimpFlagsDesc" title="GimpFlagsDesc"><span class="type">GimpFlagsDesc</span></a>