1
/* GIMP - The GNU Image Manipulation Program
2
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; either version 2 of the License, or
7
* (at your option) any later version.
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19
#ifndef __GIMP_PARAM_SPECS_H__
20
#define __GIMP_PARAM_SPECS_H__
24
* Keep in sync with libgimpconfig/gimpconfig-params.h
26
#define GIMP_PARAM_NO_VALIDATE (1 << (6 + G_PARAM_USER_SHIFT))
33
#define GIMP_TYPE_INT32 (gimp_int32_get_type ())
34
#define GIMP_VALUE_HOLDS_INT32(value) (G_TYPE_CHECK_VALUE_TYPE ((value),\
37
GType gimp_int32_get_type (void) G_GNUC_CONST;
41
* GIMP_TYPE_PARAM_INT32
44
#define GIMP_TYPE_PARAM_INT32 (gimp_param_int32_get_type ())
45
#define GIMP_PARAM_SPEC_INT32(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), GIMP_TYPE_PARAM_INT32, GimpParamSpecInt32))
46
#define GIMP_IS_PARAM_SPEC_INT32(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), GIMP_TYPE_PARAM_INT32))
48
typedef struct _GimpParamSpecInt32 GimpParamSpecInt32;
50
struct _GimpParamSpecInt32
52
GParamSpecInt parent_instance;
55
GType gimp_param_int32_get_type (void) G_GNUC_CONST;
57
GParamSpec * gimp_param_spec_int32 (const gchar *name,
70
#define GIMP_TYPE_INT16 (gimp_int16_get_type ())
71
#define GIMP_VALUE_HOLDS_INT16(value) (G_TYPE_CHECK_VALUE_TYPE ((value),\
74
GType gimp_int16_get_type (void) G_GNUC_CONST;
78
* GIMP_TYPE_PARAM_INT16
81
#define GIMP_TYPE_PARAM_INT16 (gimp_param_int16_get_type ())
82
#define GIMP_PARAM_SPEC_INT16(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), GIMP_TYPE_PARAM_INT16, GimpParamSpecInt16))
83
#define GIMP_IS_PARAM_SPEC_INT16(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), GIMP_TYPE_PARAM_INT16))
85
typedef struct _GimpParamSpecInt16 GimpParamSpecInt16;
87
struct _GimpParamSpecInt16
89
GParamSpecInt parent_instance;
92
GType gimp_param_int16_get_type (void) G_GNUC_CONST;
94
GParamSpec * gimp_param_spec_int16 (const gchar *name,
107
#define GIMP_TYPE_INT8 (gimp_int8_get_type ())
108
#define GIMP_VALUE_HOLDS_INT8(value) (G_TYPE_CHECK_VALUE_TYPE ((value),\
111
GType gimp_int8_get_type (void) G_GNUC_CONST;
115
* GIMP_TYPE_PARAM_INT8
118
#define GIMP_TYPE_PARAM_INT8 (gimp_param_int8_get_type ())
119
#define GIMP_PARAM_SPEC_INT8(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), GIMP_TYPE_PARAM_INT8, GimpParamSpecInt8))
120
#define GIMP_IS_PARAM_SPEC_INT8(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), GIMP_TYPE_PARAM_INT8))
122
typedef struct _GimpParamSpecInt8 GimpParamSpecInt8;
124
struct _GimpParamSpecInt8
126
GParamSpecUInt parent_instance;
129
GType gimp_param_int8_get_type (void) G_GNUC_CONST;
131
GParamSpec * gimp_param_spec_int8 (const gchar *name,
141
* GIMP_TYPE_PARAM_STRING
144
#define GIMP_TYPE_PARAM_STRING (gimp_param_string_get_type ())
145
#define GIMP_PARAM_SPEC_STRING(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), GIMP_TYPE_PARAM_STRING, GimpParamSpecString))
146
#define GIMP_IS_PARAM_SPEC_STRING(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), GIMP_TYPE_PARAM_STRING))
148
typedef struct _GimpParamSpecString GimpParamSpecString;
150
struct _GimpParamSpecString
152
GParamSpecString parent_instance;
154
guint no_validate : 1;
158
GType gimp_param_string_get_type (void) G_GNUC_CONST;
160
GParamSpec * gimp_param_spec_string (const gchar *name,
163
gboolean no_validate,
165
const gchar *default_value,
170
* GIMP_TYPE_PARAM_ENUM
173
#define GIMP_TYPE_PARAM_ENUM (gimp_param_enum_get_type ())
174
#define GIMP_PARAM_SPEC_ENUM(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), GIMP_TYPE_PARAM_ENUM, GimpParamSpecEnum))
176
#define GIMP_IS_PARAM_SPEC_ENUM(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), GIMP_TYPE_PARAM_ENUM))
178
typedef struct _GimpParamSpecEnum GimpParamSpecEnum;
180
struct _GimpParamSpecEnum
182
GParamSpecEnum parent_instance;
184
GSList *excluded_values;
187
GType gimp_param_enum_get_type (void) G_GNUC_CONST;
189
GParamSpec * gimp_param_spec_enum (const gchar *name,
196
void gimp_param_spec_enum_exclude_value (GimpParamSpecEnum *espec,
204
#define GIMP_TYPE_IMAGE_ID (gimp_image_id_get_type ())
205
#define GIMP_VALUE_HOLDS_IMAGE_ID(value) (G_TYPE_CHECK_VALUE_TYPE ((value),\
208
GType gimp_image_id_get_type (void) G_GNUC_CONST;
212
* GIMP_TYPE_PARAM_IMAGE_ID
215
#define GIMP_TYPE_PARAM_IMAGE_ID (gimp_param_image_id_get_type ())
216
#define GIMP_PARAM_SPEC_IMAGE_ID(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), GIMP_TYPE_PARAM_IMAGE_ID, GimpParamSpecImageID))
217
#define GIMP_IS_PARAM_SPEC_IMAGE_ID(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), GIMP_TYPE_PARAM_IMAGE_ID))
219
typedef struct _GimpParamSpecImageID GimpParamSpecImageID;
221
struct _GimpParamSpecImageID
223
GParamSpecInt parent_instance;
229
GType gimp_param_image_id_get_type (void) G_GNUC_CONST;
231
GParamSpec * gimp_param_spec_image_id (const gchar *name,
238
GimpImage * gimp_value_get_image (const GValue *value,
240
void gimp_value_set_image (GValue *value,
249
#define GIMP_TYPE_ITEM_ID (gimp_item_id_get_type ())
250
#define GIMP_VALUE_HOLDS_ITEM_ID(value) (G_TYPE_CHECK_VALUE_TYPE ((value),\
253
GType gimp_item_id_get_type (void) G_GNUC_CONST;
257
* GIMP_TYPE_PARAM_ITEM_ID
260
#define GIMP_TYPE_PARAM_ITEM_ID (gimp_param_item_id_get_type ())
261
#define GIMP_PARAM_SPEC_ITEM_ID(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), GIMP_TYPE_PARAM_ITEM_ID, GimpParamSpecItemID))
262
#define GIMP_IS_PARAM_SPEC_ITEM_ID(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), GIMP_TYPE_PARAM_ITEM_ID))
264
typedef struct _GimpParamSpecItemID GimpParamSpecItemID;
266
struct _GimpParamSpecItemID
268
GParamSpecInt parent_instance;
275
GType gimp_param_item_id_get_type (void) G_GNUC_CONST;
277
GParamSpec * gimp_param_spec_item_id (const gchar *name,
285
GimpItem * gimp_value_get_item (const GValue *value,
288
void gimp_value_set_item (GValue *value,
293
* GIMP_TYPE_DRAWABLE_ID
296
#define GIMP_TYPE_DRAWABLE_ID (gimp_drawable_id_get_type ())
297
#define GIMP_VALUE_HOLDS_DRAWABLE_ID(value) (G_TYPE_CHECK_VALUE_TYPE ((value),\
298
GIMP_TYPE_DRAWABLE_ID))
300
GType gimp_drawable_id_get_type (void) G_GNUC_CONST;
304
* GIMP_TYPE_PARAM_DRAWABLE_ID
307
#define GIMP_TYPE_PARAM_DRAWABLE_ID (gimp_param_drawable_id_get_type ())
308
#define GIMP_PARAM_SPEC_DRAWABLE_ID(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), GIMP_TYPE_PARAM_DRAWABLE_ID, GimpParamSpecDrawableID))
309
#define GIMP_IS_PARAM_SPEC_DRAWABLE_ID(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), GIMP_TYPE_PARAM_DRAWABLE_ID))
311
typedef struct _GimpParamSpecDrawableID GimpParamSpecDrawableID;
313
struct _GimpParamSpecDrawableID
315
GimpParamSpecItemID parent_instance;
318
GType gimp_param_drawable_id_get_type (void) G_GNUC_CONST;
320
GParamSpec * gimp_param_spec_drawable_id (const gchar *name,
327
GimpDrawable * gimp_value_get_drawable (const GValue *value,
329
void gimp_value_set_drawable (GValue *value,
330
GimpDrawable *drawable);
337
#define GIMP_TYPE_LAYER_ID (gimp_layer_id_get_type ())
338
#define GIMP_VALUE_HOLDS_LAYER_ID(value) (G_TYPE_CHECK_VALUE_TYPE ((value),\
341
GType gimp_layer_id_get_type (void) G_GNUC_CONST;
345
* GIMP_TYPE_PARAM_LAYER_ID
348
#define GIMP_TYPE_PARAM_LAYER_ID (gimp_param_layer_id_get_type ())
349
#define GIMP_PARAM_SPEC_LAYER_ID(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), GIMP_TYPE_PARAM_LAYER_ID, GimpParamSpecLayerID))
350
#define GIMP_IS_PARAM_SPEC_LAYER_ID(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), GIMP_TYPE_PARAM_LAYER_ID))
352
typedef struct _GimpParamSpecLayerID GimpParamSpecLayerID;
354
struct _GimpParamSpecLayerID
356
GimpParamSpecDrawableID parent_instance;
359
GType gimp_param_layer_id_get_type (void) G_GNUC_CONST;
361
GParamSpec * gimp_param_spec_layer_id (const gchar *name,
368
GimpLayer * gimp_value_get_layer (const GValue *value,
370
void gimp_value_set_layer (GValue *value,
375
* GIMP_TYPE_CHANNEL_ID
378
#define GIMP_TYPE_CHANNEL_ID (gimp_channel_id_get_type ())
379
#define GIMP_VALUE_HOLDS_CHANNEL_ID(value) (G_TYPE_CHECK_VALUE_TYPE ((value),\
380
GIMP_TYPE_CHANNEL_ID))
382
GType gimp_channel_id_get_type (void) G_GNUC_CONST;
386
* GIMP_TYPE_PARAM_CHANNEL_ID
389
#define GIMP_TYPE_PARAM_CHANNEL_ID (gimp_param_channel_id_get_type ())
390
#define GIMP_PARAM_SPEC_CHANNEL_ID(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), GIMP_TYPE_PARAM_CHANNEL_ID, GimpParamSpecChannelID))
391
#define GIMP_IS_PARAM_SPEC_CHANNEL_ID(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), GIMP_TYPE_PARAM_CHANNEL_ID))
393
typedef struct _GimpParamSpecChannelID GimpParamSpecChannelID;
395
struct _GimpParamSpecChannelID
397
GimpParamSpecDrawableID parent_instance;
400
GType gimp_param_channel_id_get_type (void) G_GNUC_CONST;
402
GParamSpec * gimp_param_spec_channel_id (const gchar *name,
409
GimpChannel * gimp_value_get_channel (const GValue *value,
411
void gimp_value_set_channel (GValue *value,
412
GimpChannel *channel);
416
* GIMP_TYPE_LAYER_MASK_ID
419
#define GIMP_TYPE_LAYER_MASK_ID (gimp_layer_mask_id_get_type ())
420
#define GIMP_VALUE_HOLDS_LAYER_MASK_ID(value) (G_TYPE_CHECK_VALUE_TYPE ((value),\
421
GIMP_TYPE_LAYER_MASK_ID))
423
GType gimp_layer_mask_id_get_type (void) G_GNUC_CONST;
427
* GIMP_TYPE_PARAM_LAYER_MASK_ID
430
#define GIMP_TYPE_PARAM_LAYER_MASK_ID (gimp_param_layer_mask_id_get_type ())
431
#define GIMP_PARAM_SPEC_LAYER_MASK_ID(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), GIMP_TYPE_PARAM_LAYER_MASK_ID, GimpParamSpecLayerMaskID))
432
#define GIMP_IS_PARAM_SPEC_LAYER_MASK_ID(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), GIMP_TYPE_PARAM_LAYER_MASK_ID))
434
typedef struct _GimpParamSpecLayerMaskID GimpParamSpecLayerMaskID;
436
struct _GimpParamSpecLayerMaskID
438
GimpParamSpecChannelID parent_instance;
441
GType gimp_param_layer_mask_id_get_type (void) G_GNUC_CONST;
443
GParamSpec * gimp_param_spec_layer_mask_id (const gchar *name,
450
GimpLayerMask * gimp_value_get_layer_mask (const GValue *value,
452
void gimp_value_set_layer_mask (GValue *value,
453
GimpLayerMask *layer_mask);
457
* GIMP_TYPE_SELECTION_ID
460
#define GIMP_TYPE_SELECTION_ID (gimp_selection_id_get_type ())
461
#define GIMP_VALUE_HOLDS_SELECTION_ID(value) (G_TYPE_CHECK_VALUE_TYPE ((value),\
462
GIMP_TYPE_SELECTION_ID))
464
GType gimp_selection_id_get_type (void) G_GNUC_CONST;
468
* GIMP_TYPE_PARAM_SELECTION_ID
471
#define GIMP_TYPE_PARAM_SELECTION_ID (gimp_param_selection_id_get_type ())
472
#define GIMP_PARAM_SPEC_SELECTION_ID(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), GIMP_TYPE_PARAM_SELECTION_ID, GimpParamSpecSelectionID))
473
#define GIMP_IS_PARAM_SPEC_SELECTION_ID(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), GIMP_TYPE_PARAM_SELECTION_ID))
475
typedef struct _GimpParamSpecSelectionID GimpParamSpecSelectionID;
477
struct _GimpParamSpecSelectionID
479
GimpParamSpecChannelID parent_instance;
482
GType gimp_param_selection_id_get_type (void) G_GNUC_CONST;
484
GParamSpec * gimp_param_spec_selection_id (const gchar *name,
491
GimpSelection * gimp_value_get_selection (const GValue *value,
493
void gimp_value_set_selection (GValue *value,
494
GimpSelection *selection);
498
* GIMP_TYPE_VECTORS_ID
501
#define GIMP_TYPE_VECTORS_ID (gimp_vectors_id_get_type ())
502
#define GIMP_VALUE_HOLDS_VECTORS_ID(value) (G_TYPE_CHECK_VALUE_TYPE ((value),\
503
GIMP_TYPE_VECTORS_ID))
505
GType gimp_vectors_id_get_type (void) G_GNUC_CONST;
509
* GIMP_TYPE_PARAM_VECTORS_ID
512
#define GIMP_TYPE_PARAM_VECTORS_ID (gimp_param_vectors_id_get_type ())
513
#define GIMP_PARAM_SPEC_VECTORS_ID(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), GIMP_TYPE_PARAM_VECTORS_ID, GimpParamSpecVectorsID))
514
#define GIMP_IS_PARAM_SPEC_VECTORS_ID(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), GIMP_TYPE_PARAM_VECTORS_ID))
516
typedef struct _GimpParamSpecVectorsID GimpParamSpecVectorsID;
518
struct _GimpParamSpecVectorsID
520
GimpParamSpecItemID parent_instance;
523
GType gimp_param_vectors_id_get_type (void) G_GNUC_CONST;
525
GParamSpec * gimp_param_spec_vectors_id (const gchar *name,
532
GimpVectors * gimp_value_get_vectors (const GValue *value,
534
void gimp_value_set_vectors (GValue *value,
535
GimpVectors *vectors);
539
* GIMP_TYPE_DISPLAY_ID
542
#define GIMP_TYPE_DISPLAY_ID (gimp_display_id_get_type ())
543
#define GIMP_VALUE_HOLDS_DISPLAY_ID(value) (G_TYPE_CHECK_VALUE_TYPE ((value),\
544
GIMP_TYPE_DISPLAY_ID))
546
GType gimp_display_id_get_type (void) G_GNUC_CONST;
550
* GIMP_TYPE_PARAM_DISPLAY_ID
553
#define GIMP_TYPE_PARAM_DISPLAY_ID (gimp_param_display_id_get_type ())
554
#define GIMP_PARAM_SPEC_DISPLAY_ID(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), GIMP_TYPE_PARAM_DISPLAY_ID, GimpParamSpecDisplayID))
555
#define GIMP_IS_PARAM_SPEC_DISPLAY_ID(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), GIMP_TYPE_PARAM_DISPLAY_ID))
557
typedef struct _GimpParamSpecDisplayID GimpParamSpecDisplayID;
559
struct _GimpParamSpecDisplayID
561
GParamSpecInt parent_instance;
567
GType gimp_param_display_id_get_type (void) G_GNUC_CONST;
569
GParamSpec * gimp_param_spec_display_id (const gchar *name,
576
GimpObject * gimp_value_get_display (const GValue *value,
578
void gimp_value_set_display (GValue *value,
579
GimpObject *display);
586
typedef struct _GimpArray GimpArray;
592
gboolean static_data;
595
GimpArray * gimp_array_new (const guint8 *data,
597
gboolean static_data);
598
GimpArray * gimp_array_copy (const GimpArray *array);
599
void gimp_array_free (GimpArray *array);
601
#define GIMP_TYPE_ARRAY (gimp_array_get_type ())
602
#define GIMP_VALUE_HOLDS_ARRAY(value) (G_TYPE_CHECK_VALUE_TYPE ((value), GIMP_TYPE_ARRAY))
604
GType gimp_array_get_type (void) G_GNUC_CONST;
608
* GIMP_TYPE_PARAM_ARRAY
611
#define GIMP_TYPE_PARAM_ARRAY (gimp_param_array_get_type ())
612
#define GIMP_PARAM_SPEC_ARRAY(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), GIMP_TYPE_PARAM_ARRAY, GimpParamSpecArray))
613
#define GIMP_IS_PARAM_SPEC_ARRAY(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), GIMP_TYPE_PARAM_ARRAY))
615
typedef struct _GimpParamSpecArray GimpParamSpecArray;
617
struct _GimpParamSpecArray
619
GParamSpecBoxed parent_instance;
622
GType gimp_param_array_get_type (void) G_GNUC_CONST;
624
GParamSpec * gimp_param_spec_array (const gchar *name,
631
* GIMP_TYPE_INT8_ARRAY
634
#define GIMP_TYPE_INT8_ARRAY (gimp_int8_array_get_type ())
635
#define GIMP_VALUE_HOLDS_INT8_ARRAY(value) (G_TYPE_CHECK_VALUE_TYPE ((value), GIMP_TYPE_INT8_ARRAY))
637
GType gimp_int8_array_get_type (void) G_GNUC_CONST;
641
* GIMP_TYPE_PARAM_INT8_ARRAY
644
#define GIMP_TYPE_PARAM_INT8_ARRAY (gimp_param_int8_array_get_type ())
645
#define GIMP_PARAM_SPEC_INT8_ARRAY(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), GIMP_TYPE_PARAM_INT8_ARRAY, GimpParamSpecInt8Array))
646
#define GIMP_IS_PARAM_SPEC_INT8_ARRAY(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), GIMP_TYPE_PARAM_INT8_ARRAY))
648
typedef struct _GimpParamSpecInt8Array GimpParamSpecInt8Array;
650
struct _GimpParamSpecInt8Array
652
GimpParamSpecArray parent_instance;
655
GType gimp_param_int8_array_get_type (void) G_GNUC_CONST;
657
GParamSpec * gimp_param_spec_int8_array (const gchar *name,
662
const guint8 * gimp_value_get_int8array (const GValue *value);
663
guint8 * gimp_value_dup_int8array (const GValue *value);
664
void gimp_value_set_int8array (GValue *value,
667
void gimp_value_set_static_int8array (GValue *value,
670
void gimp_value_take_int8array (GValue *value,
676
* GIMP_TYPE_INT16_ARRAY
679
#define GIMP_TYPE_INT16_ARRAY (gimp_int16_array_get_type ())
680
#define GIMP_VALUE_HOLDS_INT16_ARRAY(value) (G_TYPE_CHECK_VALUE_TYPE ((value), GIMP_TYPE_INT16_ARRAY))
682
GType gimp_int16_array_get_type (void) G_GNUC_CONST;
686
* GIMP_TYPE_PARAM_INT16_ARRAY
689
#define GIMP_TYPE_PARAM_INT16_ARRAY (gimp_param_int16_array_get_type ())
690
#define GIMP_PARAM_SPEC_INT16_ARRAY(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), GIMP_TYPE_PARAM_INT16_ARRAY, GimpParamSpecInt16Array))
691
#define GIMP_IS_PARAM_SPEC_INT16_ARRAY(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), GIMP_TYPE_PARAM_INT16_ARRAY))
693
typedef struct _GimpParamSpecInt16Array GimpParamSpecInt16Array;
695
struct _GimpParamSpecInt16Array
697
GimpParamSpecArray parent_instance;
700
GType gimp_param_int16_array_get_type (void) G_GNUC_CONST;
702
GParamSpec * gimp_param_spec_int16_array (const gchar *name,
707
const gint16 * gimp_value_get_int16array (const GValue *value);
708
gint16 * gimp_value_dup_int16array (const GValue *value);
709
void gimp_value_set_int16array (GValue *value,
712
void gimp_value_set_static_int16array (GValue *value,
715
void gimp_value_take_int16array (GValue *value,
721
* GIMP_TYPE_INT32_ARRAY
724
#define GIMP_TYPE_INT32_ARRAY (gimp_int32_array_get_type ())
725
#define GIMP_VALUE_HOLDS_INT32_ARRAY(value) (G_TYPE_CHECK_VALUE_TYPE ((value), GIMP_TYPE_INT32_ARRAY))
727
GType gimp_int32_array_get_type (void) G_GNUC_CONST;
731
* GIMP_TYPE_PARAM_INT32_ARRAY
734
#define GIMP_TYPE_PARAM_INT32_ARRAY (gimp_param_int32_array_get_type ())
735
#define GIMP_PARAM_SPEC_INT32_ARRAY(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), GIMP_TYPE_PARAM_INT32_ARRAY, GimpParamSpecInt32Array))
736
#define GIMP_IS_PARAM_SPEC_INT32_ARRAY(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), GIMP_TYPE_PARAM_INT32_ARRAY))
738
typedef struct _GimpParamSpecInt32Array GimpParamSpecInt32Array;
740
struct _GimpParamSpecInt32Array
742
GimpParamSpecArray parent_instance;
745
GType gimp_param_int32_array_get_type (void) G_GNUC_CONST;
747
GParamSpec * gimp_param_spec_int32_array (const gchar *name,
752
const gint32 * gimp_value_get_int32array (const GValue *value);
753
gint32 * gimp_value_dup_int32array (const GValue *value);
754
void gimp_value_set_int32array (GValue *value,
757
void gimp_value_set_static_int32array (GValue *value,
760
void gimp_value_take_int32array (GValue *value,
766
* GIMP_TYPE_FLOAT_ARRAY
769
#define GIMP_TYPE_FLOAT_ARRAY (gimp_float_array_get_type ())
770
#define GIMP_VALUE_HOLDS_FLOAT_ARRAY(value) (G_TYPE_CHECK_VALUE_TYPE ((value), GIMP_TYPE_FLOAT_ARRAY))
772
GType gimp_float_array_get_type (void) G_GNUC_CONST;
776
* GIMP_TYPE_PARAM_FLOAT_ARRAY
779
#define GIMP_TYPE_PARAM_FLOAT_ARRAY (gimp_param_float_array_get_type ())
780
#define GIMP_PARAM_SPEC_FLOAT_ARRAY(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), GIMP_TYPE_PARAM_FLOAT_ARRAY, GimpParamSpecFloatArray))
781
#define GIMP_IS_PARAM_SPEC_FLOAT_ARRAY(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), GIMP_TYPE_PARAM_FLOAT_ARRAY))
783
typedef struct _GimpParamSpecFloatArray GimpParamSpecFloatArray;
785
struct _GimpParamSpecFloatArray
787
GimpParamSpecArray parent_instance;
790
GType gimp_param_float_array_get_type (void) G_GNUC_CONST;
792
GParamSpec * gimp_param_spec_float_array (const gchar *name,
797
const gdouble * gimp_value_get_floatarray (const GValue *value);
798
gdouble * gimp_value_dup_floatarray (const GValue *value);
799
void gimp_value_set_floatarray (GValue *value,
800
const gdouble *array,
802
void gimp_value_set_static_floatarray (GValue *value,
803
const gdouble *array,
805
void gimp_value_take_floatarray (GValue *value,
811
* GIMP_TYPE_STRING_ARRAY
814
GimpArray * gimp_string_array_new (const gchar **data,
816
gboolean static_data);
817
GimpArray * gimp_string_array_copy (const GimpArray *array);
818
void gimp_string_array_free (GimpArray *array);
820
#define GIMP_TYPE_STRING_ARRAY (gimp_string_array_get_type ())
821
#define GIMP_VALUE_HOLDS_STRING_ARRAY(value) (G_TYPE_CHECK_VALUE_TYPE ((value), GIMP_TYPE_STRING_ARRAY))
823
GType gimp_string_array_get_type (void) G_GNUC_CONST;
827
* GIMP_TYPE_PARAM_STRING_ARRAY
830
#define GIMP_TYPE_PARAM_STRING_ARRAY (gimp_param_string_array_get_type ())
831
#define GIMP_PARAM_SPEC_STRING_ARRAY(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), GIMP_TYPE_PARAM_STRING_ARRAY, GimpParamSpecStringArray))
832
#define GIMP_IS_PARAM_SPEC_STRING_ARRAY(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), GIMP_TYPE_PARAM_STRING_ARRAY))
834
typedef struct _GimpParamSpecStringArray GimpParamSpecStringArray;
836
struct _GimpParamSpecStringArray
838
GParamSpecBoxed parent_instance;
841
GType gimp_param_string_array_get_type (void) G_GNUC_CONST;
843
GParamSpec * gimp_param_spec_string_array (const gchar *name,
848
const gchar ** gimp_value_get_stringarray (const GValue *value);
849
gchar ** gimp_value_dup_stringarray (const GValue *value);
850
void gimp_value_set_stringarray (GValue *value,
853
void gimp_value_set_static_stringarray (GValue *value,
856
void gimp_value_take_stringarray (GValue *value,
861
#endif /* __GIMP_PARAM_SPECS_H__ */