~ubuntu-branches/ubuntu/vivid/gimp/vivid

« back to all changes in this revision

Viewing changes to libgimp/gimpgradient_pdb.c

  • Committer: Package Import Robot
  • Author(s): Jordi Mallach
  • Date: 2012-05-08 18:50:03 UTC
  • mto: (1.1.26) (0.5.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 71.
  • Revision ID: package-import@ubuntu.com-20120508185003-tltkvbaysf8d2426
ImportĀ upstreamĀ versionĀ 2.8.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 *
4
4
 * gimpgradient_pdb.c
5
5
 *
6
 
 * This library is free software; you can redistribute it and/or
 
6
 * This library is free software: you can redistribute it and/or
7
7
 * modify it under the terms of the GNU Lesser General Public
8
8
 * License as published by the Free Software Foundation; either
9
 
 * version 2 of the License, or (at your option) any later version.
 
9
 * version 3 of the License, or (at your option) any later version.
10
10
 *
11
11
 * This library is distributed in the hope that it will be useful,
12
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
14
 * Lesser General Public License for more details.
15
15
 *
16
16
 * You should have received a copy of the GNU Lesser General Public
17
 
 * License along with this library; if not, write to the
18
 
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19
 
 * Boston, MA 02111-1307, USA.
 
17
 * License along with this library.  If not, see
 
18
 * <http://www.gnu.org/licenses/>.
20
19
 */
21
20
 
22
21
/* NOTE: This file is auto-generated by pdbgen.pl */
27
26
 
28
27
#include "gimp.h"
29
28
 
 
29
 
 
30
/**
 
31
 * SECTION: gimpgradient
 
32
 * @title: gimpgradient
 
33
 * @short_description: Functions operating on a single gradient.
 
34
 *
 
35
 * Functions operating on a single gradient.
 
36
 **/
 
37
 
 
38
 
30
39
/**
31
40
 * gimp_gradient_new:
32
41
 * @name: The requested name of the new gradient.
38
47
 * Returns: The actual new gradient name.
39
48
 *
40
49
 * Since: GIMP 2.2
41
 
 */
 
50
 **/
42
51
gchar *
43
52
gimp_gradient_new (const gchar *name)
44
53
{
70
79
 * Returns: The name of the gradient's copy.
71
80
 *
72
81
 * Since: GIMP 2.2
73
 
 */
 
82
 **/
74
83
gchar *
75
84
gimp_gradient_duplicate (const gchar *name)
76
85
{
102
111
 * Returns: TRUE if the gradient can be edited.
103
112
 *
104
113
 * Since: GIMP 2.4
105
 
 */
 
114
 **/
106
115
gboolean
107
116
gimp_gradient_is_editable (const gchar *name)
108
117
{
135
144
 * Returns: The actual new name of the gradient.
136
145
 *
137
146
 * Since: GIMP 2.2
138
 
 */
 
147
 **/
139
148
gchar *
140
149
gimp_gradient_rename (const gchar *name,
141
150
                      const gchar *new_name)
169
178
 * Returns: TRUE on success.
170
179
 *
171
180
 * Since: GIMP 2.2
172
 
 */
 
181
 **/
173
182
gboolean
174
183
gimp_gradient_delete (const gchar *name)
175
184
{
201
210
 * Returns: Number of segments.
202
211
 *
203
212
 * Since: GIMP 2.6
204
 
 */
 
213
 **/
205
214
gint
206
215
gimp_gradient_get_number_of_segments (const gchar *name)
207
216
{
243
252
 * Returns: TRUE on success.
244
253
 *
245
254
 * Since: GIMP 2.2
246
 
 */
 
255
 **/
247
256
gboolean
248
257
gimp_gradient_get_uniform_samples (const gchar  *name,
249
258
                                   gint          num_samples,
302
311
 * Returns: TRUE on success.
303
312
 *
304
313
 * Since: GIMP 2.2
305
 
 */
 
314
 **/
306
315
gboolean
307
316
gimp_gradient_get_custom_samples (const gchar    *name,
308
317
                                  gint            num_samples,
357
366
 * Returns: TRUE on success.
358
367
 *
359
368
 * Since: GIMP 2.2
360
 
 */
 
369
 **/
361
370
gboolean
362
371
gimp_gradient_segment_get_left_color (const gchar *name,
363
372
                                      gint         segment,
404
413
 * Returns: TRUE on success.
405
414
 *
406
415
 * Since: GIMP 2.2
407
 
 */
 
416
 **/
408
417
gboolean
409
418
gimp_gradient_segment_set_left_color (const gchar   *name,
410
419
                                      gint           segment,
445
454
 * Returns: TRUE on success.
446
455
 *
447
456
 * Since: GIMP 2.2
448
 
 */
 
457
 **/
449
458
gboolean
450
459
gimp_gradient_segment_get_right_color (const gchar *name,
451
460
                                       gint         segment,
492
501
 * Returns: TRUE on success.
493
502
 *
494
503
 * Since: GIMP 2.2
495
 
 */
 
504
 **/
496
505
gboolean
497
506
gimp_gradient_segment_set_right_color (const gchar   *name,
498
507
                                       gint           segment,
532
541
 * Returns: TRUE on success.
533
542
 *
534
543
 * Since: GIMP 2.2
535
 
 */
 
544
 **/
536
545
gboolean
537
546
gimp_gradient_segment_get_left_pos (const gchar *name,
538
547
                                    gint         segment,
578
587
 * Returns: TRUE on success.
579
588
 *
580
589
 * Since: GIMP 2.2
581
 
 */
 
590
 **/
582
591
gboolean
583
592
gimp_gradient_segment_set_left_pos (const gchar *name,
584
593
                                    gint         segment,
622
631
 * Returns: TRUE on success.
623
632
 *
624
633
 * Since: GIMP 2.2
625
 
 */
 
634
 **/
626
635
gboolean
627
636
gimp_gradient_segment_get_middle_pos (const gchar *name,
628
637
                                      gint         segment,
667
676
 * Returns: TRUE on success.
668
677
 *
669
678
 * Since: GIMP 2.2
670
 
 */
 
679
 **/
671
680
gboolean
672
681
gimp_gradient_segment_set_middle_pos (const gchar *name,
673
682
                                      gint         segment,
711
720
 * Returns: TRUE on success.
712
721
 *
713
722
 * Since: GIMP 2.2
714
 
 */
 
723
 **/
715
724
gboolean
716
725
gimp_gradient_segment_get_right_pos (const gchar *name,
717
726
                                     gint         segment,
757
766
 * Returns: TRUE on success.
758
767
 *
759
768
 * Since: GIMP 2.2
760
 
 */
 
769
 **/
761
770
gboolean
762
771
gimp_gradient_segment_set_right_pos (const gchar *name,
763
772
                                     gint         segment,
801
810
 * Returns: TRUE on success.
802
811
 *
803
812
 * Since: GIMP 2.2
804
 
 */
 
813
 **/
805
814
gboolean
806
815
gimp_gradient_segment_get_blending_function (const gchar             *name,
807
816
                                             gint                     segment,
843
852
 * Returns: TRUE on success.
844
853
 *
845
854
 * Since: GIMP 2.2
846
 
 */
 
855
 **/
847
856
gboolean
848
857
gimp_gradient_segment_get_coloring_type (const gchar              *name,
849
858
                                         gint                      segment,
886
895
 * Returns: TRUE on success.
887
896
 *
888
897
 * Since: GIMP 2.2
889
 
 */
 
898
 **/
890
899
gboolean
891
900
gimp_gradient_segment_range_set_blending_function (const gchar             *name,
892
901
                                                   gint                     start_segment,
927
936
 * Returns: TRUE on success.
928
937
 *
929
938
 * Since: GIMP 2.2
930
 
 */
 
939
 **/
931
940
gboolean
932
941
gimp_gradient_segment_range_set_coloring_type (const gchar              *name,
933
942
                                               gint                      start_segment,
966
975
 * Returns: TRUE on success.
967
976
 *
968
977
 * Since: GIMP 2.2
969
 
 */
 
978
 **/
970
979
gboolean
971
980
gimp_gradient_segment_range_flip (const gchar *name,
972
981
                                  gint         start_segment,
1006
1015
 * Returns: TRUE on success.
1007
1016
 *
1008
1017
 * Since: GIMP 2.2
1009
 
 */
 
1018
 **/
1010
1019
gboolean
1011
1020
gimp_gradient_segment_range_replicate (const gchar *name,
1012
1021
                                       gint         start_segment,
1046
1055
 * Returns: TRUE on success.
1047
1056
 *
1048
1057
 * Since: GIMP 2.2
1049
 
 */
 
1058
 **/
1050
1059
gboolean
1051
1060
gimp_gradient_segment_range_split_midpoint (const gchar *name,
1052
1061
                                            gint         start_segment,
1085
1094
 * Returns: TRUE on success.
1086
1095
 *
1087
1096
 * Since: GIMP 2.2
1088
 
 */
 
1097
 **/
1089
1098
gboolean
1090
1099
gimp_gradient_segment_range_split_uniform (const gchar *name,
1091
1100
                                           gint         start_segment,
1124
1133
 * Returns: TRUE on success.
1125
1134
 *
1126
1135
 * Since: GIMP 2.2
1127
 
 */
 
1136
 **/
1128
1137
gboolean
1129
1138
gimp_gradient_segment_range_delete (const gchar *name,
1130
1139
                                    gint         start_segment,
1162
1171
 * Returns: TRUE on success.
1163
1172
 *
1164
1173
 * Since: GIMP 2.2
1165
 
 */
 
1174
 **/
1166
1175
gboolean
1167
1176
gimp_gradient_segment_range_redistribute_handles (const gchar *name,
1168
1177
                                                  gint         start_segment,
1201
1210
 * Returns: TRUE on success.
1202
1211
 *
1203
1212
 * Since: GIMP 2.2
1204
 
 */
 
1213
 **/
1205
1214
gboolean
1206
1215
gimp_gradient_segment_range_blend_colors (const gchar *name,
1207
1216
                                          gint         start_segment,
1240
1249
 * Returns: TRUE on success.
1241
1250
 *
1242
1251
 * Since: GIMP 2.2
1243
 
 */
 
1252
 **/
1244
1253
gboolean
1245
1254
gimp_gradient_segment_range_blend_opacity (const gchar *name,
1246
1255
                                           gint         start_segment,
1281
1290
 * Returns: The final delta by which the range moved.
1282
1291
 *
1283
1292
 * Since: GIMP 2.2
1284
 
 */
 
1293
 **/
1285
1294
gdouble
1286
1295
gimp_gradient_segment_range_move (const gchar *name,
1287
1296
                                  gint         start_segment,