2006-12-10 05:33:38 +08:00
|
|
|
/* GIMP - The GNU Image Manipulation Program
|
2001-12-09 07:12:59 +08:00
|
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
|
|
*
|
2009-01-18 06:28:01 +08:00
|
|
|
* This program is free software: you can redistribute it and/or modify
|
2001-12-09 07:12:59 +08:00
|
|
|
* it under the terms of the GNU General Public License as published by
|
2009-01-18 06:28:01 +08:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
2001-12-09 07:12:59 +08:00
|
|
|
* (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
|
2009-01-18 06:28:01 +08:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2001-12-09 07:12:59 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __CORE_ENUMS_H__
|
|
|
|
#define __CORE_ENUMS_H__
|
|
|
|
|
2004-07-28 19:50:20 +08:00
|
|
|
|
2001-12-12 02:11:56 +08:00
|
|
|
#if 0
|
2003-04-15 22:20:19 +08:00
|
|
|
This file is parsed by two scripts, enumgen.pl in tools/pdbgen,
|
2003-08-26 05:25:13 +08:00
|
|
|
and gimp-mkenums. All enums that are not marked with
|
2002-03-29 11:50:29 +08:00
|
|
|
/*< pdb-skip >*/ are exported to libgimp and the PDB. Enums that are
|
2003-08-26 05:25:13 +08:00
|
|
|
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, skip >*/.
|
2001-12-09 07:12:59 +08:00
|
|
|
|
2004-01-06 22:02:08 +08:00
|
|
|
The same syntax applies to enum values.
|
2002-03-29 11:50:29 +08:00
|
|
|
#endif
|
2001-12-12 02:11:56 +08:00
|
|
|
|
2003-03-06 21:22:11 +08:00
|
|
|
|
2003-08-26 05:25:13 +08:00
|
|
|
/*
|
2006-08-30 05:44:51 +08:00
|
|
|
* these enums are registered with the type system
|
2001-12-12 02:11:56 +08:00
|
|
|
*/
|
2001-12-09 07:12:59 +08:00
|
|
|
|
2002-03-13 22:51:48 +08:00
|
|
|
|
2012-04-26 05:23:31 +08:00
|
|
|
#define GIMP_TYPE_COMPONENT_MASK (gimp_component_mask_get_type ())
|
|
|
|
|
|
|
|
GType gimp_component_mask_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum /*< pdb-skip >*/
|
|
|
|
{
|
2015-09-07 06:35:02 +08:00
|
|
|
GIMP_COMPONENT_MASK_RED = 1 << 0,
|
|
|
|
GIMP_COMPONENT_MASK_GREEN = 1 << 1,
|
|
|
|
GIMP_COMPONENT_MASK_BLUE = 1 << 2,
|
|
|
|
GIMP_COMPONENT_MASK_ALPHA = 1 << 3,
|
2012-04-26 05:23:31 +08:00
|
|
|
|
2015-09-07 06:35:02 +08:00
|
|
|
GIMP_COMPONENT_MASK_ALL = (GIMP_COMPONENT_MASK_RED | GIMP_COMPONENT_MASK_GREEN | GIMP_COMPONENT_MASK_BLUE | GIMP_COMPONENT_MASK_ALPHA)
|
2012-04-26 05:23:31 +08:00
|
|
|
} GimpComponentMask;
|
|
|
|
|
|
|
|
|
2003-08-26 05:25:13 +08:00
|
|
|
#define GIMP_TYPE_CONTAINER_POLICY (gimp_container_policy_get_type ())
|
|
|
|
|
|
|
|
GType gimp_container_policy_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum /*< pdb-skip >*/
|
|
|
|
{
|
|
|
|
GIMP_CONTAINER_POLICY_STRONG,
|
|
|
|
GIMP_CONTAINER_POLICY_WEAK
|
|
|
|
} GimpContainerPolicy;
|
|
|
|
|
|
|
|
|
2002-03-20 22:10:45 +08:00
|
|
|
#define GIMP_TYPE_CONVERT_DITHER_TYPE (gimp_convert_dither_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_convert_dither_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
2004-10-14 21:44:06 +08:00
|
|
|
GIMP_NO_DITHER, /*< desc="None" >*/
|
|
|
|
GIMP_FS_DITHER, /*< desc="Floyd-Steinberg (normal)" >*/
|
|
|
|
GIMP_FSLOWBLEED_DITHER, /*< desc="Floyd-Steinberg (reduced color bleeding)" >*/
|
|
|
|
GIMP_FIXED_DITHER, /*< desc="Positioned" >*/
|
|
|
|
GIMP_NODESTRUCT_DITHER /*< pdb-skip, skip >*/
|
2002-03-20 22:10:45 +08:00
|
|
|
} GimpConvertDitherType;
|
|
|
|
|
|
|
|
|
2012-04-09 07:11:50 +08:00
|
|
|
#define GIMP_TYPE_CONVOLUTION_TYPE (gimp_convolution_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_convolution_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
2014-04-28 05:05:12 +08:00
|
|
|
typedef enum /*< pdb-skip >*/
|
2012-04-09 07:11:50 +08:00
|
|
|
{
|
|
|
|
GIMP_NORMAL_CONVOL, /* Negative numbers truncated */
|
|
|
|
GIMP_ABSOLUTE_CONVOL, /* Absolute value */
|
|
|
|
GIMP_NEGATIVE_CONVOL /* add 127 to values */
|
|
|
|
} GimpConvolutionType;
|
|
|
|
|
|
|
|
|
2012-04-04 07:43:41 +08:00
|
|
|
#define GIMP_TYPE_CURVE_TYPE (gimp_curve_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_curve_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum /*< pdb-skip >*/
|
|
|
|
{
|
|
|
|
GIMP_CURVE_SMOOTH, /*< desc="Smooth" >*/
|
|
|
|
GIMP_CURVE_FREE /*< desc="Freehand" >*/
|
|
|
|
} GimpCurveType;
|
|
|
|
|
|
|
|
|
2003-01-31 21:36:27 +08:00
|
|
|
#define GIMP_TYPE_GRAVITY_TYPE (gimp_gravity_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_gravity_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum /*< pdb-skip >*/
|
|
|
|
{
|
2003-02-01 04:21:01 +08:00
|
|
|
GIMP_GRAVITY_NONE,
|
2003-01-31 21:36:27 +08:00
|
|
|
GIMP_GRAVITY_NORTH_WEST,
|
2003-02-01 04:21:01 +08:00
|
|
|
GIMP_GRAVITY_NORTH,
|
2003-01-31 21:36:27 +08:00
|
|
|
GIMP_GRAVITY_NORTH_EAST,
|
|
|
|
GIMP_GRAVITY_WEST,
|
2003-02-01 04:21:01 +08:00
|
|
|
GIMP_GRAVITY_CENTER,
|
|
|
|
GIMP_GRAVITY_EAST,
|
|
|
|
GIMP_GRAVITY_SOUTH_WEST,
|
|
|
|
GIMP_GRAVITY_SOUTH,
|
|
|
|
GIMP_GRAVITY_SOUTH_EAST
|
2003-01-31 21:36:27 +08:00
|
|
|
} GimpGravityType;
|
|
|
|
|
|
|
|
|
2012-04-04 07:43:41 +08:00
|
|
|
#define GIMP_TYPE_HISTOGRAM_CHANNEL (gimp_histogram_channel_get_type ())
|
|
|
|
|
|
|
|
GType gimp_histogram_channel_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_HISTOGRAM_VALUE = 0, /*< desc="Value" >*/
|
|
|
|
GIMP_HISTOGRAM_RED = 1, /*< desc="Red" >*/
|
|
|
|
GIMP_HISTOGRAM_GREEN = 2, /*< desc="Green" >*/
|
|
|
|
GIMP_HISTOGRAM_BLUE = 3, /*< desc="Blue" >*/
|
|
|
|
GIMP_HISTOGRAM_ALPHA = 4, /*< desc="Alpha" >*/
|
|
|
|
GIMP_HISTOGRAM_RGB = 5 /*< desc="RGB", pdb-skip >*/
|
|
|
|
} GimpHistogramChannel;
|
|
|
|
|
|
|
|
|
2012-04-09 07:11:50 +08:00
|
|
|
#define GIMP_TYPE_LAYER_MODE_EFFECTS (gimp_layer_mode_effects_get_type ())
|
|
|
|
|
|
|
|
GType gimp_layer_mode_effects_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_NORMAL_MODE, /*< desc="Normal" >*/
|
|
|
|
GIMP_DISSOLVE_MODE, /*< desc="Dissolve" >*/
|
|
|
|
GIMP_BEHIND_MODE, /*< desc="Behind" >*/
|
|
|
|
GIMP_MULTIPLY_MODE, /*< desc="Multiply" >*/
|
|
|
|
GIMP_SCREEN_MODE, /*< desc="Screen" >*/
|
2015-04-28 05:48:00 +08:00
|
|
|
GIMP_OVERLAY_MODE, /*< desc="Old broken Overlay" >*/
|
2012-04-09 07:11:50 +08:00
|
|
|
GIMP_DIFFERENCE_MODE, /*< desc="Difference" >*/
|
|
|
|
GIMP_ADDITION_MODE, /*< desc="Addition" >*/
|
|
|
|
GIMP_SUBTRACT_MODE, /*< desc="Subtract" >*/
|
|
|
|
GIMP_DARKEN_ONLY_MODE, /*< desc="Darken only" >*/
|
|
|
|
GIMP_LIGHTEN_ONLY_MODE, /*< desc="Lighten only" >*/
|
2015-05-20 21:19:30 +08:00
|
|
|
GIMP_HUE_MODE, /*< desc="Hue (HSV)" >*/
|
|
|
|
GIMP_SATURATION_MODE, /*< desc="Saturation (HSV)" >*/
|
|
|
|
GIMP_COLOR_MODE, /*< desc="Color (HSV)" >*/
|
|
|
|
GIMP_VALUE_MODE, /*< desc="Value (HSV)" >*/
|
2012-04-09 07:11:50 +08:00
|
|
|
GIMP_DIVIDE_MODE, /*< desc="Divide" >*/
|
|
|
|
GIMP_DODGE_MODE, /*< desc="Dodge" >*/
|
|
|
|
GIMP_BURN_MODE, /*< desc="Burn" >*/
|
|
|
|
GIMP_HARDLIGHT_MODE, /*< desc="Hard light" >*/
|
|
|
|
GIMP_SOFTLIGHT_MODE, /*< desc="Soft light" >*/
|
|
|
|
GIMP_GRAIN_EXTRACT_MODE, /*< desc="Grain extract" >*/
|
|
|
|
GIMP_GRAIN_MERGE_MODE, /*< desc="Grain merge" >*/
|
|
|
|
GIMP_COLOR_ERASE_MODE, /*< desc="Color erase" >*/
|
2015-04-28 05:48:00 +08:00
|
|
|
GIMP_NEW_OVERLAY_MODE, /*< desc="Overlay" >*/
|
2015-05-20 21:19:30 +08:00
|
|
|
GIMP_LCH_HUE_MODE, /*< desc="Hue (LCH)" >*/
|
|
|
|
GIMP_LCH_CHROMA_MODE, /*< desc="Chroma (LCH)" >*/
|
|
|
|
GIMP_LCH_COLOR_MODE, /*< desc="Color (LCH)" >*/
|
|
|
|
GIMP_LCH_LIGHTNESS_MODE, /*< desc="Lightness (LCH)" >*/
|
2015-04-20 03:28:29 +08:00
|
|
|
|
|
|
|
/* internal modes, not available to the PDB */
|
|
|
|
GIMP_ERASE_MODE = 1000, /*< pdb-skip, desc="Erase" >*/
|
|
|
|
GIMP_REPLACE_MODE = 1001, /*< pdb-skip, desc="Replace" >*/
|
|
|
|
GIMP_ANTI_ERASE_MODE = 1002 /*< pdb-skip, desc="Anti erase" >*/
|
2012-04-09 07:11:50 +08:00
|
|
|
} GimpLayerModeEffects;
|
|
|
|
|
|
|
|
|
2014-06-04 05:05:23 +08:00
|
|
|
#define GIMP_TYPE_MATTING_ENGINE (gimp_matting_engine_get_type ())
|
|
|
|
|
|
|
|
GType gimp_matting_engine_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum /*< pdb-skip >*/
|
|
|
|
{
|
|
|
|
GIMP_MATTING_ENGINE_GLOBAL, /*< desc="Matting Global" >*/
|
|
|
|
GIMP_MATTING_ENGINE_LEVIN, /*< desc="Matting Levin" >*/
|
|
|
|
} GimpMattingEngine;
|
|
|
|
|
|
|
|
|
2011-03-29 18:45:54 +08:00
|
|
|
#define GIMP_TYPE_ALIGNMENT_TYPE (gimp_alignment_type_get_type ())
|
2005-06-04 01:05:01 +08:00
|
|
|
|
|
|
|
GType gimp_alignment_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum /*< pdb-skip >*/
|
|
|
|
{
|
|
|
|
GIMP_ALIGN_LEFT,
|
2006-06-09 06:15:45 +08:00
|
|
|
GIMP_ALIGN_HCENTER,
|
2005-06-04 01:05:01 +08:00
|
|
|
GIMP_ALIGN_RIGHT,
|
|
|
|
GIMP_ALIGN_TOP,
|
2006-06-09 06:15:45 +08:00
|
|
|
GIMP_ALIGN_VCENTER,
|
|
|
|
GIMP_ALIGN_BOTTOM,
|
|
|
|
GIMP_ARRANGE_LEFT,
|
|
|
|
GIMP_ARRANGE_HCENTER,
|
|
|
|
GIMP_ARRANGE_RIGHT,
|
|
|
|
GIMP_ARRANGE_TOP,
|
|
|
|
GIMP_ARRANGE_VCENTER,
|
2014-03-13 14:38:53 +08:00
|
|
|
GIMP_ARRANGE_BOTTOM,
|
|
|
|
GIMP_ARRANGE_HFILL,
|
|
|
|
GIMP_ARRANGE_VFILL
|
2005-06-04 01:05:01 +08:00
|
|
|
} GimpAlignmentType;
|
|
|
|
|
|
|
|
|
2011-03-29 18:45:54 +08:00
|
|
|
#define GIMP_TYPE_ALIGN_REFERENCE_TYPE (gimp_align_reference_type_get_type ())
|
2006-06-10 05:52:45 +08:00
|
|
|
|
|
|
|
GType gimp_align_reference_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum /*< pdb-skip >*/
|
|
|
|
{
|
|
|
|
GIMP_ALIGN_REFERENCE_FIRST, /*< desc="First item" >*/
|
|
|
|
GIMP_ALIGN_REFERENCE_IMAGE, /*< desc="Image" >*/
|
|
|
|
GIMP_ALIGN_REFERENCE_SELECTION, /*< desc="Selection" >*/
|
|
|
|
GIMP_ALIGN_REFERENCE_ACTIVE_LAYER, /*< desc="Active layer" >*/
|
|
|
|
GIMP_ALIGN_REFERENCE_ACTIVE_CHANNEL, /*< desc="Active channel" >*/
|
|
|
|
GIMP_ALIGN_REFERENCE_ACTIVE_PATH /*< desc="Active path" >*/
|
|
|
|
} GimpAlignReferenceType;
|
|
|
|
|
|
|
|
|
2008-10-24 05:30:28 +08:00
|
|
|
#define GIMP_TYPE_FILL_STYLE (gimp_fill_style_get_type ())
|
2004-10-22 20:32:31 +08:00
|
|
|
|
2008-10-24 05:30:28 +08:00
|
|
|
GType gimp_fill_style_get_type (void) G_GNUC_CONST;
|
2004-10-22 20:32:31 +08:00
|
|
|
|
|
|
|
typedef enum /*< pdb-skip >*/
|
|
|
|
{
|
2008-10-24 05:30:28 +08:00
|
|
|
GIMP_FILL_STYLE_SOLID, /*< desc="Solid color" >*/
|
|
|
|
GIMP_FILL_STYLE_PATTERN /*< desc="Pattern" >*/
|
|
|
|
} GimpFillStyle;
|
2004-10-22 20:32:31 +08:00
|
|
|
|
|
|
|
|
2003-12-29 01:09:41 +08:00
|
|
|
#define GIMP_TYPE_DASH_PRESET (gimp_dash_preset_get_type ())
|
|
|
|
|
|
|
|
GType gimp_dash_preset_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum /*< pdb-skip >*/
|
|
|
|
{
|
2005-05-22 21:12:14 +08:00
|
|
|
GIMP_DASH_CUSTOM, /*< desc="Custom" >*/
|
|
|
|
GIMP_DASH_LINE, /*< desc="Line" >*/
|
|
|
|
GIMP_DASH_LONG_DASH, /*< desc="Long dashes" >*/
|
|
|
|
GIMP_DASH_MEDIUM_DASH, /*< desc="Medium dashes" >*/
|
|
|
|
GIMP_DASH_SHORT_DASH, /*< desc="Short dashes" >*/
|
|
|
|
GIMP_DASH_SPARSE_DOTS, /*< desc="Sparse dots" >*/
|
|
|
|
GIMP_DASH_NORMAL_DOTS, /*< desc="Normal dots" >*/
|
|
|
|
GIMP_DASH_DENSE_DOTS, /*< desc="Dense dots" >*/
|
|
|
|
GIMP_DASH_STIPPLES, /*< desc="Stipples" >*/
|
|
|
|
GIMP_DASH_DASH_DOT, /*< desc="Dash, dot" >*/
|
|
|
|
GIMP_DASH_DASH_DOT_DOT /*< desc="Dash, dot, dot" >*/
|
2003-12-29 01:09:41 +08:00
|
|
|
} GimpDashPreset;
|
|
|
|
|
|
|
|
|
2006-05-19 22:50:46 +08:00
|
|
|
#define GIMP_TYPE_ITEM_SET (gimp_item_set_get_type ())
|
2005-02-25 00:39:12 +08:00
|
|
|
|
2006-05-19 22:50:46 +08:00
|
|
|
GType gimp_item_set_get_type (void) G_GNUC_CONST;
|
2005-02-25 00:39:12 +08:00
|
|
|
|
|
|
|
typedef enum /*< pdb-skip >*/
|
|
|
|
{
|
2006-05-19 22:50:46 +08:00
|
|
|
GIMP_ITEM_SET_NONE, /*< desc="None" >*/
|
|
|
|
GIMP_ITEM_SET_ALL, /*< desc="All layers" >*/
|
|
|
|
GIMP_ITEM_SET_IMAGE_SIZED, /*< desc="Image-sized layers" >*/
|
|
|
|
GIMP_ITEM_SET_VISIBLE, /*< desc="All visible layers" >*/
|
|
|
|
GIMP_ITEM_SET_LINKED /*< desc="All linked layers" >*/
|
|
|
|
} GimpItemSet;
|
2005-02-25 00:39:12 +08:00
|
|
|
|
|
|
|
|
2004-08-29 19:58:05 +08:00
|
|
|
#define GIMP_TYPE_VIEW_SIZE (gimp_view_size_get_type ())
|
2002-03-19 06:26:41 +08:00
|
|
|
|
2004-08-29 19:58:05 +08:00
|
|
|
GType gimp_view_size_get_type (void) G_GNUC_CONST;
|
2002-03-19 06:26:41 +08:00
|
|
|
|
|
|
|
typedef enum /*< pdb-skip >*/
|
|
|
|
{
|
2004-08-29 19:58:05 +08:00
|
|
|
GIMP_VIEW_SIZE_TINY = 12, /*< desc="Tiny" >*/
|
|
|
|
GIMP_VIEW_SIZE_EXTRA_SMALL = 16, /*< desc="Very small" >*/
|
|
|
|
GIMP_VIEW_SIZE_SMALL = 24, /*< desc="Small" >*/
|
|
|
|
GIMP_VIEW_SIZE_MEDIUM = 32, /*< desc="Medium" >*/
|
|
|
|
GIMP_VIEW_SIZE_LARGE = 48, /*< desc="Large" >*/
|
|
|
|
GIMP_VIEW_SIZE_EXTRA_LARGE = 64, /*< desc="Very large" >*/
|
|
|
|
GIMP_VIEW_SIZE_HUGE = 96, /*< desc="Huge" >*/
|
|
|
|
GIMP_VIEW_SIZE_ENORMOUS = 128, /*< desc="Enormous" >*/
|
|
|
|
GIMP_VIEW_SIZE_GIGANTIC = 192 /*< desc="Gigantic" >*/
|
|
|
|
} GimpViewSize;
|
2002-03-19 06:26:41 +08:00
|
|
|
|
|
|
|
|
2006-01-14 08:09:22 +08:00
|
|
|
#define GIMP_TYPE_VIEW_TYPE (gimp_view_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_view_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum /*< pdb-skip >*/
|
|
|
|
{
|
|
|
|
GIMP_VIEW_TYPE_LIST, /*< desc="View as list" >*/
|
|
|
|
GIMP_VIEW_TYPE_GRID /*< desc="View as grid" >*/
|
|
|
|
} GimpViewType;
|
|
|
|
|
|
|
|
|
2002-04-30 03:41:45 +08:00
|
|
|
#define GIMP_TYPE_THUMBNAIL_SIZE (gimp_thumbnail_size_get_type ())
|
|
|
|
|
|
|
|
GType gimp_thumbnail_size_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum /*< pdb-skip >*/
|
|
|
|
{
|
2004-06-30 23:47:32 +08:00
|
|
|
GIMP_THUMBNAIL_SIZE_NONE = 0, /*< desc="No thumbnails" >*/
|
2002-04-30 03:41:45 +08:00
|
|
|
GIMP_THUMBNAIL_SIZE_NORMAL = 128, /*< desc="Normal (128x128)" >*/
|
|
|
|
GIMP_THUMBNAIL_SIZE_LARGE = 256 /*< desc="Large (256x256)" >*/
|
|
|
|
} GimpThumbnailSize;
|
|
|
|
|
|
|
|
|
2003-02-13 01:11:34 +08:00
|
|
|
#define GIMP_TYPE_UNDO_MODE (gimp_undo_mode_get_type ())
|
|
|
|
|
|
|
|
GType gimp_undo_mode_get_type (void) G_GNUC_CONST;
|
|
|
|
|
2003-02-13 17:38:39 +08:00
|
|
|
typedef enum /*< pdb-skip >*/
|
2003-02-13 01:11:34 +08:00
|
|
|
{
|
|
|
|
GIMP_UNDO_MODE_UNDO,
|
|
|
|
GIMP_UNDO_MODE_REDO
|
|
|
|
} GimpUndoMode;
|
|
|
|
|
|
|
|
|
2003-02-20 20:47:42 +08:00
|
|
|
#define GIMP_TYPE_UNDO_EVENT (gimp_undo_event_get_type ())
|
|
|
|
|
|
|
|
GType gimp_undo_event_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum /*< pdb-skip >*/
|
|
|
|
{
|
|
|
|
GIMP_UNDO_EVENT_UNDO_PUSHED, /* a new undo has been added to the undo stack */
|
|
|
|
GIMP_UNDO_EVENT_UNDO_EXPIRED, /* an undo has been freed from the undo stack */
|
|
|
|
GIMP_UNDO_EVENT_REDO_EXPIRED, /* a redo has been freed from the redo stack */
|
|
|
|
GIMP_UNDO_EVENT_UNDO, /* an undo has been executed */
|
|
|
|
GIMP_UNDO_EVENT_REDO, /* a redo has been executed */
|
2003-11-26 00:12:53 +08:00
|
|
|
GIMP_UNDO_EVENT_UNDO_FREE, /* all undo and redo info has been cleared */
|
|
|
|
GIMP_UNDO_EVENT_UNDO_FREEZE, /* undo has been frozen */
|
|
|
|
GIMP_UNDO_EVENT_UNDO_THAW /* undo has been thawn */
|
2003-02-20 20:47:42 +08:00
|
|
|
} GimpUndoEvent;
|
|
|
|
|
|
|
|
|
2003-02-13 01:11:34 +08:00
|
|
|
#define GIMP_TYPE_UNDO_TYPE (gimp_undo_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_undo_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum /*< pdb-skip >*/
|
|
|
|
{
|
|
|
|
/* Type NO_UNDO_GROUP (0) is special - in the gimpimage structure it
|
|
|
|
* means there is no undo group currently being added to.
|
|
|
|
*/
|
Made drawable/layer properties (visibility, opacity etc.) undoable (fixes
2003-03-17 Michael Natterer <mitch@gimp.org>
Made drawable/layer properties (visibility, opacity etc.)
undoable (fixes bug #73893).
* app/core/core-enums.[ch]: added undo types/groups for
visibility, mode, opacity, linked and preserve_trans.
* app/core/Makefile.am
* app/core/core-types.h
* app/core/gimpitemundo.[ch]: new GimpUndo subclass which holds a
ref'ed GimpItem pointer so (1) this doesn't need to be done by all
undo steps related to an item and (2) the item the undo step is
for can be determined from outside the undo system.
* app/core/gimpimage-undo.[ch]: added gimp_image_undo_push_item()
which returns a new GimpItemUndo.
* app/core/gimpimage-undo-push.[ch]: use it for all item related
undo steps. Removed lots of GimpItem, GimpLayer, GimpDrawable
and GimpVectors pointers from the private undo structs. Added
undo push functions for the new undo types added above.
* app/core/gimpdrawable.[ch] (gimp_drawable_set_visible): added
"gboolean push_undo" parameter.
* app/core/gimplayer.[ch] (gimp_layer_set_opacity, _mode,
_preserve_trans, _linked): added "gboolean push_undo" parameters.
* app/core/gimpimage-mask.c
* app/core/gimpimage-merge.c
* app/core/gimplayer-floating-sel.c
* app/tools/gimpmovetool.c
* app/xcf/xcf-load.c
* app/widgets/gimpdrawablelistitem.c
* app/widgets/gimplayerlistitem.c
* app/widgets/gimplayerlistview.c: changed accordingly.
* tools/pdbgen/pdb/channel.pdb
* tools/pdbgen/pdb/layer.pdb: ditto. Added '$undo' paramaters to
the foo_accessors() functions. Removed $func from foo_accesors()
because we don't manipulate items without using getters/setters
any longer.
* app/pdb/channel_cmds.c
* app/pdb/layer_cmds.c: regenerated.
* app/widgets/gimpcellrenderertoggle.[ch]: added "clicked" signal
which carries an additional "GdkModifierType state" parameter as
in GimpCellRendererViewable .
* app/widgets/gimpcontainertreeview.c: emit "clicked" from
the toggle renderer, not "toggled" so the callbacks get the
modifier state.
* app/widgets/gimpdrawabletreeview.c: resurrected the "exclusive
visible by <shift>+click" feature as in 1.2.
* app/widgets/gimplayertreeview.c: compress layer opacity undos by
looking at the top of the undo stack and not pushing an undo if
there already is a GIMP_UNDO_DRAWABLE_OPACITY for the active
layer.
2003-03-18 02:02:41 +08:00
|
|
|
GIMP_UNDO_GROUP_NONE = 0, /*< desc="<<invalid>>" >*/
|
2003-02-13 19:23:50 +08:00
|
|
|
|
|
|
|
GIMP_UNDO_GROUP_FIRST = GIMP_UNDO_GROUP_NONE, /*< skip >*/
|
|
|
|
|
2004-06-30 23:47:32 +08:00
|
|
|
GIMP_UNDO_GROUP_IMAGE_SCALE, /*< desc="Scale image" >*/
|
|
|
|
GIMP_UNDO_GROUP_IMAGE_RESIZE, /*< desc="Resize image" >*/
|
|
|
|
GIMP_UNDO_GROUP_IMAGE_FLIP, /*< desc="Flip image" >*/
|
|
|
|
GIMP_UNDO_GROUP_IMAGE_ROTATE, /*< desc="Rotate image" >*/
|
|
|
|
GIMP_UNDO_GROUP_IMAGE_CROP, /*< desc="Crop image" >*/
|
2004-07-29 22:16:21 +08:00
|
|
|
GIMP_UNDO_GROUP_IMAGE_CONVERT, /*< desc="Convert image" >*/
|
2005-04-05 07:12:50 +08:00
|
|
|
GIMP_UNDO_GROUP_IMAGE_ITEM_REMOVE, /*< desc="Remove item" >*/
|
2004-06-30 23:47:32 +08:00
|
|
|
GIMP_UNDO_GROUP_IMAGE_LAYERS_MERGE, /*< desc="Merge layers" >*/
|
2005-09-12 03:26:59 +08:00
|
|
|
GIMP_UNDO_GROUP_IMAGE_VECTORS_MERGE,/*< desc="Merge paths" >*/
|
2005-09-19 20:44:06 +08:00
|
|
|
GIMP_UNDO_GROUP_IMAGE_QUICK_MASK, /*< desc="Quick Mask" >*/
|
2005-03-05 08:10:40 +08:00
|
|
|
GIMP_UNDO_GROUP_IMAGE_GRID, /*< desc="Grid" >*/
|
2007-01-30 07:21:41 +08:00
|
|
|
GIMP_UNDO_GROUP_GUIDE, /*< desc="Guide" >*/
|
|
|
|
GIMP_UNDO_GROUP_SAMPLE_POINT, /*< desc="Sample Point" >*/
|
2005-09-12 03:26:59 +08:00
|
|
|
GIMP_UNDO_GROUP_DRAWABLE, /*< desc="Layer/Channel" >*/
|
|
|
|
GIMP_UNDO_GROUP_DRAWABLE_MOD, /*< desc="Layer/Channel modification" >*/
|
2004-06-30 23:47:32 +08:00
|
|
|
GIMP_UNDO_GROUP_MASK, /*< desc="Selection mask" >*/
|
|
|
|
GIMP_UNDO_GROUP_ITEM_VISIBILITY, /*< desc="Item visibility" >*/
|
2005-09-12 03:26:59 +08:00
|
|
|
GIMP_UNDO_GROUP_ITEM_LINKED, /*< desc="Link/Unlink item" >*/
|
2004-06-30 23:47:32 +08:00
|
|
|
GIMP_UNDO_GROUP_ITEM_PROPERTIES, /*< desc="Item properties" >*/
|
|
|
|
GIMP_UNDO_GROUP_ITEM_DISPLACE, /*< desc="Move item" >*/
|
|
|
|
GIMP_UNDO_GROUP_ITEM_SCALE, /*< desc="Scale item" >*/
|
|
|
|
GIMP_UNDO_GROUP_ITEM_RESIZE, /*< desc="Resize item" >*/
|
2006-11-04 01:12:27 +08:00
|
|
|
GIMP_UNDO_GROUP_LAYER_ADD, /*< desc="Add layer" >*/
|
2004-06-30 23:47:32 +08:00
|
|
|
GIMP_UNDO_GROUP_LAYER_ADD_MASK, /*< desc="Add layer mask" >*/
|
|
|
|
GIMP_UNDO_GROUP_LAYER_APPLY_MASK, /*< desc="Apply layer mask" >*/
|
|
|
|
GIMP_UNDO_GROUP_FS_TO_LAYER, /*< desc="Floating selection to layer" >*/
|
|
|
|
GIMP_UNDO_GROUP_FS_FLOAT, /*< desc="Float selection" >*/
|
|
|
|
GIMP_UNDO_GROUP_FS_ANCHOR, /*< desc="Anchor floating selection" >*/
|
Made drawable/layer properties (visibility, opacity etc.) undoable (fixes
2003-03-17 Michael Natterer <mitch@gimp.org>
Made drawable/layer properties (visibility, opacity etc.)
undoable (fixes bug #73893).
* app/core/core-enums.[ch]: added undo types/groups for
visibility, mode, opacity, linked and preserve_trans.
* app/core/Makefile.am
* app/core/core-types.h
* app/core/gimpitemundo.[ch]: new GimpUndo subclass which holds a
ref'ed GimpItem pointer so (1) this doesn't need to be done by all
undo steps related to an item and (2) the item the undo step is
for can be determined from outside the undo system.
* app/core/gimpimage-undo.[ch]: added gimp_image_undo_push_item()
which returns a new GimpItemUndo.
* app/core/gimpimage-undo-push.[ch]: use it for all item related
undo steps. Removed lots of GimpItem, GimpLayer, GimpDrawable
and GimpVectors pointers from the private undo structs. Added
undo push functions for the new undo types added above.
* app/core/gimpdrawable.[ch] (gimp_drawable_set_visible): added
"gboolean push_undo" parameter.
* app/core/gimplayer.[ch] (gimp_layer_set_opacity, _mode,
_preserve_trans, _linked): added "gboolean push_undo" parameters.
* app/core/gimpimage-mask.c
* app/core/gimpimage-merge.c
* app/core/gimplayer-floating-sel.c
* app/tools/gimpmovetool.c
* app/xcf/xcf-load.c
* app/widgets/gimpdrawablelistitem.c
* app/widgets/gimplayerlistitem.c
* app/widgets/gimplayerlistview.c: changed accordingly.
* tools/pdbgen/pdb/channel.pdb
* tools/pdbgen/pdb/layer.pdb: ditto. Added '$undo' paramaters to
the foo_accessors() functions. Removed $func from foo_accesors()
because we don't manipulate items without using getters/setters
any longer.
* app/pdb/channel_cmds.c
* app/pdb/layer_cmds.c: regenerated.
* app/widgets/gimpcellrenderertoggle.[ch]: added "clicked" signal
which carries an additional "GdkModifierType state" parameter as
in GimpCellRendererViewable .
* app/widgets/gimpcontainertreeview.c: emit "clicked" from
the toggle renderer, not "toggled" so the callbacks get the
modifier state.
* app/widgets/gimpdrawabletreeview.c: resurrected the "exclusive
visible by <shift>+click" feature as in 1.2.
* app/widgets/gimplayertreeview.c: compress layer opacity undos by
looking at the top of the undo stack and not pushing an undo if
there already is a GIMP_UNDO_DRAWABLE_OPACITY for the active
layer.
2003-03-18 02:02:41 +08:00
|
|
|
GIMP_UNDO_GROUP_EDIT_PASTE, /*< desc="Paste" >*/
|
|
|
|
GIMP_UNDO_GROUP_EDIT_CUT, /*< desc="Cut" >*/
|
|
|
|
GIMP_UNDO_GROUP_TEXT, /*< desc="Text" >*/
|
|
|
|
GIMP_UNDO_GROUP_TRANSFORM, /*< desc="Transform" >*/
|
|
|
|
GIMP_UNDO_GROUP_PAINT, /*< desc="Paint" >*/
|
2004-06-30 23:47:32 +08:00
|
|
|
GIMP_UNDO_GROUP_PARASITE_ATTACH, /*< desc="Attach parasite" >*/
|
|
|
|
GIMP_UNDO_GROUP_PARASITE_REMOVE, /*< desc="Remove parasite" >*/
|
|
|
|
GIMP_UNDO_GROUP_VECTORS_IMPORT, /*< desc="Import paths" >*/
|
Made drawable/layer properties (visibility, opacity etc.) undoable (fixes
2003-03-17 Michael Natterer <mitch@gimp.org>
Made drawable/layer properties (visibility, opacity etc.)
undoable (fixes bug #73893).
* app/core/core-enums.[ch]: added undo types/groups for
visibility, mode, opacity, linked and preserve_trans.
* app/core/Makefile.am
* app/core/core-types.h
* app/core/gimpitemundo.[ch]: new GimpUndo subclass which holds a
ref'ed GimpItem pointer so (1) this doesn't need to be done by all
undo steps related to an item and (2) the item the undo step is
for can be determined from outside the undo system.
* app/core/gimpimage-undo.[ch]: added gimp_image_undo_push_item()
which returns a new GimpItemUndo.
* app/core/gimpimage-undo-push.[ch]: use it for all item related
undo steps. Removed lots of GimpItem, GimpLayer, GimpDrawable
and GimpVectors pointers from the private undo structs. Added
undo push functions for the new undo types added above.
* app/core/gimpdrawable.[ch] (gimp_drawable_set_visible): added
"gboolean push_undo" parameter.
* app/core/gimplayer.[ch] (gimp_layer_set_opacity, _mode,
_preserve_trans, _linked): added "gboolean push_undo" parameters.
* app/core/gimpimage-mask.c
* app/core/gimpimage-merge.c
* app/core/gimplayer-floating-sel.c
* app/tools/gimpmovetool.c
* app/xcf/xcf-load.c
* app/widgets/gimpdrawablelistitem.c
* app/widgets/gimplayerlistitem.c
* app/widgets/gimplayerlistview.c: changed accordingly.
* tools/pdbgen/pdb/channel.pdb
* tools/pdbgen/pdb/layer.pdb: ditto. Added '$undo' paramaters to
the foo_accessors() functions. Removed $func from foo_accesors()
because we don't manipulate items without using getters/setters
any longer.
* app/pdb/channel_cmds.c
* app/pdb/layer_cmds.c: regenerated.
* app/widgets/gimpcellrenderertoggle.[ch]: added "clicked" signal
which carries an additional "GdkModifierType state" parameter as
in GimpCellRendererViewable .
* app/widgets/gimpcontainertreeview.c: emit "clicked" from
the toggle renderer, not "toggled" so the callbacks get the
modifier state.
* app/widgets/gimpdrawabletreeview.c: resurrected the "exclusive
visible by <shift>+click" feature as in 1.2.
* app/widgets/gimplayertreeview.c: compress layer opacity undos by
looking at the top of the undo stack and not pushing an undo if
there already is a GIMP_UNDO_DRAWABLE_OPACITY for the active
layer.
2003-03-18 02:02:41 +08:00
|
|
|
GIMP_UNDO_GROUP_MISC, /*< desc="Plug-In" >*/
|
2003-02-13 19:23:50 +08:00
|
|
|
|
|
|
|
GIMP_UNDO_GROUP_LAST = GIMP_UNDO_GROUP_MISC, /*< skip >*/
|
2003-02-13 01:11:34 +08:00
|
|
|
|
|
|
|
/* Undo types which actually do something */
|
|
|
|
|
2005-09-12 03:26:59 +08:00
|
|
|
GIMP_UNDO_IMAGE_TYPE, /*< desc="Image type" >*/
|
2012-04-25 22:46:58 +08:00
|
|
|
GIMP_UNDO_IMAGE_PRECISION, /*< desc="Image precision" >*/
|
2005-09-12 03:26:59 +08:00
|
|
|
GIMP_UNDO_IMAGE_SIZE, /*< desc="Image size" >*/
|
|
|
|
GIMP_UNDO_IMAGE_RESOLUTION, /*< desc="Image resolution change" >*/
|
|
|
|
GIMP_UNDO_IMAGE_GRID, /*< desc="Grid" >*/
|
2013-10-20 00:38:01 +08:00
|
|
|
GIMP_UNDO_IMAGE_METADATA, /*< desc="Change metadata" >*/
|
2005-09-12 03:26:59 +08:00
|
|
|
GIMP_UNDO_IMAGE_COLORMAP, /*< desc="Change indexed palette" >*/
|
2007-01-30 07:21:41 +08:00
|
|
|
GIMP_UNDO_GUIDE, /*< desc="Guide" >*/
|
|
|
|
GIMP_UNDO_SAMPLE_POINT, /*< desc="Sample Point" >*/
|
2005-09-12 03:26:59 +08:00
|
|
|
GIMP_UNDO_DRAWABLE, /*< desc="Layer/Channel" >*/
|
|
|
|
GIMP_UNDO_DRAWABLE_MOD, /*< desc="Layer/Channel modification" >*/
|
|
|
|
GIMP_UNDO_MASK, /*< desc="Selection mask" >*/
|
2010-02-06 23:41:54 +08:00
|
|
|
GIMP_UNDO_ITEM_REORDER, /*< desc="Reorder item" >*/
|
2005-09-12 03:26:59 +08:00
|
|
|
GIMP_UNDO_ITEM_RENAME, /*< desc="Rename item" >*/
|
|
|
|
GIMP_UNDO_ITEM_DISPLACE, /*< desc="Move item" >*/
|
|
|
|
GIMP_UNDO_ITEM_VISIBILITY, /*< desc="Item visibility" >*/
|
|
|
|
GIMP_UNDO_ITEM_LINKED, /*< desc="Link/Unlink item" >*/
|
2012-11-09 18:17:25 +08:00
|
|
|
GIMP_UNDO_ITEM_LOCK_CONTENT, /*< desc="Lock/Unlock content" >*/
|
|
|
|
GIMP_UNDO_ITEM_LOCK_POSITION, /*< desc="Lock/Unlock position" >*/
|
2005-09-12 03:26:59 +08:00
|
|
|
GIMP_UNDO_LAYER_ADD, /*< desc="New layer" >*/
|
|
|
|
GIMP_UNDO_LAYER_REMOVE, /*< desc="Delete layer" >*/
|
|
|
|
GIMP_UNDO_LAYER_MODE, /*< desc="Set layer mode" >*/
|
|
|
|
GIMP_UNDO_LAYER_OPACITY, /*< desc="Set layer opacity" >*/
|
|
|
|
GIMP_UNDO_LAYER_LOCK_ALPHA, /*< desc="Lock/Unlock alpha channel" >*/
|
2009-09-07 19:04:55 +08:00
|
|
|
GIMP_UNDO_GROUP_LAYER_SUSPEND, /*< desc="Suspend group layer resize" >*/
|
|
|
|
GIMP_UNDO_GROUP_LAYER_RESUME, /*< desc="Resume group layer resize" >*/
|
2009-09-14 01:24:19 +08:00
|
|
|
GIMP_UNDO_GROUP_LAYER_CONVERT, /*< desc="Convert group layer" >*/
|
2005-09-12 03:26:59 +08:00
|
|
|
GIMP_UNDO_TEXT_LAYER, /*< desc="Text layer" >*/
|
|
|
|
GIMP_UNDO_TEXT_LAYER_MODIFIED, /*< desc="Text layer modification" >*/
|
2012-11-11 01:56:44 +08:00
|
|
|
GIMP_UNDO_TEXT_LAYER_CONVERT, /*< desc="Convert text layer" >*/
|
2005-09-12 03:26:59 +08:00
|
|
|
GIMP_UNDO_LAYER_MASK_ADD, /*< desc="Add layer mask" >*/
|
|
|
|
GIMP_UNDO_LAYER_MASK_REMOVE, /*< desc="Delete layer mask" >*/
|
|
|
|
GIMP_UNDO_LAYER_MASK_APPLY, /*< desc="Apply layer mask" >*/
|
|
|
|
GIMP_UNDO_LAYER_MASK_SHOW, /*< desc="Show layer mask" >*/
|
|
|
|
GIMP_UNDO_CHANNEL_ADD, /*< desc="New channel" >*/
|
|
|
|
GIMP_UNDO_CHANNEL_REMOVE, /*< desc="Delete channel" >*/
|
|
|
|
GIMP_UNDO_CHANNEL_COLOR, /*< desc="Channel color" >*/
|
|
|
|
GIMP_UNDO_VECTORS_ADD, /*< desc="New path" >*/
|
|
|
|
GIMP_UNDO_VECTORS_REMOVE, /*< desc="Delete path" >*/
|
|
|
|
GIMP_UNDO_VECTORS_MOD, /*< desc="Path modification" >*/
|
|
|
|
GIMP_UNDO_FS_TO_LAYER, /*< desc="Floating selection to layer" >*/
|
|
|
|
GIMP_UNDO_TRANSFORM, /*< desc="Transform" >*/
|
|
|
|
GIMP_UNDO_PAINT, /*< desc="Paint" >*/
|
|
|
|
GIMP_UNDO_INK, /*< desc="Ink" >*/
|
|
|
|
GIMP_UNDO_FOREGROUND_SELECT, /*< desc="Select foreground" >*/
|
|
|
|
GIMP_UNDO_PARASITE_ATTACH, /*< desc="Attach parasite" >*/
|
|
|
|
GIMP_UNDO_PARASITE_REMOVE, /*< desc="Remove parasite" >*/
|
|
|
|
|
2008-04-09 22:42:32 +08:00
|
|
|
GIMP_UNDO_CANT /*< desc="Not undoable" >*/
|
2003-02-13 01:11:34 +08:00
|
|
|
} GimpUndoType;
|
|
|
|
|
|
|
|
|
2004-07-28 19:50:20 +08:00
|
|
|
#define GIMP_TYPE_DIRTY_MASK (gimp_dirty_mask_get_type ())
|
|
|
|
|
|
|
|
GType gimp_dirty_mask_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum /*< pdb-skip >*/
|
|
|
|
{
|
|
|
|
GIMP_DIRTY_NONE = 0,
|
|
|
|
|
|
|
|
GIMP_DIRTY_IMAGE = 1 << 0,
|
2004-07-29 22:16:21 +08:00
|
|
|
GIMP_DIRTY_IMAGE_SIZE = 1 << 1,
|
|
|
|
GIMP_DIRTY_IMAGE_META = 1 << 2,
|
|
|
|
GIMP_DIRTY_IMAGE_STRUCTURE = 1 << 3,
|
|
|
|
GIMP_DIRTY_ITEM = 1 << 4,
|
|
|
|
GIMP_DIRTY_ITEM_META = 1 << 5,
|
|
|
|
GIMP_DIRTY_DRAWABLE = 1 << 6,
|
|
|
|
GIMP_DIRTY_VECTORS = 1 << 7,
|
|
|
|
GIMP_DIRTY_SELECTION = 1 << 8,
|
2012-09-07 05:55:35 +08:00
|
|
|
GIMP_DIRTY_ACTIVE_DRAWABLE = 1 << 9,
|
2004-07-29 22:16:21 +08:00
|
|
|
|
|
|
|
GIMP_DIRTY_ALL = 0xffff
|
2004-07-28 19:50:20 +08:00
|
|
|
} GimpDirtyMask;
|
|
|
|
|
|
|
|
|
2006-08-30 05:44:51 +08:00
|
|
|
#define GIMP_TYPE_GRADIENT_COLOR (gimp_gradient_color_get_type ())
|
|
|
|
|
|
|
|
GType gimp_gradient_color_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum /*< pdb-skip >*/
|
|
|
|
{
|
|
|
|
GIMP_GRADIENT_COLOR_FIXED,
|
|
|
|
GIMP_GRADIENT_COLOR_FOREGROUND,
|
|
|
|
GIMP_GRADIENT_COLOR_FOREGROUND_TRANSPARENT,
|
|
|
|
GIMP_GRADIENT_COLOR_BACKGROUND,
|
|
|
|
GIMP_GRADIENT_COLOR_BACKGROUND_TRANSPARENT
|
|
|
|
} GimpGradientColor;
|
|
|
|
|
|
|
|
|
2006-10-09 16:17:22 +08:00
|
|
|
#define GIMP_TYPE_MESSAGE_SEVERITY (gimp_message_severity_get_type ())
|
|
|
|
|
|
|
|
GType gimp_message_severity_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum /*< pdb-skip >*/
|
|
|
|
{
|
|
|
|
GIMP_MESSAGE_INFO, /*< desc="Message" >*/
|
|
|
|
GIMP_MESSAGE_WARNING, /*< desc="Warning" >*/
|
|
|
|
GIMP_MESSAGE_ERROR /*< desc="Error" >*/
|
|
|
|
} GimpMessageSeverity;
|
|
|
|
|
|
|
|
|
2006-10-27 21:52:40 +08:00
|
|
|
#define GIMP_TYPE_COLOR_PROFILE_POLICY (gimp_color_profile_policy_get_type ())
|
|
|
|
|
|
|
|
GType gimp_color_profile_policy_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum /*< pdb-skip >*/
|
|
|
|
{
|
2006-11-01 08:54:20 +08:00
|
|
|
GIMP_COLOR_PROFILE_POLICY_ASK, /*< desc="Ask what to do" >*/
|
2006-10-27 21:52:40 +08:00
|
|
|
GIMP_COLOR_PROFILE_POLICY_KEEP, /*< desc="Keep embedded profile" >*/
|
|
|
|
GIMP_COLOR_PROFILE_POLICY_CONVERT /*< desc="Convert to RGB workspace" >*/
|
|
|
|
} GimpColorProfilePolicy;
|
|
|
|
|
2010-02-22 15:52:32 +08:00
|
|
|
|
2010-02-22 06:41:55 +08:00
|
|
|
#define GIMP_TYPE_DYNAMICS_OUTPUT_TYPE (gimp_dynamics_output_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_dynamics_output_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum /*< pdb-skip >*/
|
|
|
|
{
|
|
|
|
GIMP_DYNAMICS_OUTPUT_OPACITY, /*< desc="Opacity" >*/
|
|
|
|
GIMP_DYNAMICS_OUTPUT_SIZE, /*< desc="Size" >*/
|
|
|
|
GIMP_DYNAMICS_OUTPUT_ANGLE, /*< desc="Angle" >*/
|
2010-03-15 00:12:24 +08:00
|
|
|
GIMP_DYNAMICS_OUTPUT_COLOR, /*< desc="Color" >*/
|
|
|
|
GIMP_DYNAMICS_OUTPUT_HARDNESS, /*< desc="Hardness" >*/
|
2010-04-09 05:44:52 +08:00
|
|
|
GIMP_DYNAMICS_OUTPUT_FORCE, /*< desc="Force" >*/
|
2010-03-15 00:12:24 +08:00
|
|
|
GIMP_DYNAMICS_OUTPUT_ASPECT_RATIO, /*< desc="Aspect ratio" >*/
|
2010-02-22 06:41:55 +08:00
|
|
|
GIMP_DYNAMICS_OUTPUT_SPACING, /*< desc="Spacing" >*/
|
2010-03-15 00:12:24 +08:00
|
|
|
GIMP_DYNAMICS_OUTPUT_RATE, /*< desc="Rate" >*/
|
2010-03-15 01:09:55 +08:00
|
|
|
GIMP_DYNAMICS_OUTPUT_FLOW, /*< desc="Flow" >*/
|
2010-03-15 00:12:24 +08:00
|
|
|
GIMP_DYNAMICS_OUTPUT_JITTER, /*< desc="Jitter" >*/
|
2010-02-22 06:41:55 +08:00
|
|
|
} GimpDynamicsOutputType;
|
|
|
|
|
2006-10-27 21:52:40 +08:00
|
|
|
|
2014-05-24 07:07:28 +08:00
|
|
|
#define GIMP_TYPE_IMAGE_MAP_REGION (gimp_image_map_region_get_type ())
|
|
|
|
|
|
|
|
GType gimp_image_map_region_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum /*< pdb-skip >*/
|
|
|
|
{
|
|
|
|
GIMP_IMAGE_MAP_REGION_SELECTION, /*< desc="Use the selection as input" >*/
|
|
|
|
GIMP_IMAGE_MAP_REGION_DRAWABLE /*< desc="Use the entire layer as input" >*/
|
|
|
|
} GimpImageMapRegion;
|
|
|
|
|
|
|
|
|
2003-02-08 01:12:21 +08:00
|
|
|
/*
|
|
|
|
* non-registered enums; register them if needed
|
|
|
|
*/
|
|
|
|
|
2006-05-19 22:50:46 +08:00
|
|
|
|
2003-06-30 05:54:09 +08:00
|
|
|
typedef enum /*< pdb-skip, skip >*/
|
2003-06-28 19:20:37 +08:00
|
|
|
{
|
2015-09-09 03:18:49 +08:00
|
|
|
GIMP_CONTEXT_PROP_FIRST = 2,
|
2010-04-04 19:58:55 +08:00
|
|
|
|
2015-09-09 03:18:49 +08:00
|
|
|
GIMP_CONTEXT_PROP_IMAGE = GIMP_CONTEXT_PROP_FIRST,
|
2010-04-04 19:58:55 +08:00
|
|
|
GIMP_CONTEXT_PROP_DISPLAY = 3,
|
|
|
|
GIMP_CONTEXT_PROP_TOOL = 4,
|
|
|
|
GIMP_CONTEXT_PROP_PAINT_INFO = 5,
|
|
|
|
GIMP_CONTEXT_PROP_FOREGROUND = 6,
|
|
|
|
GIMP_CONTEXT_PROP_BACKGROUND = 7,
|
|
|
|
GIMP_CONTEXT_PROP_OPACITY = 8,
|
|
|
|
GIMP_CONTEXT_PROP_PAINT_MODE = 9,
|
|
|
|
GIMP_CONTEXT_PROP_BRUSH = 10,
|
|
|
|
GIMP_CONTEXT_PROP_DYNAMICS = 11,
|
2015-12-21 06:48:40 +08:00
|
|
|
GIMP_CONTEXT_PROP_MYBRUSH = 12,
|
|
|
|
GIMP_CONTEXT_PROP_PATTERN = 13,
|
|
|
|
GIMP_CONTEXT_PROP_GRADIENT = 14,
|
|
|
|
GIMP_CONTEXT_PROP_PALETTE = 15,
|
|
|
|
GIMP_CONTEXT_PROP_TOOL_PRESET = 16,
|
|
|
|
GIMP_CONTEXT_PROP_FONT = 17,
|
|
|
|
GIMP_CONTEXT_PROP_BUFFER = 18,
|
|
|
|
GIMP_CONTEXT_PROP_IMAGEFILE = 19,
|
|
|
|
GIMP_CONTEXT_PROP_TEMPLATE = 20,
|
2010-04-04 19:58:55 +08:00
|
|
|
|
2015-09-09 03:18:49 +08:00
|
|
|
GIMP_CONTEXT_PROP_LAST = GIMP_CONTEXT_PROP_TEMPLATE
|
2003-06-28 19:20:37 +08:00
|
|
|
} GimpContextPropType;
|
|
|
|
|
2006-05-19 22:50:46 +08:00
|
|
|
|
2003-06-30 05:54:09 +08:00
|
|
|
typedef enum /*< pdb-skip, skip >*/
|
2003-06-28 19:20:37 +08:00
|
|
|
{
|
2015-09-09 03:18:49 +08:00
|
|
|
GIMP_CONTEXT_PROP_MASK_IMAGE = 1 << 2,
|
|
|
|
GIMP_CONTEXT_PROP_MASK_DISPLAY = 1 << 3,
|
|
|
|
GIMP_CONTEXT_PROP_MASK_TOOL = 1 << 4,
|
|
|
|
GIMP_CONTEXT_PROP_MASK_PAINT_INFO = 1 << 5,
|
|
|
|
GIMP_CONTEXT_PROP_MASK_FOREGROUND = 1 << 6,
|
|
|
|
GIMP_CONTEXT_PROP_MASK_BACKGROUND = 1 << 7,
|
|
|
|
GIMP_CONTEXT_PROP_MASK_OPACITY = 1 << 8,
|
|
|
|
GIMP_CONTEXT_PROP_MASK_PAINT_MODE = 1 << 9,
|
|
|
|
GIMP_CONTEXT_PROP_MASK_BRUSH = 1 << 10,
|
|
|
|
GIMP_CONTEXT_PROP_MASK_DYNAMICS = 1 << 11,
|
2015-12-21 06:48:40 +08:00
|
|
|
GIMP_CONTEXT_PROP_MASK_MYBRUSH = 1 << 12,
|
|
|
|
GIMP_CONTEXT_PROP_MASK_PATTERN = 1 << 13,
|
|
|
|
GIMP_CONTEXT_PROP_MASK_GRADIENT = 1 << 14,
|
|
|
|
GIMP_CONTEXT_PROP_MASK_PALETTE = 1 << 15,
|
|
|
|
GIMP_CONTEXT_PROP_MASK_TOOL_PRESET = 1 << 16,
|
|
|
|
GIMP_CONTEXT_PROP_MASK_FONT = 1 << 17,
|
|
|
|
GIMP_CONTEXT_PROP_MASK_BUFFER = 1 << 18,
|
|
|
|
GIMP_CONTEXT_PROP_MASK_IMAGEFILE = 1 << 19,
|
|
|
|
GIMP_CONTEXT_PROP_MASK_TEMPLATE = 1 << 20,
|
2003-06-28 19:20:37 +08:00
|
|
|
|
|
|
|
/* aliases */
|
2015-09-09 03:18:49 +08:00
|
|
|
GIMP_CONTEXT_PROP_MASK_PAINT = (GIMP_CONTEXT_PROP_MASK_FOREGROUND |
|
|
|
|
GIMP_CONTEXT_PROP_MASK_BACKGROUND |
|
|
|
|
GIMP_CONTEXT_PROP_MASK_OPACITY |
|
|
|
|
GIMP_CONTEXT_PROP_MASK_PAINT_MODE |
|
|
|
|
GIMP_CONTEXT_PROP_MASK_BRUSH |
|
|
|
|
GIMP_CONTEXT_PROP_MASK_DYNAMICS |
|
|
|
|
GIMP_CONTEXT_PROP_MASK_PATTERN |
|
|
|
|
GIMP_CONTEXT_PROP_MASK_GRADIENT),
|
|
|
|
|
|
|
|
GIMP_CONTEXT_PROP_MASK_ALL = (GIMP_CONTEXT_PROP_MASK_IMAGE |
|
|
|
|
GIMP_CONTEXT_PROP_MASK_DISPLAY |
|
|
|
|
GIMP_CONTEXT_PROP_MASK_TOOL |
|
|
|
|
GIMP_CONTEXT_PROP_MASK_PAINT_INFO |
|
2015-12-21 06:48:40 +08:00
|
|
|
GIMP_CONTEXT_PROP_MASK_MYBRUSH |
|
2015-09-09 03:18:49 +08:00
|
|
|
GIMP_CONTEXT_PROP_MASK_PALETTE |
|
|
|
|
GIMP_CONTEXT_PROP_MASK_FONT |
|
|
|
|
GIMP_CONTEXT_PROP_MASK_BUFFER |
|
|
|
|
GIMP_CONTEXT_PROP_MASK_IMAGEFILE |
|
|
|
|
GIMP_CONTEXT_PROP_MASK_TEMPLATE |
|
|
|
|
GIMP_CONTEXT_PROP_MASK_PAINT)
|
2003-06-28 19:20:37 +08:00
|
|
|
} GimpContextPropMask;
|
|
|
|
|
2006-05-19 22:50:46 +08:00
|
|
|
|
2003-12-09 05:56:22 +08:00
|
|
|
typedef enum /*< pdb-skip, skip >*/
|
|
|
|
{
|
2003-12-09 19:49:47 +08:00
|
|
|
GIMP_IMAGE_SCALE_OK,
|
|
|
|
GIMP_IMAGE_SCALE_TOO_SMALL,
|
|
|
|
GIMP_IMAGE_SCALE_TOO_BIG
|
2003-12-09 05:56:22 +08:00
|
|
|
} GimpImageScaleCheckType;
|
2001-12-12 02:11:56 +08:00
|
|
|
|
2004-07-28 19:50:20 +08:00
|
|
|
|
2006-05-19 22:50:46 +08:00
|
|
|
typedef enum /*< pdb-skip, skip >*/
|
|
|
|
{
|
|
|
|
GIMP_ITEM_TYPE_LAYERS = 1 << 0,
|
|
|
|
GIMP_ITEM_TYPE_CHANNELS = 1 << 1,
|
|
|
|
GIMP_ITEM_TYPE_VECTORS = 1 << 2,
|
|
|
|
|
|
|
|
GIMP_ITEM_TYPE_ALL = (GIMP_ITEM_TYPE_LAYERS |
|
|
|
|
GIMP_ITEM_TYPE_CHANNELS |
|
|
|
|
GIMP_ITEM_TYPE_VECTORS)
|
|
|
|
} GimpItemTypeMask;
|
|
|
|
|
|
|
|
|
2002-03-29 11:50:29 +08:00
|
|
|
#endif /* __CORE_ENUMS_H__ */
|