gimpgradient_pdb.h 10.6 KB
Newer Older
1 2 3
/* LIBGIMP - The GIMP Library
 * Copyright (C) 1995-2003 Peter Mattis and Spencer Kimball
 *
4
 * gimpgradient_pdb.h
5
 *
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 18
 * License along with this library.  If not, see
 * <http://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
#ifndef __GIMP_GRADIENT_PDB_H__
#define __GIMP_GRADIENT_PDB_H__
29 30 31 32 33 34

G_BEGIN_DECLS

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


35 36
gchar*   gimp_gradient_new                                 (const gchar               *name);
gchar*   gimp_gradient_duplicate                           (const gchar               *name);
37
gboolean gimp_gradient_is_editable                         (const gchar               *name);
38
gchar*   gimp_gradient_rename                              (const gchar               *name,
39
                                                            const gchar               *new_name);
40
gboolean gimp_gradient_delete                              (const gchar               *name);
41
gint     gimp_gradient_get_number_of_segments              (const gchar               *name);
42
gboolean gimp_gradient_get_uniform_samples                 (const gchar               *name,
43 44 45 46
                                                            gint                       num_samples,
                                                            gboolean                   reverse,
                                                            gint                      *num_color_samples,
                                                            gdouble                  **color_samples);
47
gboolean gimp_gradient_get_custom_samples                  (const gchar               *name,
48 49 50 51 52
                                                            gint                       num_samples,
                                                            const gdouble             *positions,
                                                            gboolean                   reverse,
                                                            gint                      *num_color_samples,
                                                            gdouble                  **color_samples);
53
gboolean gimp_gradient_segment_get_left_color              (const gchar               *name,
54 55 56
                                                            gint                       segment,
                                                            GimpRGB                   *color,
                                                            gdouble                   *opacity);
57
gboolean gimp_gradient_segment_set_left_color              (const gchar               *name,
58 59 60
                                                            gint                       segment,
                                                            const GimpRGB             *color,
                                                            gdouble                    opacity);
61
gboolean gimp_gradient_segment_get_right_color             (const gchar               *name,
62 63 64
                                                            gint                       segment,
                                                            GimpRGB                   *color,
                                                            gdouble                   *opacity);
65
gboolean gimp_gradient_segment_set_right_color             (const gchar               *name,
66 67 68
                                                            gint                       segment,
                                                            const GimpRGB             *color,
                                                            gdouble                    opacity);
69
gboolean gimp_gradient_segment_get_left_pos                (const gchar               *name,
70 71
                                                            gint                       segment,
                                                            gdouble                   *pos);
72
gboolean gimp_gradient_segment_set_left_pos                (const gchar               *name,
73 74 75
                                                            gint                       segment,
                                                            gdouble                    pos,
                                                            gdouble                   *final_pos);
76
gboolean gimp_gradient_segment_get_middle_pos              (const gchar               *name,
77 78
                                                            gint                       segment,
                                                            gdouble                   *pos);
79
gboolean gimp_gradient_segment_set_middle_pos              (const gchar               *name,
80 81 82
                                                            gint                       segment,
                                                            gdouble                    pos,
                                                            gdouble                   *final_pos);
83
gboolean gimp_gradient_segment_get_right_pos               (const gchar               *name,
84 85
                                                            gint                       segment,
                                                            gdouble                   *pos);
86
gboolean gimp_gradient_segment_set_right_pos               (const gchar               *name,
87 88 89
                                                            gint                       segment,
                                                            gdouble                    pos,
                                                            gdouble                   *final_pos);
90
gboolean gimp_gradient_segment_get_blending_function       (const gchar               *name,
91 92
                                                            gint                       segment,
                                                            GimpGradientSegmentType   *blend_func);
93
gboolean gimp_gradient_segment_get_coloring_type           (const gchar               *name,
94 95
                                                            gint                       segment,
                                                            GimpGradientSegmentColor  *coloring_type);
96
gboolean gimp_gradient_segment_range_set_blending_function (const gchar               *name,
97 98 99
                                                            gint                       start_segment,
                                                            gint                       end_segment,
                                                            GimpGradientSegmentType    blending_function);
100
gboolean gimp_gradient_segment_range_set_coloring_type     (const gchar               *name,
101 102 103
                                                            gint                       start_segment,
                                                            gint                       end_segment,
                                                            GimpGradientSegmentColor   coloring_type);
104
gboolean gimp_gradient_segment_range_flip                  (const gchar               *name,
105 106
                                                            gint                       start_segment,
                                                            gint                       end_segment);
107
gboolean gimp_gradient_segment_range_replicate             (const gchar               *name,
108 109 110
                                                            gint                       start_segment,
                                                            gint                       end_segment,
                                                            gint                       replicate_times);
111
gboolean gimp_gradient_segment_range_split_midpoint        (const gchar               *name,
112 113
                                                            gint                       start_segment,
                                                            gint                       end_segment);
114
gboolean gimp_gradient_segment_range_split_uniform         (const gchar               *name,
115 116 117
                                                            gint                       start_segment,
                                                            gint                       end_segment,
                                                            gint                       split_parts);
118
gboolean gimp_gradient_segment_range_delete                (const gchar               *name,
119 120
                                                            gint                       start_segment,
                                                            gint                       end_segment);
121
gboolean gimp_gradient_segment_range_redistribute_handles  (const gchar               *name,
122 123
                                                            gint                       start_segment,
                                                            gint                       end_segment);
124
gboolean gimp_gradient_segment_range_blend_colors          (const gchar               *name,
125 126
                                                            gint                       start_segment,
                                                            gint                       end_segment);
127
gboolean gimp_gradient_segment_range_blend_opacity         (const gchar               *name,
128 129
                                                            gint                       start_segment,
                                                            gint                       end_segment);
130
gdouble  gimp_gradient_segment_range_move                  (const gchar               *name,
131 132 133 134
                                                            gint                       start_segment,
                                                            gint                       end_segment,
                                                            gdouble                    delta,
                                                            gboolean                   control_compress);
135 136 137 138


G_END_DECLS

139
#endif /* __GIMP_GRADIENT_PDB_H__ */