1 /* LIBGIMP - The GIMP Library
2  * Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
3  *
4  * gimptypes.h
5  *
6  * This library is free software: you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 3 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library.  If not, see
18  * <https://www.gnu.org/licenses/>.
19  */
20 
21 #ifndef __GIMP_TYPES_H__
22 #define __GIMP_TYPES_H__
23 
24 #include <libgimpbase/gimpbasetypes.h>
25 
26 G_BEGIN_DECLS
27 
28 /* For information look into the html documentation */
29 
30 
31 typedef struct _GimpPlugInInfo  GimpPlugInInfo;
32 typedef struct _GimpTile        GimpTile;
33 typedef struct _GimpDrawable    GimpDrawable;
34 typedef struct _GimpPixelRgn    GimpPixelRgn;
35 typedef struct _GimpParamDef    GimpParamDef;
36 typedef struct _GimpParamRegion GimpParamRegion;
37 typedef union  _GimpParamData   GimpParamData;
38 typedef struct _GimpParam       GimpParam;
39 
40 
41 #ifndef GIMP_DISABLE_DEPRECATED
42 
43 /*  This is so ugly it hurts. C++ won't let us have enum GimpLayerMode
44  *  in the API where we used to have enum GimpLayerModeEffects, so
45  *  typedef and define around to make it happy:
46  */
47 typedef GimpLayerMode GimpLayerModeEffects;
48 
49 #define GIMP_NORMAL_MODE        GIMP_LAYER_MODE_NORMAL_LEGACY
50 #define GIMP_DISSOLVE_MODE      GIMP_LAYER_MODE_DISSOLVE
51 #define GIMP_BEHIND_MODE        GIMP_LAYER_MODE_BEHIND_LEGACY
52 #define GIMP_MULTIPLY_MODE      GIMP_LAYER_MODE_MULTIPLY_LEGACY
53 #define GIMP_SCREEN_MODE        GIMP_LAYER_MODE_SCREEN_LEGACY
54 #define GIMP_OVERLAY_MODE       GIMP_LAYER_MODE_OVERLAY_LEGACY
55 #define GIMP_DIFFERENCE_MODE    GIMP_LAYER_MODE_DIFFERENCE_LEGACY
56 #define GIMP_ADDITION_MODE      GIMP_LAYER_MODE_ADDITION_LEGACY
57 #define GIMP_SUBTRACT_MODE      GIMP_LAYER_MODE_SUBTRACT_LEGACY
58 #define GIMP_DARKEN_ONLY_MODE   GIMP_LAYER_MODE_DARKEN_ONLY_LEGACY
59 #define GIMP_LIGHTEN_ONLY_MODE  GIMP_LAYER_MODE_LIGHTEN_ONLY_LEGACY
60 #define GIMP_HUE_MODE           GIMP_LAYER_MODE_HSV_HUE_LEGACY
61 #define GIMP_SATURATION_MODE    GIMP_LAYER_MODE_HSV_SATURATION_LEGACY
62 #define GIMP_COLOR_MODE         GIMP_LAYER_MODE_HSL_COLOR_LEGACY
63 #define GIMP_VALUE_MODE         GIMP_LAYER_MODE_HSV_VALUE_LEGACY
64 #define GIMP_DIVIDE_MODE        GIMP_LAYER_MODE_DIVIDE_LEGACY
65 #define GIMP_DODGE_MODE         GIMP_LAYER_MODE_DODGE_LEGACY
66 #define GIMP_BURN_MODE          GIMP_LAYER_MODE_BURN_LEGACY
67 #define GIMP_HARDLIGHT_MODE     GIMP_LAYER_MODE_HARDLIGHT_LEGACY
68 #define GIMP_SOFTLIGHT_MODE     GIMP_LAYER_MODE_SOFTLIGHT_LEGACY
69 #define GIMP_GRAIN_EXTRACT_MODE GIMP_LAYER_MODE_GRAIN_EXTRACT_LEGACY
70 #define GIMP_GRAIN_MERGE_MODE   GIMP_LAYER_MODE_GRAIN_MERGE_LEGACY
71 #define GIMP_COLOR_ERASE_MODE   GIMP_LAYER_MODE_COLOR_ERASE_LEGACY
72 
73 #define GIMP_NO_DITHER         GIMP_CONVERT_DITHER_NONE
74 #define GIMP_FS_DITHER         GIMP_CONVERT_DITHER_FS
75 #define GIMP_FSLOWBLEED_DITHER GIMP_CONVERT_DITHER_FS_LOWBLEED
76 #define GIMP_FIXED_DITHER      GIMP_CONVERT_DITHER_FIXED
77 
78 #endif /* ! GIMP_DISABLE_DEPRECATED */
79 
80 G_END_DECLS
81 
82 #endif /* __GIMP_TYPES_H__ */
83