2004-07-29 20:33:15 +08:00
|
|
|
/* LIBGIMP - The GIMP Library
|
|
|
|
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
|
|
|
*
|
2009-01-18 06:28:01 +08:00
|
|
|
* This library is free software: you can redistribute it and/or
|
2004-07-29 20:33:15 +08:00
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
2009-01-18 06:28:01 +08:00
|
|
|
* version 3 of the License, or (at your option) any later version.
|
2004-07-29 20:33:15 +08:00
|
|
|
*
|
|
|
|
* 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
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2009-01-18 06:28:01 +08:00
|
|
|
* License along with this library. If not, see
|
|
|
|
* <http://www.gnu.org/licenses/>.
|
2004-07-29 20:33:15 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GIMP_BASE_ENUMS_H__
|
|
|
|
#define __GIMP_BASE_ENUMS_H__
|
|
|
|
|
|
|
|
|
2010-06-30 01:13:40 +08:00
|
|
|
/**
|
|
|
|
* SECTION: gimpbaseenums
|
|
|
|
* @title: gimpbaseenums
|
|
|
|
* @short_description: Basic GIMP enumeration data types.
|
|
|
|
*
|
|
|
|
* Basic GIMP enumeration data types.
|
|
|
|
**/
|
|
|
|
|
|
|
|
|
2004-07-29 20:33:15 +08:00
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
/* For information look into the C source or the html documentation */
|
|
|
|
|
|
|
|
|
2005-01-23 07:38:36 +08:00
|
|
|
#define GIMP_TYPE_ADD_MASK_TYPE (gimp_add_mask_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_add_mask_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
2014-04-30 02:55:08 +08:00
|
|
|
GIMP_ADD_MASK_WHITE, /*< nick=white-mask, desc="_White (full opacity)" >*/
|
|
|
|
GIMP_ADD_MASK_BLACK, /*< nick=black-mask, desc="_Black (full transparency)" >*/
|
|
|
|
GIMP_ADD_MASK_ALPHA, /*< nick=alpha-mask, desc="Layer's _alpha channel" >*/
|
|
|
|
GIMP_ADD_MASK_ALPHA_TRANSFER, /*< nick=alpha-transfer-mask, desc="_Transfer layer's alpha channel" >*/
|
|
|
|
GIMP_ADD_MASK_SELECTION, /*< nick=selection-mask, desc="_Selection" >*/
|
|
|
|
GIMP_ADD_MASK_COPY, /*< nick=copy-mask, desc="_Grayscale copy of layer" >*/
|
|
|
|
GIMP_ADD_MASK_CHANNEL, /*< nick=channel-mask, desc="C_hannel" >*/
|
|
|
|
|
2014-05-13 05:40:59 +08:00
|
|
|
#ifndef GIMP_DISABLE_DEPRECATED
|
2014-04-30 02:55:08 +08:00
|
|
|
GIMP_ADD_WHITE_MASK = GIMP_ADD_MASK_WHITE, /*< skip, pdb-skip >*/
|
|
|
|
GIMP_ADD_BLACK_MASK = GIMP_ADD_MASK_BLACK, /*< skip, pdb-skip >*/
|
|
|
|
GIMP_ADD_ALPHA_MASK = GIMP_ADD_MASK_ALPHA, /*< skip, pdb-skip >*/
|
|
|
|
GIMP_ADD_ALPHA_TRANSFER_MASK = GIMP_ADD_MASK_ALPHA_TRANSFER, /*< skip, pdb-skip >*/
|
|
|
|
GIMP_ADD_SELECTION_MASK = GIMP_ADD_MASK_SELECTION, /*< skip, pdb-skip >*/
|
|
|
|
GIMP_ADD_COPY_MASK = GIMP_ADD_MASK_COPY, /*< skip, pdb-skip >*/
|
|
|
|
GIMP_ADD_CHANNEL_MASK = GIMP_ADD_MASK_CHANNEL /*< skip, pdb-skip >*/
|
2014-05-13 05:40:59 +08:00
|
|
|
#endif /* GIMP_DISABLE_DEPRECATED */
|
2005-01-23 07:38:36 +08:00
|
|
|
} GimpAddMaskType;
|
|
|
|
|
|
|
|
|
|
|
|
#define GIMP_TYPE_BLEND_MODE (gimp_blend_mode_get_type ())
|
|
|
|
|
|
|
|
GType gimp_blend_mode_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
2014-04-30 02:55:08 +08:00
|
|
|
GIMP_BLEND_FG_BG_RGB, /*< nick=fg-bg-rgb-mode, desc="FG to BG (RGB)" >*/
|
|
|
|
GIMP_BLEND_FG_BG_HSV, /*< nick=fg-bg-hsv-mode, desc="FG to BG (HSV)" >*/
|
|
|
|
GIMP_BLEND_FG_TRANSPARENT, /*< nick=fg-transparent-mode, desc="FG to transparent" >*/
|
|
|
|
GIMP_BLEND_CUSTOM, /*< nick=custom-mode, desc="Custom gradient" >*/
|
|
|
|
|
2014-05-13 05:40:59 +08:00
|
|
|
#ifndef GIMP_DISABLE_DEPRECATED
|
2014-04-30 02:55:08 +08:00
|
|
|
GIMP_FG_BG_RGB_MODE = GIMP_BLEND_FG_BG_RGB, /*< skip, pdb-skip >*/
|
|
|
|
GIMP_FG_BG_HSV_MODE = GIMP_BLEND_FG_BG_HSV, /*< skip, pdb-skip >*/
|
|
|
|
GIMP_FG_TRANSPARENT_MODE = GIMP_BLEND_FG_TRANSPARENT, /*< skip, pdb-skip >*/
|
|
|
|
GIMP_CUSTOM_MODE = GIMP_BLEND_CUSTOM /*< skip, pdb-skip >*/
|
2014-05-13 05:40:59 +08:00
|
|
|
#endif /* GIMP_DISABLE_DEPRECATED */
|
2005-01-23 07:38:36 +08:00
|
|
|
} GimpBlendMode;
|
|
|
|
|
|
|
|
|
|
|
|
#define GIMP_TYPE_BUCKET_FILL_MODE (gimp_bucket_fill_mode_get_type ())
|
|
|
|
|
|
|
|
GType gimp_bucket_fill_mode_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
2014-04-30 02:55:08 +08:00
|
|
|
GIMP_BUCKET_FILL_FG, /*< nick=fg-bucket-fill, desc="FG color fill" >*/
|
|
|
|
GIMP_BUCKET_FILL_BG, /*< nick=bg-bucket-fill, desc="BG color fill" >*/
|
|
|
|
GIMP_BUCKET_FILL_PATTERN, /*< nick=pattern-bucket-fill, desc="Pattern fill" >*/
|
|
|
|
|
2014-05-13 05:40:59 +08:00
|
|
|
#ifndef GIMP_DISABLE_DEPRECATED
|
2014-04-30 02:55:08 +08:00
|
|
|
GIMP_FG_BUCKET_FILL = GIMP_BUCKET_FILL_FG, /*< skip, pdb-skip >*/
|
|
|
|
GIMP_BG_BUCKET_FILL = GIMP_BUCKET_FILL_BG, /*< skip, pdb-skip >*/
|
|
|
|
GIMP_PATTERN_BUCKET_FILL = GIMP_BUCKET_FILL_PATTERN /*< skip, pdb-skip >*/
|
2014-05-13 05:40:59 +08:00
|
|
|
#endif /* GIMP_DISABLE_DEPRECATED */
|
2005-01-23 07:38:36 +08:00
|
|
|
} GimpBucketFillMode;
|
|
|
|
|
|
|
|
|
|
|
|
#define GIMP_TYPE_CHANNEL_OPS (gimp_channel_ops_get_type ())
|
|
|
|
|
|
|
|
GType gimp_channel_ops_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_CHANNEL_OP_ADD, /*< desc="Add to the current selection" >*/
|
|
|
|
GIMP_CHANNEL_OP_SUBTRACT, /*< desc="Subtract from the current selection" >*/
|
|
|
|
GIMP_CHANNEL_OP_REPLACE, /*< desc="Replace the current selection" >*/
|
|
|
|
GIMP_CHANNEL_OP_INTERSECT /*< desc="Intersect with the current selection" >*/
|
|
|
|
} GimpChannelOps;
|
|
|
|
|
|
|
|
|
|
|
|
#define GIMP_TYPE_CHANNEL_TYPE (gimp_channel_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_channel_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_RED_CHANNEL, /*< desc="Red" >*/
|
|
|
|
GIMP_GREEN_CHANNEL, /*< desc="Green" >*/
|
|
|
|
GIMP_BLUE_CHANNEL, /*< desc="Blue" >*/
|
|
|
|
GIMP_GRAY_CHANNEL, /*< desc="Gray" >*/
|
|
|
|
GIMP_INDEXED_CHANNEL, /*< desc="Indexed" >*/
|
|
|
|
GIMP_ALPHA_CHANNEL /*< desc="Alpha" >*/
|
|
|
|
} GimpChannelType;
|
|
|
|
|
|
|
|
|
2004-09-02 22:28:37 +08:00
|
|
|
#define GIMP_TYPE_CHECK_SIZE (gimp_check_size_get_type ())
|
|
|
|
|
|
|
|
GType gimp_check_size_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum /*< pdb-skip >*/
|
|
|
|
{
|
|
|
|
GIMP_CHECK_SIZE_SMALL_CHECKS = 0, /*< desc="Small" >*/
|
|
|
|
GIMP_CHECK_SIZE_MEDIUM_CHECKS = 1, /*< desc="Medium" >*/
|
|
|
|
GIMP_CHECK_SIZE_LARGE_CHECKS = 2 /*< desc="Large" >*/
|
|
|
|
} GimpCheckSize;
|
|
|
|
|
|
|
|
|
|
|
|
#define GIMP_TYPE_CHECK_TYPE (gimp_check_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_check_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum /*< pdb-skip >*/
|
|
|
|
{
|
2005-08-23 08:18:08 +08:00
|
|
|
GIMP_CHECK_TYPE_LIGHT_CHECKS = 0, /*< desc="Light checks" >*/
|
|
|
|
GIMP_CHECK_TYPE_GRAY_CHECKS = 1, /*< desc="Mid-tone checks" >*/
|
|
|
|
GIMP_CHECK_TYPE_DARK_CHECKS = 2, /*< desc="Dark checks" >*/
|
|
|
|
GIMP_CHECK_TYPE_WHITE_ONLY = 3, /*< desc="White only" >*/
|
|
|
|
GIMP_CHECK_TYPE_GRAY_ONLY = 4, /*< desc="Gray only" >*/
|
|
|
|
GIMP_CHECK_TYPE_BLACK_ONLY = 5 /*< desc="Black only" >*/
|
2004-09-02 22:28:37 +08:00
|
|
|
} GimpCheckType;
|
|
|
|
|
|
|
|
|
2014-04-30 04:44:58 +08:00
|
|
|
#define GIMP_TYPE_CONVOLVE_TYPE (gimp_convolve_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_convolve_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_CONVOLVE_BLUR, /*< nick=blur-convolve, desc="Blur" >*/
|
|
|
|
GIMP_CONVOLVE_SHARPEN, /*< nick=sharpen-convolve, desc="Sharpen" >*/
|
|
|
|
|
2014-05-13 05:40:59 +08:00
|
|
|
#ifndef GIMP_DISABLE_DEPRECATED
|
2014-04-30 04:44:58 +08:00
|
|
|
GIMP_BLUR_CONVOLVE = GIMP_CONVOLVE_BLUR, /*< skip, pdb-skip >*/
|
|
|
|
GIMP_SHARPEN_CONVOLVE = GIMP_CONVOLVE_SHARPEN /*< skip, pdb-skip >*/
|
2014-05-13 05:40:59 +08:00
|
|
|
#endif /* GIMP_DISABLE_DEPRECATED */
|
2014-04-30 04:44:58 +08:00
|
|
|
} GimpConvolveType;
|
|
|
|
|
|
|
|
|
2005-01-23 08:00:20 +08:00
|
|
|
#define GIMP_TYPE_CLONE_TYPE (gimp_clone_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_clone_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
2014-04-30 02:55:08 +08:00
|
|
|
GIMP_CLONE_IMAGE, /*< nick=image-clone, desc="Image" >*/
|
|
|
|
GIMP_CLONE_PATTERN, /*< nick=pattern-clone, desc="Pattern" >*/
|
|
|
|
|
2014-05-13 05:40:59 +08:00
|
|
|
#ifndef GIMP_DISABLE_DEPRECATED
|
2014-04-30 02:55:08 +08:00
|
|
|
GIMP_IMAGE_CLONE = GIMP_CLONE_IMAGE, /*< skip, pdb-skip >*/
|
|
|
|
GIMP_PATTERN_CLONE = GIMP_CLONE_PATTERN /*< skip, pdb-skip >*/
|
2014-05-13 05:40:59 +08:00
|
|
|
#endif /* GIMP_DISABLE_DEPRECATED */
|
2005-01-23 08:00:20 +08:00
|
|
|
} GimpCloneType;
|
|
|
|
|
|
|
|
|
2005-04-16 22:51:49 +08:00
|
|
|
#define GIMP_TYPE_DESATURATE_MODE (gimp_desaturate_mode_get_type ())
|
|
|
|
|
|
|
|
GType gimp_desaturate_mode_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_DESATURATE_LIGHTNESS, /*< desc="Lightness" >*/
|
|
|
|
GIMP_DESATURATE_LUMINOSITY, /*< desc="Luminosity" >*/
|
|
|
|
GIMP_DESATURATE_AVERAGE /*< desc="Average" >*/
|
|
|
|
} GimpDesaturateMode;
|
|
|
|
|
|
|
|
|
2005-01-23 08:00:20 +08:00
|
|
|
#define GIMP_TYPE_DODGE_BURN_TYPE (gimp_dodge_burn_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_dodge_burn_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
2014-04-30 02:55:08 +08:00
|
|
|
GIMP_DODGE_BURN_TYPE_DODGE, /*< desc="Dodge" >*/
|
|
|
|
GIMP_DODGE_BURN_TYPE_BURN, /*< desc="Burn" >*/
|
|
|
|
|
2014-05-13 05:40:59 +08:00
|
|
|
#ifndef GIMP_DISABLE_DEPRECATED
|
2014-04-30 02:55:08 +08:00
|
|
|
GIMP_DODGE = GIMP_DODGE_BURN_TYPE_DODGE, /*< skip, pdb-skip >*/
|
|
|
|
GIMP_BURN = GIMP_DODGE_BURN_TYPE_BURN /*< skip, pdb-skip >*/
|
2014-05-13 05:40:59 +08:00
|
|
|
#endif /* GIMP_DISABLE_DEPRECATED */
|
2005-01-23 08:00:20 +08:00
|
|
|
} GimpDodgeBurnType;
|
|
|
|
|
|
|
|
|
2005-08-03 18:02:01 +08:00
|
|
|
#define GIMP_TYPE_FOREGROUND_EXTRACT_MODE (gimp_foreground_extract_mode_get_type ())
|
2005-07-29 10:35:12 +08:00
|
|
|
|
|
|
|
GType gimp_foreground_extract_mode_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
2013-05-08 05:00:57 +08:00
|
|
|
GIMP_FOREGROUND_EXTRACT_SIOX,
|
2014-04-24 23:18:26 +08:00
|
|
|
GIMP_FOREGROUND_EXTRACT_MATTING
|
2005-07-29 10:35:12 +08:00
|
|
|
} GimpForegroundExtractMode;
|
|
|
|
|
|
|
|
|
2005-01-23 07:38:36 +08:00
|
|
|
#define GIMP_TYPE_GRADIENT_TYPE (gimp_gradient_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_gradient_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
2008-11-06 16:28:28 +08:00
|
|
|
GIMP_GRADIENT_LINEAR, /*< desc="Linear" >*/
|
2005-01-23 07:38:36 +08:00
|
|
|
GIMP_GRADIENT_BILINEAR, /*< desc="Bi-linear" >*/
|
|
|
|
GIMP_GRADIENT_RADIAL, /*< desc="Radial" >*/
|
|
|
|
GIMP_GRADIENT_SQUARE, /*< desc="Square" >*/
|
|
|
|
GIMP_GRADIENT_CONICAL_SYMMETRIC, /*< desc="Conical (sym)" >*/
|
|
|
|
GIMP_GRADIENT_CONICAL_ASYMMETRIC, /*< desc="Conical (asym)" >*/
|
|
|
|
GIMP_GRADIENT_SHAPEBURST_ANGULAR, /*< desc="Shaped (angular)" >*/
|
|
|
|
GIMP_GRADIENT_SHAPEBURST_SPHERICAL, /*< desc="Shaped (spherical)">*/
|
|
|
|
GIMP_GRADIENT_SHAPEBURST_DIMPLED, /*< desc="Shaped (dimpled)" >*/
|
|
|
|
GIMP_GRADIENT_SPIRAL_CLOCKWISE, /*< desc="Spiral (cw)" >*/
|
|
|
|
GIMP_GRADIENT_SPIRAL_ANTICLOCKWISE /*< desc="Spiral (ccw)" >*/
|
|
|
|
} GimpGradientType;
|
|
|
|
|
|
|
|
|
2005-10-01 00:35:04 +08:00
|
|
|
#define GIMP_TYPE_GRID_STYLE (gimp_grid_style_get_type ())
|
|
|
|
|
|
|
|
GType gimp_grid_style_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_GRID_DOTS, /*< desc="Intersections (dots)" >*/
|
|
|
|
GIMP_GRID_INTERSECTIONS, /*< desc="Intersections (crosshairs)" >*/
|
|
|
|
GIMP_GRID_ON_OFF_DASH, /*< desc="Dashed" >*/
|
|
|
|
GIMP_GRID_DOUBLE_DASH, /*< desc="Double dashed" >*/
|
|
|
|
GIMP_GRID_SOLID /*< desc="Solid" >*/
|
|
|
|
} GimpGridStyle;
|
|
|
|
|
|
|
|
|
2005-01-23 07:38:36 +08:00
|
|
|
#define GIMP_TYPE_ICON_TYPE (gimp_icon_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_icon_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
2014-05-12 05:56:30 +08:00
|
|
|
GIMP_ICON_TYPE_ICON_NAME, /*< desc="Icon name" >*/
|
2005-01-23 07:38:36 +08:00
|
|
|
GIMP_ICON_TYPE_INLINE_PIXBUF, /*< desc="Inline pixbuf" >*/
|
2014-05-12 05:56:30 +08:00
|
|
|
GIMP_ICON_TYPE_IMAGE_FILE, /*< desc="Image file" >*/
|
|
|
|
|
|
|
|
#ifndef GIMP_DISABLE_DEPRECATED
|
|
|
|
GIMP_ICON_TYPE_STOCK_ID = GIMP_ICON_TYPE_ICON_NAME /*< skip, pdb-skip >*/
|
2014-05-13 05:40:59 +08:00
|
|
|
#endif /* GIMP_DISABLE_DEPRECATED */
|
2005-01-23 07:38:36 +08:00
|
|
|
} GimpIconType;
|
|
|
|
|
|
|
|
|
2004-07-29 20:33:15 +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, /*< desc="RGB color" >*/
|
|
|
|
GIMP_GRAY, /*< desc="Grayscale" >*/
|
|
|
|
GIMP_INDEXED /*< desc="Indexed color" >*/
|
|
|
|
} GimpImageBaseType;
|
|
|
|
|
|
|
|
|
|
|
|
#define GIMP_TYPE_IMAGE_TYPE (gimp_image_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_image_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_RGB_IMAGE, /*< desc="RGB" >*/
|
|
|
|
GIMP_RGBA_IMAGE, /*< desc="RGB-alpha" >*/
|
|
|
|
GIMP_GRAY_IMAGE, /*< desc="Grayscale" >*/
|
|
|
|
GIMP_GRAYA_IMAGE, /*< desc="Grayscale-alpha" >*/
|
|
|
|
GIMP_INDEXED_IMAGE, /*< desc="Indexed" >*/
|
|
|
|
GIMP_INDEXEDA_IMAGE /*< desc="Indexed-alpha" >*/
|
|
|
|
} GimpImageType;
|
|
|
|
|
|
|
|
|
2014-04-30 04:44:58 +08:00
|
|
|
#define GIMP_TYPE_INK_BLOB_TYPE (gimp_ink_blob_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_ink_blob_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_INK_BLOB_TYPE_CIRCLE, /*< desc="Circle" >*/
|
|
|
|
GIMP_INK_BLOB_TYPE_SQUARE, /*< desc="Square" >*/
|
|
|
|
GIMP_INK_BLOB_TYPE_DIAMOND /*< desc="Diamond" >*/
|
|
|
|
} GimpInkBlobType;
|
|
|
|
|
|
|
|
|
2005-01-23 07:06:37 +08:00
|
|
|
#define GIMP_TYPE_INTERPOLATION_TYPE (gimp_interpolation_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_interpolation_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
2012-03-28 07:54:12 +08:00
|
|
|
GIMP_INTERPOLATION_NONE, /*< desc="None" >*/
|
|
|
|
GIMP_INTERPOLATION_LINEAR, /*< desc="Linear" >*/
|
|
|
|
GIMP_INTERPOLATION_CUBIC, /*< desc="Cubic" >*/
|
2013-01-01 04:27:07 +08:00
|
|
|
GIMP_INTERPOLATION_NOHALO, /*< desc="NoHalo" >*/
|
2012-03-28 07:54:12 +08:00
|
|
|
GIMP_INTERPOLATION_LOHALO, /*< desc="LoHalo" >*/
|
2014-04-30 02:55:08 +08:00
|
|
|
|
2014-05-13 05:40:59 +08:00
|
|
|
#ifndef GIMP_DISABLE_DEPRECATED
|
2014-04-25 05:04:52 +08:00
|
|
|
GIMP_INTERPOLATION_LANCZOS = GIMP_INTERPOLATION_NOHALO /*< skip, pdb-skip >*/
|
2014-05-13 05:40:59 +08:00
|
|
|
#endif /* GIMP_DISABLE_DEPRECATED */
|
2005-01-23 07:06:37 +08:00
|
|
|
} GimpInterpolationType;
|
|
|
|
|
|
|
|
|
2005-01-23 08:00:20 +08:00
|
|
|
#define GIMP_TYPE_PAINT_APPLICATION_MODE (gimp_paint_application_mode_get_type ())
|
|
|
|
|
|
|
|
GType gimp_paint_application_mode_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_PAINT_CONSTANT, /*< desc="Constant" >*/
|
|
|
|
GIMP_PAINT_INCREMENTAL /*< desc="Incremental" >*/
|
|
|
|
} GimpPaintApplicationMode;
|
|
|
|
|
|
|
|
|
2005-01-23 07:38:36 +08:00
|
|
|
#define GIMP_TYPE_REPEAT_MODE (gimp_repeat_mode_get_type ())
|
|
|
|
|
|
|
|
GType gimp_repeat_mode_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
2014-04-25 05:08:33 +08:00
|
|
|
GIMP_REPEAT_NONE, /*< desc="None (extend)" >*/
|
2005-01-23 07:38:36 +08:00
|
|
|
GIMP_REPEAT_SAWTOOTH, /*< desc="Sawtooth wave" >*/
|
2014-04-25 05:08:33 +08:00
|
|
|
GIMP_REPEAT_TRIANGULAR, /*< desc="Triangular wave" >*/
|
|
|
|
GIMP_REPEAT_TRUNCATE /*< desc="Truncate" >*/
|
2005-01-23 07:38:36 +08:00
|
|
|
} GimpRepeatMode;
|
|
|
|
|
|
|
|
|
2006-04-06 18:16:39 +08:00
|
|
|
#define GIMP_TYPE_RUN_MODE (gimp_run_mode_get_type ())
|
|
|
|
|
|
|
|
GType gimp_run_mode_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_RUN_INTERACTIVE, /*< desc="Run interactively" >*/
|
|
|
|
GIMP_RUN_NONINTERACTIVE, /*< desc="Run non-interactively" >*/
|
|
|
|
GIMP_RUN_WITH_LAST_VALS /*< desc="Run with last used values" >*/
|
|
|
|
} GimpRunMode;
|
|
|
|
|
|
|
|
|
2005-01-23 08:58:22 +08:00
|
|
|
#define GIMP_TYPE_SIZE_TYPE (gimp_size_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_size_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_PIXELS, /*< desc="Pixels" >*/
|
|
|
|
GIMP_POINTS /*< desc="Points" >*/
|
|
|
|
} GimpSizeType;
|
|
|
|
|
|
|
|
|
2005-01-23 07:06:37 +08:00
|
|
|
#define GIMP_TYPE_TRANSFER_MODE (gimp_transfer_mode_get_type ())
|
|
|
|
|
|
|
|
GType gimp_transfer_mode_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
2014-04-30 02:55:08 +08:00
|
|
|
GIMP_TRANSFER_SHADOWS, /*< desc="Shadows" >*/
|
|
|
|
GIMP_TRANSFER_MIDTONES, /*< desc="Midtones" >*/
|
|
|
|
GIMP_TRANSFER_HIGHLIGHTS, /*< desc="Highlights" >*/
|
|
|
|
|
2014-05-13 05:40:59 +08:00
|
|
|
#ifndef GIMP_DISABLE_DEPRECATED
|
2014-04-30 02:55:08 +08:00
|
|
|
GIMP_SHADOWS = GIMP_TRANSFER_SHADOWS, /*< skip, pdb-skip >*/
|
|
|
|
GIMP_MIDTONES = GIMP_TRANSFER_MIDTONES, /*< skip, pdb-skip >*/
|
|
|
|
GIMP_HIGHLIGHTS = GIMP_TRANSFER_HIGHLIGHTS /*< skip, pdb-skip >*/
|
2014-05-13 05:40:59 +08:00
|
|
|
#endif /* GIMP_DISABLE_DEPRECATED */
|
2005-01-23 07:06:37 +08:00
|
|
|
} GimpTransferMode;
|
|
|
|
|
|
|
|
|
2005-01-23 07:38:36 +08:00
|
|
|
#define GIMP_TYPE_TRANSFORM_DIRECTION (gimp_transform_direction_get_type ())
|
|
|
|
|
|
|
|
GType gimp_transform_direction_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
2007-03-19 16:06:51 +08:00
|
|
|
GIMP_TRANSFORM_FORWARD, /*< desc="Normal (Forward)" >*/
|
|
|
|
GIMP_TRANSFORM_BACKWARD /*< desc="Corrective (Backward)" >*/
|
2005-01-23 07:38:36 +08:00
|
|
|
} GimpTransformDirection;
|
|
|
|
|
|
|
|
|
2006-12-25 00:48:08 +08:00
|
|
|
#define GIMP_TYPE_TRANSFORM_RESIZE (gimp_transform_resize_get_type ())
|
|
|
|
|
|
|
|
GType gimp_transform_resize_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_TRANSFORM_RESIZE_ADJUST = 0, /*< desc="Adjust" >*/
|
|
|
|
GIMP_TRANSFORM_RESIZE_CLIP = 1, /*< desc="Clip" >*/
|
|
|
|
GIMP_TRANSFORM_RESIZE_CROP, /*< desc="Crop to result" >*/
|
2007-08-30 23:03:38 +08:00
|
|
|
GIMP_TRANSFORM_RESIZE_CROP_WITH_ASPECT /*< desc="Crop with aspect" >*/
|
2006-12-25 00:48:08 +08:00
|
|
|
} GimpTransformResize;
|
|
|
|
|
|
|
|
|
2004-10-26 03:29:00 +08:00
|
|
|
typedef enum /*< skip >*/
|
2004-07-29 20:33:15 +08:00
|
|
|
{
|
|
|
|
GIMP_UNIT_PIXEL = 0,
|
|
|
|
|
|
|
|
GIMP_UNIT_INCH = 1,
|
|
|
|
GIMP_UNIT_MM = 2,
|
|
|
|
GIMP_UNIT_POINT = 3,
|
|
|
|
GIMP_UNIT_PICA = 4,
|
|
|
|
|
|
|
|
GIMP_UNIT_END = 5,
|
|
|
|
|
|
|
|
GIMP_UNIT_PERCENT = 65536 /*< pdb-skip >*/
|
|
|
|
} GimpUnit;
|
|
|
|
|
2004-10-26 03:29:00 +08:00
|
|
|
|
|
|
|
#define GIMP_TYPE_PDB_ARG_TYPE (gimp_pdb_arg_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_pdb_arg_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
2004-07-29 20:33:15 +08:00
|
|
|
{
|
|
|
|
GIMP_PDB_INT32,
|
|
|
|
GIMP_PDB_INT16,
|
|
|
|
GIMP_PDB_INT8,
|
|
|
|
GIMP_PDB_FLOAT,
|
|
|
|
GIMP_PDB_STRING,
|
|
|
|
GIMP_PDB_INT32ARRAY,
|
|
|
|
GIMP_PDB_INT16ARRAY,
|
|
|
|
GIMP_PDB_INT8ARRAY,
|
|
|
|
GIMP_PDB_FLOATARRAY,
|
|
|
|
GIMP_PDB_STRINGARRAY,
|
|
|
|
GIMP_PDB_COLOR,
|
2010-07-09 15:34:44 +08:00
|
|
|
GIMP_PDB_ITEM,
|
2004-07-29 20:33:15 +08:00
|
|
|
GIMP_PDB_DISPLAY,
|
|
|
|
GIMP_PDB_IMAGE,
|
|
|
|
GIMP_PDB_LAYER,
|
|
|
|
GIMP_PDB_CHANNEL,
|
|
|
|
GIMP_PDB_DRAWABLE,
|
|
|
|
GIMP_PDB_SELECTION,
|
2008-07-14 22:09:16 +08:00
|
|
|
GIMP_PDB_COLORARRAY,
|
2005-12-29 09:07:02 +08:00
|
|
|
GIMP_PDB_VECTORS,
|
2004-07-29 20:33:15 +08:00
|
|
|
GIMP_PDB_PARASITE,
|
|
|
|
GIMP_PDB_STATUS,
|
2005-12-29 09:07:02 +08:00
|
|
|
GIMP_PDB_END,
|
|
|
|
|
2014-05-13 05:40:59 +08:00
|
|
|
#ifndef GIMP_DISABLE_DEPRECATED
|
2008-07-14 22:09:16 +08:00
|
|
|
GIMP_PDB_PATH = GIMP_PDB_VECTORS, /*< skip >*/
|
2010-07-09 15:34:44 +08:00
|
|
|
GIMP_PDB_BOUNDARY = GIMP_PDB_COLORARRAY, /*< skip >*/
|
|
|
|
GIMP_PDB_REGION = GIMP_PDB_ITEM /*< skip >*/
|
2014-05-13 05:40:59 +08:00
|
|
|
#endif /* GIMP_DISABLE_DEPRECATED */
|
2004-07-29 20:33:15 +08:00
|
|
|
} GimpPDBArgType;
|
|
|
|
|
2004-10-26 03:29:00 +08:00
|
|
|
|
2008-08-19 06:54:26 +08:00
|
|
|
#define GIMP_TYPE_PDB_ERROR_HANDLER (gimp_pdb_error_handler_get_type ())
|
|
|
|
|
|
|
|
GType gimp_pdb_error_handler_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_PDB_ERROR_HANDLER_INTERNAL,
|
|
|
|
GIMP_PDB_ERROR_HANDLER_PLUGIN
|
|
|
|
} GimpPDBErrorHandler;
|
|
|
|
|
|
|
|
|
2004-10-26 03:29:00 +08:00
|
|
|
#define GIMP_TYPE_PDB_PROC_TYPE (gimp_pdb_proc_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_pdb_proc_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
2004-07-29 20:33:15 +08:00
|
|
|
{
|
2005-05-14 23:10:47 +08:00
|
|
|
GIMP_INTERNAL, /*< desc="Internal GIMP procedure" >*/
|
|
|
|
GIMP_PLUGIN, /*< desc="GIMP Plug-In" >*/
|
|
|
|
GIMP_EXTENSION, /*< desc="GIMP Extension" >*/
|
|
|
|
GIMP_TEMPORARY /*< desc="Temporary Procedure" >*/
|
2004-07-29 20:33:15 +08:00
|
|
|
} GimpPDBProcType;
|
|
|
|
|
2004-10-26 03:29:00 +08:00
|
|
|
|
|
|
|
#define GIMP_TYPE_PDB_STATUS_TYPE (gimp_pdb_status_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_pdb_status_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
2004-07-29 20:33:15 +08:00
|
|
|
{
|
|
|
|
GIMP_PDB_EXECUTION_ERROR,
|
|
|
|
GIMP_PDB_CALLING_ERROR,
|
|
|
|
GIMP_PDB_PASS_THROUGH,
|
|
|
|
GIMP_PDB_SUCCESS,
|
|
|
|
GIMP_PDB_CANCEL
|
|
|
|
} GimpPDBStatusType;
|
|
|
|
|
2004-10-26 03:29:00 +08:00
|
|
|
|
|
|
|
#define GIMP_TYPE_MESSAGE_HANDLER_TYPE (gimp_message_handler_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_message_handler_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
2004-07-29 20:33:15 +08:00
|
|
|
{
|
|
|
|
GIMP_MESSAGE_BOX,
|
|
|
|
GIMP_CONSOLE,
|
|
|
|
GIMP_ERROR_CONSOLE
|
|
|
|
} GimpMessageHandlerType;
|
|
|
|
|
2004-10-26 03:29:00 +08:00
|
|
|
|
|
|
|
#define GIMP_TYPE_STACK_TRACE_MODE (gimp_stack_trace_mode_get_type ())
|
|
|
|
|
|
|
|
GType gimp_stack_trace_mode_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
2004-07-29 20:33:15 +08:00
|
|
|
{
|
|
|
|
GIMP_STACK_TRACE_NEVER,
|
|
|
|
GIMP_STACK_TRACE_QUERY,
|
|
|
|
GIMP_STACK_TRACE_ALWAYS
|
|
|
|
} GimpStackTraceMode;
|
|
|
|
|
2004-10-26 03:29:00 +08:00
|
|
|
|
|
|
|
#define GIMP_TYPE_PROGRESS_COMMAND (gimp_progress_command_get_type ())
|
|
|
|
|
|
|
|
GType gimp_progress_command_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
2004-08-30 22:57:24 +08:00
|
|
|
{
|
|
|
|
GIMP_PROGRESS_COMMAND_START,
|
|
|
|
GIMP_PROGRESS_COMMAND_END,
|
|
|
|
GIMP_PROGRESS_COMMAND_SET_TEXT,
|
2005-02-12 23:46:31 +08:00
|
|
|
GIMP_PROGRESS_COMMAND_SET_VALUE,
|
2005-09-10 02:07:31 +08:00
|
|
|
GIMP_PROGRESS_COMMAND_PULSE,
|
|
|
|
GIMP_PROGRESS_COMMAND_GET_WINDOW
|
2004-08-30 22:57:24 +08:00
|
|
|
} GimpProgressCommand;
|
|
|
|
|
2004-07-29 20:33:15 +08:00
|
|
|
|
2008-04-01 05:48:07 +08:00
|
|
|
#define GIMP_TYPE_TEXT_DIRECTION (gimp_text_direction_get_type ())
|
|
|
|
|
|
|
|
GType gimp_text_direction_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_TEXT_DIRECTION_LTR, /*< desc="From left to right" >*/
|
|
|
|
GIMP_TEXT_DIRECTION_RTL /*< desc="From right to left" >*/
|
|
|
|
} GimpTextDirection;
|
|
|
|
|
|
|
|
|
2008-10-27 15:59:32 +08:00
|
|
|
#define GIMP_TYPE_TEXT_HINT_STYLE (gimp_text_hint_style_get_type ())
|
|
|
|
|
|
|
|
GType gimp_text_hint_style_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
2008-11-06 16:28:28 +08:00
|
|
|
GIMP_TEXT_HINT_STYLE_NONE, /*< desc="None" >*/
|
|
|
|
GIMP_TEXT_HINT_STYLE_SLIGHT, /*< desc="Slight" >*/
|
|
|
|
GIMP_TEXT_HINT_STYLE_MEDIUM, /*< desc="Medium" >*/
|
2009-08-22 04:49:38 +08:00
|
|
|
GIMP_TEXT_HINT_STYLE_FULL /*< desc="Full" >*/
|
2008-10-27 15:59:32 +08:00
|
|
|
} GimpTextHintStyle;
|
|
|
|
|
|
|
|
|
2008-04-01 05:48:07 +08:00
|
|
|
#define GIMP_TYPE_TEXT_JUSTIFICATION (gimp_text_justification_get_type ())
|
|
|
|
|
|
|
|
GType gimp_text_justification_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_TEXT_JUSTIFY_LEFT, /*< desc="Left justified" >*/
|
|
|
|
GIMP_TEXT_JUSTIFY_RIGHT, /*< desc="Right justified" >*/
|
|
|
|
GIMP_TEXT_JUSTIFY_CENTER, /*< desc="Centered" >*/
|
|
|
|
GIMP_TEXT_JUSTIFY_FILL /*< desc="Filled" >*/
|
|
|
|
} GimpTextJustification;
|
|
|
|
|
|
|
|
|
2007-10-31 21:09:46 +08:00
|
|
|
#ifndef GIMP_DISABLE_DEPRECATED
|
2007-05-14 00:31:14 +08:00
|
|
|
#define GIMP_TYPE_USER_DIRECTORY (gimp_user_directory_get_type ())
|
|
|
|
|
|
|
|
GType gimp_user_directory_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_USER_DIRECTORY_DESKTOP,
|
|
|
|
GIMP_USER_DIRECTORY_DOCUMENTS,
|
2007-08-12 01:15:52 +08:00
|
|
|
GIMP_USER_DIRECTORY_DOWNLOAD,
|
2007-05-14 00:31:14 +08:00
|
|
|
GIMP_USER_DIRECTORY_MUSIC,
|
|
|
|
GIMP_USER_DIRECTORY_PICTURES,
|
2007-08-12 01:15:52 +08:00
|
|
|
GIMP_USER_DIRECTORY_PUBLIC_SHARE,
|
2007-05-14 00:31:14 +08:00
|
|
|
GIMP_USER_DIRECTORY_TEMPLATES,
|
|
|
|
GIMP_USER_DIRECTORY_VIDEOS
|
|
|
|
} GimpUserDirectory;
|
2007-10-31 21:09:46 +08:00
|
|
|
#endif /* !GIMP_DISABLE_DEPRECATED */
|
2007-05-14 00:31:14 +08:00
|
|
|
|
|
|
|
|
2006-10-25 23:14:03 +08:00
|
|
|
#define GIMP_TYPE_VECTORS_STROKE_TYPE (gimp_vectors_stroke_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_vectors_stroke_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_VECTORS_STROKE_TYPE_BEZIER
|
|
|
|
} GimpVectorsStrokeType;
|
|
|
|
|
2004-07-29 20:33:15 +08:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __GIMP_BASE_ENUMS_H__ */
|