gimppalette_pdb.h 3.08 KB
Newer Older
1 2 3 4 5
/* LIBGIMP - The GIMP Library
 * Copyright (C) 1995-2003 Peter Mattis and Spencer Kimball
 *
 * gimppalette_pdb.h
 *
6
 * This library is free software: you can redistribute it and/or
7 8
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
9
 * version 3 of the License, or (at your option) any later version.
10 11 12 13 14 15 16
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
17
 * License along with this library.  If not, see
18
 * <https://www.gnu.org/licenses/>.
19 20
 */

21
/* NOTE: This file is auto-generated by pdbgen.pl */
22

23 24 25 26
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimp.h> can be included directly."
#endif

27 28 29 30 31 32 33 34 35 36 37
#ifndef __GIMP_PALETTE_PDB_H__
#define __GIMP_PALETTE_PDB_H__

G_BEGIN_DECLS

/* For information look into the C source or the html documentation */


gchar*   gimp_palette_new             (const gchar    *name);
gchar*   gimp_palette_duplicate       (const gchar    *name);
gchar*   gimp_palette_rename          (const gchar    *name,
38
                                       const gchar    *new_name);
39
gboolean gimp_palette_delete          (const gchar    *name);
40
gboolean gimp_palette_is_editable     (const gchar    *name);
41
gboolean gimp_palette_get_info        (const gchar    *name,
42
                                       gint           *num_colors);
43 44
GimpRGB* gimp_palette_get_colors      (const gchar    *name,
                                       gint           *num_colors);
45 46
gint     gimp_palette_get_columns     (const gchar    *name);
gboolean gimp_palette_set_columns     (const gchar    *name,
47
                                       gint            columns);
48
gboolean gimp_palette_add_entry       (const gchar    *name,
49 50 51
                                       const gchar    *entry_name,
                                       const GimpRGB  *color,
                                       gint           *entry_num);
52
gboolean gimp_palette_delete_entry    (const gchar    *name,
53
                                       gint            entry_num);
54
gboolean gimp_palette_entry_get_color (const gchar    *name,
55 56
                                       gint            entry_num,
                                       GimpRGB        *color);
57
gboolean gimp_palette_entry_set_color (const gchar    *name,
58 59
                                       gint            entry_num,
                                       const GimpRGB  *color);
60
gboolean gimp_palette_entry_get_name  (const gchar    *name,
61 62
                                       gint            entry_num,
                                       gchar         **entry_name);
63
gboolean gimp_palette_entry_set_name  (const gchar    *name,
64 65
                                       gint            entry_num,
                                       const gchar    *entry_name);
66 67 68 69 70


G_END_DECLS

#endif /* __GIMP_PALETTE_PDB_H__ */