2006-12-09 13:33:38 -08:00
|
|
|
/* GIMP - The GNU Image Manipulation Program
|
2002-03-19 07:05:38 -08:00
|
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
|
|
|
*
|
2009-01-17 14:28:01 -08:00
|
|
|
* This program is free software: you can redistribute it and/or modify
|
2002-03-19 07:05:38 -08:00
|
|
|
* it under the terms of the GNU General Public License as published by
|
2009-01-17 14:28:01 -08:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
2002-03-19 07:05:38 -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
|
2018-07-11 14:47:19 -07:00
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2002-03-19 07:05:38 -08:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef __TOOLS_ENUMS_H__
|
|
|
|
|
#define __TOOLS_ENUMS_H__
|
|
|
|
|
|
2017-06-10 03:25:16 -07:00
|
|
|
|
2003-09-26 06:33:54 -07:00
|
|
|
/*
|
2003-10-25 12:00:49 -07:00
|
|
|
* these enums are registered with the type system
|
2002-03-19 11:17:31 -08:00
|
|
|
*/
|
|
|
|
|
|
2019-01-02 06:47:31 -08:00
|
|
|
/**
|
|
|
|
|
* GimpBucketFillArea:
|
|
|
|
|
* @GIMP_BUCKET_FILL_SELECTION: Fill whole selection
|
|
|
|
|
* @GIMP_BUCKET_FILL_SIMILAR_COLORS: Fill similar colors
|
|
|
|
|
* @GIMP_BUCKET_FILL_LINE_ART: Fill by line art detection
|
|
|
|
|
*
|
|
|
|
|
* Bucket fill area.
|
|
|
|
|
*/
|
|
|
|
|
#define GIMP_TYPE_BUCKET_FILL_AREA (gimp_bucket_fill_area_get_type ())
|
|
|
|
|
|
|
|
|
|
GType gimp_bucket_fill_area_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
|
{
|
|
|
|
|
GIMP_BUCKET_FILL_SELECTION, /*< desc="Fill whole selection" >*/
|
|
|
|
|
GIMP_BUCKET_FILL_SIMILAR_COLORS, /*< desc="Fill similar colors" >*/
|
|
|
|
|
GIMP_BUCKET_FILL_LINE_ART /*< desc="Fill by line art detection" >*/
|
|
|
|
|
} GimpBucketFillArea;
|
|
|
|
|
|
|
|
|
|
|
2019-01-15 07:06:50 -08:00
|
|
|
/**
|
|
|
|
|
* GimpLineArtSource:
|
|
|
|
|
* @GIMP_LINE_ART_SOURCE_SAMPLE_MERGED: All visible layers
|
|
|
|
|
* @GIMP_LINE_ART_SOURCE_ACTIVE_LAYER: Active layer
|
|
|
|
|
* @GIMP_LINE_ART_SOURCE_LOWER_LAYER: Layer below the active one
|
|
|
|
|
* @GIMP_LINE_ART_SOURCE_UPPER_LAYER: Layer above the active one
|
|
|
|
|
*
|
|
|
|
|
* Bucket fill area.
|
|
|
|
|
*/
|
|
|
|
|
#define GIMP_TYPE_LINE_ART_SOURCE (gimp_line_art_source_get_type ())
|
|
|
|
|
|
|
|
|
|
GType gimp_line_art_source_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
|
{
|
|
|
|
|
GIMP_LINE_ART_SOURCE_SAMPLE_MERGED, /*< desc="All visible layers" >*/
|
|
|
|
|
GIMP_LINE_ART_SOURCE_ACTIVE_LAYER, /*< desc="Active layer" >*/
|
|
|
|
|
GIMP_LINE_ART_SOURCE_LOWER_LAYER, /*< desc="Layer below the active one" >*/
|
|
|
|
|
GIMP_LINE_ART_SOURCE_UPPER_LAYER /*< desc="Layer above the active one" >*/
|
|
|
|
|
} GimpLineArtSource;
|
|
|
|
|
|
|
|
|
|
|
2003-01-06 08:25:04 -08:00
|
|
|
#define GIMP_TYPE_RECT_SELECT_MODE (gimp_rect_select_mode_get_type ())
|
|
|
|
|
|
|
|
|
|
GType gimp_rect_select_mode_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
2003-09-26 09:20:05 -07:00
|
|
|
typedef enum
|
2003-01-06 08:25:04 -08:00
|
|
|
{
|
2004-06-30 08:47:32 -07:00
|
|
|
GIMP_RECT_SELECT_MODE_FREE, /*< desc="Free select" >*/
|
|
|
|
|
GIMP_RECT_SELECT_MODE_FIXED_SIZE, /*< desc="Fixed size" >*/
|
|
|
|
|
GIMP_RECT_SELECT_MODE_FIXED_RATIO /*< desc="Fixed aspect ratio" >*/
|
2003-01-06 08:25:04 -08:00
|
|
|
} GimpRectSelectMode;
|
|
|
|
|
|
|
|
|
|
|
2003-05-30 16:52:24 -07:00
|
|
|
#define GIMP_TYPE_TRANSFORM_TYPE (gimp_transform_type_get_type ())
|
|
|
|
|
|
|
|
|
|
GType gimp_transform_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
2003-09-26 09:20:05 -07:00
|
|
|
typedef enum
|
2003-05-30 16:52:24 -07:00
|
|
|
{
|
2006-10-03 12:32:41 -07:00
|
|
|
GIMP_TRANSFORM_TYPE_LAYER, /*< desc="Layer" >*/
|
|
|
|
|
GIMP_TRANSFORM_TYPE_SELECTION, /*< desc="Selection" >*/
|
|
|
|
|
GIMP_TRANSFORM_TYPE_PATH /*< desc="Path" >*/
|
2003-05-30 16:52:24 -07:00
|
|
|
} GimpTransformType;
|
|
|
|
|
|
|
|
|
|
|
2010-10-26 04:47:18 -07:00
|
|
|
#define GIMP_TYPE_TOOL_ACTION (gimp_tool_action_get_type ())
|
|
|
|
|
|
|
|
|
|
GType gimp_tool_action_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
|
{
|
|
|
|
|
GIMP_TOOL_ACTION_PAUSE,
|
|
|
|
|
GIMP_TOOL_ACTION_RESUME,
|
2014-04-04 13:34:26 -07:00
|
|
|
GIMP_TOOL_ACTION_HALT,
|
|
|
|
|
GIMP_TOOL_ACTION_COMMIT
|
2010-10-26 04:47:18 -07:00
|
|
|
} GimpToolAction;
|
|
|
|
|
|
|
|
|
|
|
2017-10-29 08:28:46 -07:00
|
|
|
#define GIMP_TYPE_TOOL_ACTIVE_MODIFIERS (gimp_tool_active_modifiers_get_type ())
|
|
|
|
|
|
|
|
|
|
GType gimp_tool_active_modifiers_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
|
{
|
|
|
|
|
GIMP_TOOL_ACTIVE_MODIFIERS_OFF,
|
|
|
|
|
GIMP_TOOL_ACTIVE_MODIFIERS_SAME,
|
|
|
|
|
GIMP_TOOL_ACTIVE_MODIFIERS_SEPARATE,
|
|
|
|
|
} GimpToolActiveModifiers;
|
|
|
|
|
|
|
|
|
|
|
2013-05-07 14:09:55 -07:00
|
|
|
#define GIMP_TYPE_MATTING_DRAW_MODE (gimp_matting_draw_mode_get_type ())
|
|
|
|
|
|
|
|
|
|
GType gimp_matting_draw_mode_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
|
{
|
|
|
|
|
GIMP_MATTING_DRAW_MODE_FOREGROUND, /*< desc="Draw foreground" >*/
|
|
|
|
|
GIMP_MATTING_DRAW_MODE_BACKGROUND, /*< desc="Draw background" >*/
|
|
|
|
|
GIMP_MATTING_DRAW_MODE_UNKNOWN, /*< desc="Draw unknown" >*/
|
|
|
|
|
} GimpMattingDrawMode;
|
|
|
|
|
|
|
|
|
|
|
2011-05-23 12:11:08 -07:00
|
|
|
#define GIMP_TYPE_WARP_BEHAVIOR (gimp_warp_behavior_get_type ())
|
|
|
|
|
|
|
|
|
|
GType gimp_warp_behavior_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
|
{
|
|
|
|
|
GIMP_WARP_BEHAVIOR_MOVE, /*< desc="Move pixels" >*/
|
2018-12-12 08:13:48 -08:00
|
|
|
GIMP_WARP_BEHAVIOR_GROW, /*< desc="Grow area" >*/
|
|
|
|
|
GIMP_WARP_BEHAVIOR_SHRINK, /*< desc="Shrink area" >*/
|
|
|
|
|
GIMP_WARP_BEHAVIOR_SWIRL_CW, /*< desc="Swirl clockwise" >*/
|
|
|
|
|
GIMP_WARP_BEHAVIOR_SWIRL_CCW, /*< desc="Swirl counter-clockwise" >*/
|
|
|
|
|
GIMP_WARP_BEHAVIOR_ERASE, /*< desc="Erase warping" >*/
|
|
|
|
|
GIMP_WARP_BEHAVIOR_SMOOTH /*< desc="Smooth warping" >*/
|
2011-05-23 12:11:08 -07:00
|
|
|
} GimpWarpBehavior;
|
|
|
|
|
|
|
|
|
|
|
2003-09-26 06:33:54 -07:00
|
|
|
/*
|
|
|
|
|
* non-registered enums; register them if needed
|
|
|
|
|
*/
|
|
|
|
|
|
2003-09-26 09:20:05 -07:00
|
|
|
typedef enum /*< skip >*/
|
2003-09-26 06:33:54 -07:00
|
|
|
{
|
Separate selection tool function (select, move, cut, ...) from selection
2006-10-18 Michael Natterer <mitch@gimp.org>
Separate selection tool function (select, move, cut, ...) from
selection mode (replace, add, ...). Fixes bug #313634 (that bug
wasn't triggered any more in HEAD, but was still there).
* app/tools/tools-enums.h: renamed enum SelectOp to SelectFunction
and replaced the values REPLACE, ADD, SUBTRACT and INTERSECT by a
single value SELECT.
* app/tools/gimpselectiontool.h (struct GimpSelectionTool):
renamed member "op" to "function". Changed "SelectOps saved_op" to
"GimpChannelOps saved_operation".
* app/tools/gimpselectiontool.c: we always have the right
GimpChannelOps in the tool options, so simply use it instead of
mixing up unrelated stuff in one enum. Results is some medium-ugly
nested switches, but is generally much cleaner than before.
* app/tools/gimpforegroundselecttool.c
* app/tools/gimpfreeselecttool.c
* app/tools/gimpiscissorstool.c
* app/tools/gimpregionselecttool.c: changed accordingly. Use the
operation from the tool options instead of selection_tool->op when
making the actual selection.
2006-10-18 01:04:55 -07:00
|
|
|
SELECTION_SELECT,
|
2003-09-26 06:33:54 -07:00
|
|
|
SELECTION_MOVE_MASK,
|
|
|
|
|
SELECTION_MOVE,
|
|
|
|
|
SELECTION_MOVE_COPY,
|
|
|
|
|
SELECTION_ANCHOR
|
Separate selection tool function (select, move, cut, ...) from selection
2006-10-18 Michael Natterer <mitch@gimp.org>
Separate selection tool function (select, move, cut, ...) from
selection mode (replace, add, ...). Fixes bug #313634 (that bug
wasn't triggered any more in HEAD, but was still there).
* app/tools/tools-enums.h: renamed enum SelectOp to SelectFunction
and replaced the values REPLACE, ADD, SUBTRACT and INTERSECT by a
single value SELECT.
* app/tools/gimpselectiontool.h (struct GimpSelectionTool):
renamed member "op" to "function". Changed "SelectOps saved_op" to
"GimpChannelOps saved_operation".
* app/tools/gimpselectiontool.c: we always have the right
GimpChannelOps in the tool options, so simply use it instead of
mixing up unrelated stuff in one enum. Results is some medium-ugly
nested switches, but is generally much cleaner than before.
* app/tools/gimpforegroundselecttool.c
* app/tools/gimpfreeselecttool.c
* app/tools/gimpiscissorstool.c
* app/tools/gimpregionselecttool.c: changed accordingly. Use the
operation from the tool options instead of selection_tool->op when
making the actual selection.
2006-10-18 01:04:55 -07:00
|
|
|
} SelectFunction;
|
2003-09-26 06:33:54 -07:00
|
|
|
|
2004-07-26 07:50:51 -07:00
|
|
|
/* Modes of GimpEditSelectionTool */
|
|
|
|
|
typedef enum /*< skip >*/
|
|
|
|
|
{
|
|
|
|
|
GIMP_TRANSLATE_MODE_VECTORS,
|
|
|
|
|
GIMP_TRANSLATE_MODE_CHANNEL,
|
|
|
|
|
GIMP_TRANSLATE_MODE_LAYER_MASK,
|
|
|
|
|
GIMP_TRANSLATE_MODE_MASK,
|
|
|
|
|
GIMP_TRANSLATE_MODE_MASK_TO_LAYER,
|
|
|
|
|
GIMP_TRANSLATE_MODE_MASK_COPY_TO_LAYER,
|
|
|
|
|
GIMP_TRANSLATE_MODE_LAYER,
|
|
|
|
|
GIMP_TRANSLATE_MODE_FLOATING_SEL
|
|
|
|
|
} GimpTranslateMode;
|
|
|
|
|
|
2003-09-26 06:33:54 -07:00
|
|
|
/* Motion event report modes */
|
2003-09-26 09:20:05 -07:00
|
|
|
typedef enum /*< skip >*/
|
2003-09-26 06:33:54 -07:00
|
|
|
{
|
|
|
|
|
GIMP_MOTION_MODE_EXACT,
|
|
|
|
|
GIMP_MOTION_MODE_COMPRESS
|
|
|
|
|
} GimpMotionMode;
|
|
|
|
|
|
2002-03-19 07:05:38 -08:00
|
|
|
|
|
|
|
|
#endif /* __TOOLS_ENUMS_H__ */
|