2001-12-09 07:12:59 +08:00
|
|
|
/* The GIMP -- an image manipulation program
|
|
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program 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 General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __CORE_ENUMS_H__
|
|
|
|
#define __CORE_ENUMS_H__
|
|
|
|
|
2001-12-12 02:11:56 +08:00
|
|
|
#if 0
|
|
|
|
This file is parsed by two scripts, enumgen.pl in tools/pdbgen
|
2002-03-18 00:35:05 +08:00
|
|
|
and gimp-mkenums. All enums that are not marked with /*< pdb-skip >*/
|
2001-12-12 02:11:56 +08:00
|
|
|
are exported to libgimp and the PDB. Enums that are not marked with
|
|
|
|
/*< skip >*/ are registered with the GType system. If you want the
|
|
|
|
enum to be skipped by both scripts, you have to use /*< pdb-skip >*/
|
|
|
|
_before_ /*< skip >*/.
|
2001-12-09 07:12:59 +08:00
|
|
|
|
2001-12-12 02:11:56 +08:00
|
|
|
All enum values that are marked with /*< skip >*/ are skipped for
|
|
|
|
both targets.
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* these enums that are registered with the type system
|
|
|
|
*/
|
2001-12-09 07:12:59 +08:00
|
|
|
|
2001-12-11 23:58:07 +08:00
|
|
|
#define GIMP_TYPE_IMAGE_BASE_TYPE (gimp_image_base_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_image_base_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_RGB,
|
|
|
|
GIMP_GRAY,
|
|
|
|
GIMP_INDEXED
|
|
|
|
} GimpImageBaseType;
|
|
|
|
|
|
|
|
|
2001-12-09 07:12:59 +08:00
|
|
|
#define GIMP_TYPE_PREVIEW_SIZE (gimp_preview_size_get_type ())
|
|
|
|
|
|
|
|
GType gimp_preview_size_get_type (void) G_GNUC_CONST;
|
|
|
|
|
2001-12-12 02:11:56 +08:00
|
|
|
typedef enum /*< pdb-skip >*/
|
2001-12-09 07:12:59 +08:00
|
|
|
{
|
2002-03-18 00:35:05 +08:00
|
|
|
GIMP_PREVIEW_SIZE_NONE = 0, /*< desc="None" >*/
|
|
|
|
GIMP_PREVIEW_SIZE_TINY = 16, /*< desc="Tiny" >*/
|
|
|
|
GIMP_PREVIEW_SIZE_EXTRA_SMALL = 24, /*< desc="Very Small" >*/
|
|
|
|
GIMP_PREVIEW_SIZE_SMALL = 32, /*< desc="Small" >*/
|
|
|
|
GIMP_PREVIEW_SIZE_MEDIUM = 48, /*< desc="Medium" >*/
|
|
|
|
GIMP_PREVIEW_SIZE_LARGE = 64, /*< desc="Large" >*/
|
|
|
|
GIMP_PREVIEW_SIZE_EXTRA_LARGE = 96, /*< desc="Very Large" >*/
|
|
|
|
GIMP_PREVIEW_SIZE_HUGE = 128, /*< desc="Huge" >*/
|
|
|
|
GIMP_PREVIEW_SIZE_ENORMOUS = 192, /*< desc="Enormous" >*/
|
|
|
|
GIMP_PREVIEW_SIZE_GIGANTIC = 256 /*< desc="Gigantic" >*/
|
2001-12-09 07:12:59 +08:00
|
|
|
} GimpPreviewSize;
|
|
|
|
|
2001-12-12 02:11:56 +08:00
|
|
|
|
2002-03-13 22:51:48 +08:00
|
|
|
#define GIMP_TYPE_SELECTION_CONTROL (gimp_selection_control_get_type ())
|
2001-12-12 02:11:56 +08:00
|
|
|
|
2002-03-13 22:51:48 +08:00
|
|
|
GType gimp_selection_control_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum /*< pdb-skip >*/
|
|
|
|
{
|
|
|
|
GIMP_SELECTION_OFF,
|
|
|
|
GIMP_SELECTION_LAYER_OFF,
|
|
|
|
GIMP_SELECTION_ON,
|
|
|
|
GIMP_SELECTION_PAUSE,
|
|
|
|
GIMP_SELECTION_RESUME
|
|
|
|
} GimpSelectionControl;
|
|
|
|
|
|
|
|
|
|
|
|
#define GIMP_TYPE_CHANNEL_TYPE (gimp_channel_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_channel_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
2001-12-14 04:19:41 +08:00
|
|
|
{
|
|
|
|
GIMP_RED_CHANNEL,
|
|
|
|
GIMP_GREEN_CHANNEL,
|
|
|
|
GIMP_BLUE_CHANNEL,
|
|
|
|
GIMP_GRAY_CHANNEL,
|
|
|
|
GIMP_INDEXED_CHANNEL,
|
|
|
|
GIMP_ALPHA_CHANNEL
|
|
|
|
} GimpChannelType;
|
|
|
|
|
2002-03-13 22:51:48 +08:00
|
|
|
|
2002-03-18 02:36:52 +08:00
|
|
|
#define GIMP_TYPE_BLEND_MODE (gimp_blend_mode_get_type ())
|
2002-03-13 22:51:48 +08:00
|
|
|
|
2002-03-18 02:36:52 +08:00
|
|
|
GType gimp_blend_mode_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum /*< chop=_MODE >*/
|
2001-12-12 02:53:03 +08:00
|
|
|
{
|
2002-03-18 02:36:52 +08:00
|
|
|
GIMP_FG_BG_RGB_MODE, /*< desc="FG to BG (RGB)" >*/
|
|
|
|
GIMP_FG_BG_HSV_MODE, /*< desc="FG to BG (HSV)" >*/
|
|
|
|
GIMP_FG_TRANS_MODE, /*< desc="FG to Transparent" >*/
|
|
|
|
GIMP_CUSTOM_MODE /*< desc="Custom Gradient" >*/
|
|
|
|
} GimpBlendMode;
|
|
|
|
|
|
|
|
|
|
|
|
#define GIMP_TYPE_GRADIENT_TYPE (gimp_gradient_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_gradient_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_LINEAR, /*< desc="Linear" >*/
|
|
|
|
GIMP_BILINEAR, /*< desc="Bi-Linear" >*/
|
|
|
|
GIMP_RADIAL, /*< desc="Radial" >*/
|
|
|
|
GIMP_SQUARE, /*< desc="Square" >*/
|
|
|
|
GIMP_CONICAL_SYMMETRIC, /*< desc="Conical (symmetric)" >*/
|
|
|
|
GIMP_CONICAL_ASYMMETRIC, /*< desc="Conical (asymmetric)" >*/
|
|
|
|
GIMP_SHAPEBURST_ANGULAR, /*< desc="Shapeburst (angular)" >*/
|
|
|
|
GIMP_SHAPEBURST_SPHERICAL, /*< desc="Shapeburst (spherical)" >*/
|
|
|
|
GIMP_SHAPEBURST_DIMPLED, /*< desc="Shapeburst (dimpled)" >*/
|
|
|
|
GIMP_SPIRAL_CLOCKWISE, /*< desc="Spiral (clockwise)" >*/
|
|
|
|
GIMP_SPIRAL_ANTICLOCKWISE /*< desc="Spiral (anticlockwise)" >*/
|
2001-12-12 02:53:03 +08:00
|
|
|
} GimpGradientType;
|
|
|
|
|
2002-03-18 02:36:52 +08:00
|
|
|
|
|
|
|
#define GIMP_TYPE_REPEAT_MODE (gimp_repeat_mode_get_type ())
|
|
|
|
|
|
|
|
GType gimp_repeat_mode_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_REPEAT_NONE, /*< desc="None" >*/
|
|
|
|
GIMP_REPEAT_SAWTOOTH, /*< desc="Sawtooth Wave" >*/
|
|
|
|
GIMP_REPEAT_TRIANGULAR /*< desc="Triangular Wave" >*/
|
|
|
|
} GimpRepeatMode;
|
|
|
|
|
|
|
|
|
|
|
|
#define GIMP_TYPE_TRANSFORM_DIRECTION (gimp_transform_direction_get_type ())
|
|
|
|
|
|
|
|
GType gimp_transform_direction_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum /*< pdb-skip >*/
|
|
|
|
{
|
|
|
|
GIMP_TRANSFORM_FORWARD, /*< desc="Forward (Traditional)" >*/
|
|
|
|
GIMP_TRANSFORM_BACKWARD /*< desc="Backward (Corrective)" >*/
|
|
|
|
} GimpTransformDirection;
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* non-registered enums; register them if needed
|
|
|
|
*/
|
|
|
|
|
2001-12-12 02:53:03 +08:00
|
|
|
typedef enum /*< pdb-skip >*/ /*< skip >*/
|
|
|
|
{
|
|
|
|
GIMP_GRAD_LINEAR = 0,
|
|
|
|
GIMP_GRAD_CURVED,
|
|
|
|
GIMP_GRAD_SINE,
|
|
|
|
GIMP_GRAD_SPHERE_INCREASING,
|
|
|
|
GIMP_GRAD_SPHERE_DECREASING
|
|
|
|
} GimpGradientSegmentType;
|
|
|
|
|
|
|
|
typedef enum /*< pdb-skip >*/ /*< skip >*/
|
|
|
|
{
|
|
|
|
GIMP_GRAD_RGB = 0, /* normal RGB */
|
|
|
|
GIMP_GRAD_HSV_CCW, /* counterclockwise hue */
|
|
|
|
GIMP_GRAD_HSV_CW /* clockwise hue */
|
|
|
|
} GimpGradientSegmentColor;
|
|
|
|
|
2001-12-12 02:11:56 +08:00
|
|
|
typedef enum /*< skip >*/
|
|
|
|
{
|
|
|
|
GIMP_RGB_IMAGE,
|
|
|
|
GIMP_RGBA_IMAGE,
|
|
|
|
GIMP_GRAY_IMAGE,
|
|
|
|
GIMP_GRAYA_IMAGE,
|
|
|
|
GIMP_INDEXED_IMAGE,
|
|
|
|
GIMP_INDEXEDA_IMAGE
|
|
|
|
} GimpImageType;
|
|
|
|
|
|
|
|
typedef enum /*< skip >*/
|
|
|
|
{
|
|
|
|
GIMP_SHADOWS,
|
|
|
|
GIMP_MIDTONES,
|
|
|
|
GIMP_HIGHLIGHTS
|
|
|
|
} GimpTransferMode;
|
|
|
|
|
|
|
|
|
2001-12-09 07:12:59 +08:00
|
|
|
#endif /* __CORE_TYPES_H__ */
|