47
47
<div class="refsynopsisdiv">
48
48
<a name="libgimp-gimppalettes.synopsis"></a><h2>Synopsis</h2>
49
49
<pre class="synopsis">
51
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
52
>gboolean</a> <a class="link" href="libgimp-gimppalettes.html#gimp-palettes-refresh" title="gimp_palettes_refresh ()">gimp_palettes_refresh</a> (void);
54
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
55
>gchar</a>** <a class="link" href="libgimp-gimppalettes.html#gimp-palettes-get-list" title="gimp_palettes_get_list ()">gimp_palettes_get_list</a> (const <a
56
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
59
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
60
>gint</a> *num_palettes);
62
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
63
>gchar</a>* <a class="link" href="libgimp-gimppalettes.html#gimp-palettes-get-palette" title="gimp_palettes_get_palette ()">gimp_palettes_get_palette</a> (<a
64
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
65
>gint</a> *num_colors);
67
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
68
>gboolean</a> <a class="link" href="libgimp-gimppalettes.html#gimp-palettes-set-palette" title="gimp_palettes_set_palette ()">gimp_palettes_set_palette</a> (const <a
69
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
72
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
73
>gchar</a>* <a class="link" href="libgimp-gimppalettes.html#gimp-palettes-get-palette-entry" title="gimp_palettes_get_palette_entry ()">gimp_palettes_get_palette_entry</a> (const <a
74
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
77
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
80
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
81
>gint</a> *num_colors,
83
href="/usr/share/gtk-doc/html/libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
50
gboolean <a class="link" href="libgimp-gimppalettes.html#gimp-palettes-refresh" title="gimp_palettes_refresh ()">gimp_palettes_refresh</a> (void);
51
gchar** <a class="link" href="libgimp-gimppalettes.html#gimp-palettes-get-list" title="gimp_palettes_get_list ()">gimp_palettes_get_list</a> (const gchar *filter,
53
gchar* <a class="link" href="libgimp-gimppalettes.html#gimp-palettes-get-palette" title="gimp_palettes_get_palette ()">gimp_palettes_get_palette</a> (gint *num_colors);
54
gboolean <a class="link" href="libgimp-gimppalettes.html#gimp-palettes-set-palette" title="gimp_palettes_set_palette ()">gimp_palettes_set_palette</a> (const gchar *name);
55
gchar* <a class="link" href="libgimp-gimppalettes.html#gimp-palettes-get-palette-entry" title="gimp_palettes_get_palette_entry ()">gimp_palettes_get_palette_entry</a> (const gchar *name,
59
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
84
60
>GimpRGB</a> *color);
94
70
<a name="libgimp-gimppalettes.details"></a><h2>Details</h2>
95
71
<div class="refsect2" lang="en">
96
72
<a name="gimp-palettes-refresh"></a><h3>gimp_palettes_refresh ()</h3>
97
<pre class="programlisting"><a
98
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
99
>gboolean</a> gimp_palettes_refresh (void);</pre>
73
<pre class="programlisting">gboolean gimp_palettes_refresh (void);</pre>
101
75
Refreshes current palettes. This function always succeeds.
119
93
<div class="refsect2" lang="en">
120
94
<a name="gimp-palettes-get-list"></a><h3>gimp_palettes_get_list ()</h3>
121
<pre class="programlisting"><a
122
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
123
>gchar</a>** gimp_palettes_get_list (const <a
124
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
127
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
128
>gint</a> *num_palettes);</pre>
95
<pre class="programlisting">gchar** gimp_palettes_get_list (const gchar *filter,
96
gint *num_palettes);</pre>
130
98
Retrieves a list of all of the available palettes
161
129
<div class="refsect2" lang="en">
162
130
<a name="gimp-palettes-get-palette"></a><h3>gimp_palettes_get_palette ()</h3>
163
<pre class="programlisting"><a
164
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
165
>gchar</a>* gimp_palettes_get_palette (<a
166
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
167
>gint</a> *num_colors);</pre>
131
<pre class="programlisting">gchar* gimp_palettes_get_palette (gint *num_colors);</pre>
168
132
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
169
133
<h3 class="title">Warning</h3>
170
134
<p><code class="literal">gimp_palettes_get_palette</code> is deprecated and should not be used in newly-written code.</p>
195
159
<div class="refsect2" lang="en">
196
160
<a name="gimp-palettes-set-palette"></a><h3>gimp_palettes_set_palette ()</h3>
197
<pre class="programlisting"><a
198
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
199
>gboolean</a> gimp_palettes_set_palette (const <a
200
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
201
>gchar</a> *name);</pre>
161
<pre class="programlisting">gboolean gimp_palettes_set_palette (const gchar *name);</pre>
202
162
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
203
163
<h3 class="title">Warning</h3>
204
164
<p><code class="literal">gimp_palettes_set_palette</code> is deprecated and should not be used in newly-written code.</p>
228
188
<div class="refsect2" lang="en">
229
189
<a name="gimp-palettes-get-palette-entry"></a><h3>gimp_palettes_get_palette_entry ()</h3>
230
<pre class="programlisting"><a
231
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
232
>gchar</a>* gimp_palettes_get_palette_entry (const <a
233
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
236
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
239
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
240
>gint</a> *num_colors,
242
href="/usr/share/gtk-doc/html/libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
190
<pre class="programlisting">gchar* gimp_palettes_get_palette_entry (const gchar *name,
194
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
243
195
>GimpRGB</a> *color);</pre>
244
196
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
245
197
<h3 class="title">Warning</h3>