~ubuntu-branches/ubuntu/jaunty/gimp/jaunty-security

« back to all changes in this revision

Viewing changes to devel-docs/libgimp/html/libgimp-gimppalette.html

  • Committer: Bazaar Package Importer
  • Author(s): Pedro Fragoso
  • Date: 2008-08-22 11:50:05 UTC
  • mfrom: (0.1.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 34.
  • Revision ID: james.westby@ubuntu.com-20080822115005-yxj5svf3v9x1mkr7
Tags: upstream-2.4.7
ImportĀ upstreamĀ versionĀ 2.4.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
<div class="refsynopsisdiv">
48
48
<a name="libgimp-gimppalette.synopsis"></a><h2>Synopsis</h2>
49
49
<pre class="synopsis">
50
 
<a
51
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
52
 
>gchar</a>*              <a class="link" href="libgimp-gimppalette.html#gimp-palette-new" title="gimp_palette_new ()">gimp_palette_new</a>                    (const <a
53
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
54
 
>gchar</a> *name);
55
 
<a
56
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
57
 
>gchar</a>*              <a class="link" href="libgimp-gimppalette.html#gimp-palette-duplicate" title="gimp_palette_duplicate ()">gimp_palette_duplicate</a>              (const <a
58
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
59
 
>gchar</a> *name);
60
 
<a
61
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
62
 
>gchar</a>*              <a class="link" href="libgimp-gimppalette.html#gimp-palette-rename" title="gimp_palette_rename ()">gimp_palette_rename</a>                 (const <a
63
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
64
 
>gchar</a> *name,
65
 
                                                         const <a
66
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
67
 
>gchar</a> *new_name);
68
 
<a
69
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
70
 
>gboolean</a>            <a class="link" href="libgimp-gimppalette.html#gimp-palette-delete" title="gimp_palette_delete ()">gimp_palette_delete</a>                 (const <a
71
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
72
 
>gchar</a> *name);
73
 
<a
74
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
75
 
>gboolean</a>            <a class="link" href="libgimp-gimppalette.html#gimp-palette-get-info" title="gimp_palette_get_info ()">gimp_palette_get_info</a>               (const <a
76
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
77
 
>gchar</a> *name,
78
 
                                                         <a
79
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
80
 
>gint</a> *num_colors);
81
 
<a
82
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
83
 
>gint</a>                <a class="link" href="libgimp-gimppalette.html#gimp-palette-get-columns" title="gimp_palette_get_columns ()">gimp_palette_get_columns</a>            (const <a
84
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
85
 
>gchar</a> *name);
86
 
<a
87
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
88
 
>gboolean</a>            <a class="link" href="libgimp-gimppalette.html#gimp-palette-set-columns" title="gimp_palette_set_columns ()">gimp_palette_set_columns</a>            (const <a
89
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
90
 
>gchar</a> *name,
91
 
                                                         <a
92
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
93
 
>gint</a> columns);
94
 
<a
95
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
96
 
>gboolean</a>            <a class="link" href="libgimp-gimppalette.html#gimp-palette-add-entry" title="gimp_palette_add_entry ()">gimp_palette_add_entry</a>              (const <a
97
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
98
 
>gchar</a> *name,
99
 
                                                         const <a
100
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
101
 
>gchar</a> *entry_name,
102
 
                                                         const <a
103
 
href="/usr/share/gtk-doc/html/libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
 
50
gchar*              <a class="link" href="libgimp-gimppalette.html#gimp-palette-new" title="gimp_palette_new ()">gimp_palette_new</a>                    (const gchar *name);
 
51
gchar*              <a class="link" href="libgimp-gimppalette.html#gimp-palette-duplicate" title="gimp_palette_duplicate ()">gimp_palette_duplicate</a>              (const gchar *name);
 
52
gchar*              <a class="link" href="libgimp-gimppalette.html#gimp-palette-rename" title="gimp_palette_rename ()">gimp_palette_rename</a>                 (const gchar *name,
 
53
                                                         const gchar *new_name);
 
54
gboolean            <a class="link" href="libgimp-gimppalette.html#gimp-palette-delete" title="gimp_palette_delete ()">gimp_palette_delete</a>                 (const gchar *name);
 
55
gboolean            <a class="link" href="libgimp-gimppalette.html#gimp-palette-get-info" title="gimp_palette_get_info ()">gimp_palette_get_info</a>               (const gchar *name,
 
56
                                                         gint *num_colors);
 
57
gint                <a class="link" href="libgimp-gimppalette.html#gimp-palette-get-columns" title="gimp_palette_get_columns ()">gimp_palette_get_columns</a>            (const gchar *name);
 
58
gboolean            <a class="link" href="libgimp-gimppalette.html#gimp-palette-set-columns" title="gimp_palette_set_columns ()">gimp_palette_set_columns</a>            (const gchar *name,
 
59
                                                         gint columns);
 
60
gboolean            <a class="link" href="libgimp-gimppalette.html#gimp-palette-add-entry" title="gimp_palette_add_entry ()">gimp_palette_add_entry</a>              (const gchar *name,
 
61
                                                         const gchar *entry_name,
 
62
                                                         const <a
 
63
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
104
64
>GimpRGB</a> *color,
105
 
                                                         <a
106
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
107
 
>gint</a> *entry_num);
108
 
<a
109
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
110
 
>gboolean</a>            <a class="link" href="libgimp-gimppalette.html#gimp-palette-delete-entry" title="gimp_palette_delete_entry ()">gimp_palette_delete_entry</a>           (const <a
111
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
112
 
>gchar</a> *name,
113
 
                                                         <a
114
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
115
 
>gint</a> entry_num);
116
 
<a
117
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
118
 
>gboolean</a>            <a class="link" href="libgimp-gimppalette.html#gimp-palette-entry-get-color" title="gimp_palette_entry_get_color ()">gimp_palette_entry_get_color</a>        (const <a
119
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
120
 
>gchar</a> *name,
121
 
                                                         <a
122
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
123
 
>gint</a> entry_num,
124
 
                                                         <a
125
 
href="/usr/share/gtk-doc/html/libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
126
 
>GimpRGB</a> *color);
127
 
<a
128
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
129
 
>gboolean</a>            <a class="link" href="libgimp-gimppalette.html#gimp-palette-entry-set-color" title="gimp_palette_entry_set_color ()">gimp_palette_entry_set_color</a>        (const <a
130
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
131
 
>gchar</a> *name,
132
 
                                                         <a
133
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
134
 
>gint</a> entry_num,
135
 
                                                         const <a
136
 
href="/usr/share/gtk-doc/html/libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
137
 
>GimpRGB</a> *color);
138
 
<a
139
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
140
 
>gboolean</a>            <a class="link" href="libgimp-gimppalette.html#gimp-palette-entry-get-name" title="gimp_palette_entry_get_name ()">gimp_palette_entry_get_name</a>         (const <a
141
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
142
 
>gchar</a> *name,
143
 
                                                         <a
144
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
145
 
>gint</a> entry_num,
146
 
                                                         <a
147
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
148
 
>gchar</a> **entry_name);
149
 
<a
150
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
151
 
>gboolean</a>            <a class="link" href="libgimp-gimppalette.html#gimp-palette-entry-set-name" title="gimp_palette_entry_set_name ()">gimp_palette_entry_set_name</a>         (const <a
152
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
153
 
>gchar</a> *name,
154
 
                                                         <a
155
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
156
 
>gint</a> entry_num,
157
 
                                                         const <a
158
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
159
 
>gchar</a> *entry_name);
160
 
<a
161
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
162
 
>gboolean</a>            <a class="link" href="libgimp-gimppalette.html#gimp-palette-get-foreground" title="gimp_palette_get_foreground ()">gimp_palette_get_foreground</a>         (<a
163
 
href="/usr/share/gtk-doc/html/libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
164
 
>GimpRGB</a> *foreground);
165
 
<a
166
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
167
 
>gboolean</a>            <a class="link" href="libgimp-gimppalette.html#gimp-palette-get-background" title="gimp_palette_get_background ()">gimp_palette_get_background</a>         (<a
168
 
href="/usr/share/gtk-doc/html/libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
169
 
>GimpRGB</a> *background);
170
 
<a
171
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
172
 
>gboolean</a>            <a class="link" href="libgimp-gimppalette.html#gimp-palette-set-foreground" title="gimp_palette_set_foreground ()">gimp_palette_set_foreground</a>         (const <a
173
 
href="/usr/share/gtk-doc/html/libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
174
 
>GimpRGB</a> *foreground);
175
 
<a
176
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
177
 
>gboolean</a>            <a class="link" href="libgimp-gimppalette.html#gimp-palette-set-background" title="gimp_palette_set_background ()">gimp_palette_set_background</a>         (const <a
178
 
href="/usr/share/gtk-doc/html/libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
179
 
>GimpRGB</a> *background);
180
 
<a
181
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
182
 
>gboolean</a>            <a class="link" href="libgimp-gimppalette.html#gimp-palette-set-default-colors" title="gimp_palette_set_default_colors ()">gimp_palette_set_default_colors</a>     (void);
183
 
<a
184
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
185
 
>gboolean</a>            <a class="link" href="libgimp-gimppalette.html#gimp-palette-swap-colors" title="gimp_palette_swap_colors ()">gimp_palette_swap_colors</a>            (void);
186
 
<a
187
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
188
 
>gboolean</a>            <a class="link" href="libgimp-gimppalette.html#gimp-palette-is-editable" title="gimp_palette_is_editable ()">gimp_palette_is_editable</a>            (const <a
189
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
190
 
>gchar</a> *name);
 
65
                                                         gint *entry_num);
 
66
gboolean            <a class="link" href="libgimp-gimppalette.html#gimp-palette-delete-entry" title="gimp_palette_delete_entry ()">gimp_palette_delete_entry</a>           (const gchar *name,
 
67
                                                         gint entry_num);
 
68
gboolean            <a class="link" href="libgimp-gimppalette.html#gimp-palette-entry-get-color" title="gimp_palette_entry_get_color ()">gimp_palette_entry_get_color</a>        (const gchar *name,
 
69
                                                         gint entry_num,
 
70
                                                         <a
 
71
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
 
72
>GimpRGB</a> *color);
 
73
gboolean            <a class="link" href="libgimp-gimppalette.html#gimp-palette-entry-set-color" title="gimp_palette_entry_set_color ()">gimp_palette_entry_set_color</a>        (const gchar *name,
 
74
                                                         gint entry_num,
 
75
                                                         const <a
 
76
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
 
77
>GimpRGB</a> *color);
 
78
gboolean            <a class="link" href="libgimp-gimppalette.html#gimp-palette-entry-get-name" title="gimp_palette_entry_get_name ()">gimp_palette_entry_get_name</a>         (const gchar *name,
 
79
                                                         gint entry_num,
 
80
                                                         gchar **entry_name);
 
81
gboolean            <a class="link" href="libgimp-gimppalette.html#gimp-palette-entry-set-name" title="gimp_palette_entry_set_name ()">gimp_palette_entry_set_name</a>         (const gchar *name,
 
82
                                                         gint entry_num,
 
83
                                                         const gchar *entry_name);
 
84
gboolean            <a class="link" href="libgimp-gimppalette.html#gimp-palette-get-foreground" title="gimp_palette_get_foreground ()">gimp_palette_get_foreground</a>         (<a
 
85
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
 
86
>GimpRGB</a> *foreground);
 
87
gboolean            <a class="link" href="libgimp-gimppalette.html#gimp-palette-get-background" title="gimp_palette_get_background ()">gimp_palette_get_background</a>         (<a
 
88
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
 
89
>GimpRGB</a> *background);
 
90
gboolean            <a class="link" href="libgimp-gimppalette.html#gimp-palette-set-foreground" title="gimp_palette_set_foreground ()">gimp_palette_set_foreground</a>         (const <a
 
91
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
 
92
>GimpRGB</a> *foreground);
 
93
gboolean            <a class="link" href="libgimp-gimppalette.html#gimp-palette-set-background" title="gimp_palette_set_background ()">gimp_palette_set_background</a>         (const <a
 
94
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
 
95
>GimpRGB</a> *background);
 
96
gboolean            <a class="link" href="libgimp-gimppalette.html#gimp-palette-set-default-colors" title="gimp_palette_set_default_colors ()">gimp_palette_set_default_colors</a>     (void);
 
97
gboolean            <a class="link" href="libgimp-gimppalette.html#gimp-palette-swap-colors" title="gimp_palette_swap_colors ()">gimp_palette_swap_colors</a>            (void);
 
98
gboolean            <a class="link" href="libgimp-gimppalette.html#gimp-palette-is-editable" title="gimp_palette_is_editable ()">gimp_palette_is_editable</a>            (const gchar *name);
191
99
</pre>
192
100
</div>
193
101
<div class="refsect1" lang="en">
200
108
<a name="libgimp-gimppalette.details"></a><h2>Details</h2>
201
109
<div class="refsect2" lang="en">
202
110
<a name="gimp-palette-new"></a><h3>gimp_palette_new ()</h3>
203
 
<pre class="programlisting"><a
204
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
205
 
>gchar</a>*              gimp_palette_new                    (const <a
206
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
207
 
>gchar</a> *name);</pre>
 
111
<pre class="programlisting">gchar*              gimp_palette_new                    (const gchar *name);</pre>
208
112
<p>
209
113
Creates a new palette
210
114
</p>
235
139
<hr>
236
140
<div class="refsect2" lang="en">
237
141
<a name="gimp-palette-duplicate"></a><h3>gimp_palette_duplicate ()</h3>
238
 
<pre class="programlisting"><a
239
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
240
 
>gchar</a>*              gimp_palette_duplicate              (const <a
241
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
242
 
>gchar</a> *name);</pre>
 
142
<pre class="programlisting">gchar*              gimp_palette_duplicate              (const gchar *name);</pre>
243
143
<p>
244
144
Duplicates a palette
245
145
</p>
270
170
<hr>
271
171
<div class="refsect2" lang="en">
272
172
<a name="gimp-palette-rename"></a><h3>gimp_palette_rename ()</h3>
273
 
<pre class="programlisting"><a
274
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
275
 
>gchar</a>*              gimp_palette_rename                 (const <a
276
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
277
 
>gchar</a> *name,
278
 
                                                         const <a
279
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
280
 
>gchar</a> *new_name);</pre>
 
173
<pre class="programlisting">gchar*              gimp_palette_rename                 (const gchar *name,
 
174
                                                         const gchar *new_name);</pre>
281
175
<p>
282
176
Rename a palette
283
177
</p>
313
207
<hr>
314
208
<div class="refsect2" lang="en">
315
209
<a name="gimp-palette-delete"></a><h3>gimp_palette_delete ()</h3>
316
 
<pre class="programlisting"><a
317
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
318
 
>gboolean</a>            gimp_palette_delete                 (const <a
319
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
320
 
>gchar</a> *name);</pre>
 
210
<pre class="programlisting">gboolean            gimp_palette_delete                 (const gchar *name);</pre>
321
211
<p>
322
212
Deletes a palette
323
213
</p>
348
238
<hr>
349
239
<div class="refsect2" lang="en">
350
240
<a name="gimp-palette-get-info"></a><h3>gimp_palette_get_info ()</h3>
351
 
<pre class="programlisting"><a
352
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
353
 
>gboolean</a>            gimp_palette_get_info               (const <a
354
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
355
 
>gchar</a> *name,
356
 
                                                         <a
357
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
358
 
>gint</a> *num_colors);</pre>
 
241
<pre class="programlisting">gboolean            gimp_palette_get_info               (const gchar *name,
 
242
                                                         gint *num_colors);</pre>
359
243
<p>
360
244
Retrieve information about the specified palette.
361
245
</p>
392
276
<hr>
393
277
<div class="refsect2" lang="en">
394
278
<a name="gimp-palette-get-columns"></a><h3>gimp_palette_get_columns ()</h3>
395
 
<pre class="programlisting"><a
396
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
397
 
>gint</a>                gimp_palette_get_columns            (const <a
398
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
399
 
>gchar</a> *name);</pre>
 
279
<pre class="programlisting">gint                gimp_palette_get_columns            (const gchar *name);</pre>
400
280
<p>
401
281
Retrieves the number of columns to use to display this palette
402
282
</p>
428
308
<hr>
429
309
<div class="refsect2" lang="en">
430
310
<a name="gimp-palette-set-columns"></a><h3>gimp_palette_set_columns ()</h3>
431
 
<pre class="programlisting"><a
432
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
433
 
>gboolean</a>            gimp_palette_set_columns            (const <a
434
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
435
 
>gchar</a> *name,
436
 
                                                         <a
437
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
438
 
>gint</a> columns);</pre>
 
311
<pre class="programlisting">gboolean            gimp_palette_set_columns            (const gchar *name,
 
312
                                                         gint columns);</pre>
439
313
<p>
440
314
Sets the number of columns to use when displaying the palette
441
315
</p>
473
347
<hr>
474
348
<div class="refsect2" lang="en">
475
349
<a name="gimp-palette-add-entry"></a><h3>gimp_palette_add_entry ()</h3>
476
 
<pre class="programlisting"><a
477
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
478
 
>gboolean</a>            gimp_palette_add_entry              (const <a
479
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
480
 
>gchar</a> *name,
481
 
                                                         const <a
482
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
483
 
>gchar</a> *entry_name,
484
 
                                                         const <a
485
 
href="/usr/share/gtk-doc/html/libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
 
350
<pre class="programlisting">gboolean            gimp_palette_add_entry              (const gchar *name,
 
351
                                                         const gchar *entry_name,
 
352
                                                         const <a
 
353
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
486
354
>GimpRGB</a> *color,
487
 
                                                         <a
488
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
489
 
>gint</a> *entry_num);</pre>
 
355
                                                         gint *entry_num);</pre>
490
356
<p>
491
357
Adds a palette entry to the specified palette.
492
358
</p>
533
399
<hr>
534
400
<div class="refsect2" lang="en">
535
401
<a name="gimp-palette-delete-entry"></a><h3>gimp_palette_delete_entry ()</h3>
536
 
<pre class="programlisting"><a
537
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
538
 
>gboolean</a>            gimp_palette_delete_entry           (const <a
539
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
540
 
>gchar</a> *name,
541
 
                                                         <a
542
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
543
 
>gint</a> entry_num);</pre>
 
402
<pre class="programlisting">gboolean            gimp_palette_delete_entry           (const gchar *name,
 
403
                                                         gint entry_num);</pre>
544
404
<p>
545
405
Deletes a palette entry from the specified palette.
546
406
</p>
577
437
<hr>
578
438
<div class="refsect2" lang="en">
579
439
<a name="gimp-palette-entry-get-color"></a><h3>gimp_palette_entry_get_color ()</h3>
580
 
<pre class="programlisting"><a
581
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
582
 
>gboolean</a>            gimp_palette_entry_get_color        (const <a
583
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
584
 
>gchar</a> *name,
585
 
                                                         <a
586
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
587
 
>gint</a> entry_num,
588
 
                                                         <a
589
 
href="/usr/share/gtk-doc/html/libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
 
440
<pre class="programlisting">gboolean            gimp_palette_entry_get_color        (const gchar *name,
 
441
                                                         gint entry_num,
 
442
                                                         <a
 
443
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
590
444
>GimpRGB</a> *color);</pre>
591
445
<p>
592
446
Gets the specified palette entry from the specified palette.
630
484
<hr>
631
485
<div class="refsect2" lang="en">
632
486
<a name="gimp-palette-entry-set-color"></a><h3>gimp_palette_entry_set_color ()</h3>
633
 
<pre class="programlisting"><a
634
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
635
 
>gboolean</a>            gimp_palette_entry_set_color        (const <a
636
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
637
 
>gchar</a> *name,
638
 
                                                         <a
639
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
640
 
>gint</a> entry_num,
 
487
<pre class="programlisting">gboolean            gimp_palette_entry_set_color        (const gchar *name,
 
488
                                                         gint entry_num,
641
489
                                                         const <a
642
 
href="/usr/share/gtk-doc/html/libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
 
490
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
643
491
>GimpRGB</a> *color);</pre>
644
492
<p>
645
493
Sets the specified palette entry in the specified palette.
683
531
<hr>
684
532
<div class="refsect2" lang="en">
685
533
<a name="gimp-palette-entry-get-name"></a><h3>gimp_palette_entry_get_name ()</h3>
686
 
<pre class="programlisting"><a
687
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
688
 
>gboolean</a>            gimp_palette_entry_get_name         (const <a
689
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
690
 
>gchar</a> *name,
691
 
                                                         <a
692
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
693
 
>gint</a> entry_num,
694
 
                                                         <a
695
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
696
 
>gchar</a> **entry_name);</pre>
 
534
<pre class="programlisting">gboolean            gimp_palette_entry_get_name         (const gchar *name,
 
535
                                                         gint entry_num,
 
536
                                                         gchar **entry_name);</pre>
697
537
<p>
698
538
Gets the specified palette entry from the specified palette.
699
539
</p>
736
576
<hr>
737
577
<div class="refsect2" lang="en">
738
578
<a name="gimp-palette-entry-set-name"></a><h3>gimp_palette_entry_set_name ()</h3>
739
 
<pre class="programlisting"><a
740
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
741
 
>gboolean</a>            gimp_palette_entry_set_name         (const <a
742
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
743
 
>gchar</a> *name,
744
 
                                                         <a
745
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
746
 
>gint</a> entry_num,
747
 
                                                         const <a
748
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
749
 
>gchar</a> *entry_name);</pre>
 
579
<pre class="programlisting">gboolean            gimp_palette_entry_set_name         (const gchar *name,
 
580
                                                         gint entry_num,
 
581
                                                         const gchar *entry_name);</pre>
750
582
<p>
751
583
Sets the specified palette entry in the specified palette.
752
584
</p>
789
621
<hr>
790
622
<div class="refsect2" lang="en">
791
623
<a name="gimp-palette-get-foreground"></a><h3>gimp_palette_get_foreground ()</h3>
792
 
<pre class="programlisting"><a
793
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
794
 
>gboolean</a>            gimp_palette_get_foreground         (<a
795
 
href="/usr/share/gtk-doc/html/libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
 
624
<pre class="programlisting">gboolean            gimp_palette_get_foreground         (<a
 
625
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
796
626
>GimpRGB</a> *foreground);</pre>
797
627
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
798
628
<h3 class="title">Warning</h3>
827
657
<hr>
828
658
<div class="refsect2" lang="en">
829
659
<a name="gimp-palette-get-background"></a><h3>gimp_palette_get_background ()</h3>
830
 
<pre class="programlisting"><a
831
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
832
 
>gboolean</a>            gimp_palette_get_background         (<a
833
 
href="/usr/share/gtk-doc/html/libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
 
660
<pre class="programlisting">gboolean            gimp_palette_get_background         (<a
 
661
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
834
662
>GimpRGB</a> *background);</pre>
835
663
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
836
664
<h3 class="title">Warning</h3>
865
693
<hr>
866
694
<div class="refsect2" lang="en">
867
695
<a name="gimp-palette-set-foreground"></a><h3>gimp_palette_set_foreground ()</h3>
868
 
<pre class="programlisting"><a
869
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
870
 
>gboolean</a>            gimp_palette_set_foreground         (const <a
871
 
href="/usr/share/gtk-doc/html/libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
 
696
<pre class="programlisting">gboolean            gimp_palette_set_foreground         (const <a
 
697
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
872
698
>GimpRGB</a> *foreground);</pre>
873
699
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
874
700
<h3 class="title">Warning</h3>
903
729
<hr>
904
730
<div class="refsect2" lang="en">
905
731
<a name="gimp-palette-set-background"></a><h3>gimp_palette_set_background ()</h3>
906
 
<pre class="programlisting"><a
907
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
908
 
>gboolean</a>            gimp_palette_set_background         (const <a
909
 
href="/usr/share/gtk-doc/html/libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
 
732
<pre class="programlisting">gboolean            gimp_palette_set_background         (const <a
 
733
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
910
734
>GimpRGB</a> *background);</pre>
911
735
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
912
736
<h3 class="title">Warning</h3>
942
766
<hr>
943
767
<div class="refsect2" lang="en">
944
768
<a name="gimp-palette-set-default-colors"></a><h3>gimp_palette_set_default_colors ()</h3>
945
 
<pre class="programlisting"><a
946
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
947
 
>gboolean</a>            gimp_palette_set_default_colors     (void);</pre>
 
769
<pre class="programlisting">gboolean            gimp_palette_set_default_colors     (void);</pre>
948
770
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
949
771
<h3 class="title">Warning</h3>
950
772
<p><code class="literal">gimp_palette_set_default_colors</code> is deprecated and should not be used in newly-written code.</p>
971
793
<hr>
972
794
<div class="refsect2" lang="en">
973
795
<a name="gimp-palette-swap-colors"></a><h3>gimp_palette_swap_colors ()</h3>
974
 
<pre class="programlisting"><a
975
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
976
 
>gboolean</a>            gimp_palette_swap_colors            (void);</pre>
 
796
<pre class="programlisting">gboolean            gimp_palette_swap_colors            (void);</pre>
977
797
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
978
798
<h3 class="title">Warning</h3>
979
799
<p><code class="literal">gimp_palette_swap_colors</code> is deprecated and should not be used in newly-written code.</p>
1000
820
<hr>
1001
821
<div class="refsect2" lang="en">
1002
822
<a name="gimp-palette-is-editable"></a><h3>gimp_palette_is_editable ()</h3>
1003
 
<pre class="programlisting"><a
1004
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
1005
 
>gboolean</a>            gimp_palette_is_editable            (const <a
1006
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
1007
 
>gchar</a> *name);</pre>
 
823
<pre class="programlisting">gboolean            gimp_palette_is_editable            (const gchar *name);</pre>
1008
824
<p>
1009
825
Tests if palette can be edited
1010
826
</p>