gimptypes.h 3.3 KB
Newer Older
1 2 3 4 5
/* LIBGIMP - The GIMP Library
 * Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
 *
 * gimptypes.h
 *
6
 * This library is free software: you can redistribute it and/or
7 8
 * modify it under the terms of the GNU Lesser General Public
 * 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 13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 15 16
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
17 18
 * License along with this library.  If not, see
 * <http://www.gnu.org/licenses/>.
19 20 21 22 23
 */

#ifndef __GIMP_TYPES_H__
#define __GIMP_TYPES_H__

24
#include <libgimpbase/gimpbasetypes.h>
25

26
G_BEGIN_DECLS
27 28 29 30

/* For information look into the html documentation */


31 32 33 34 35 36 37 38
typedef struct _GimpPlugInInfo  GimpPlugInInfo;
typedef struct _GimpTile        GimpTile;
typedef struct _GimpDrawable    GimpDrawable;
typedef struct _GimpPixelRgn    GimpPixelRgn;
typedef struct _GimpParamDef    GimpParamDef;
typedef struct _GimpParamRegion GimpParamRegion;
typedef union  _GimpParamData   GimpParamData;
typedef struct _GimpParam       GimpParam;
39

40 41 42 43 44 45 46 47 48

#ifndef GIMP_DISABLE_DEPRECATED

/*  This is so ugly it hurts. C++ won't let us have enum GimpLayerMode
 *  in the API where we used to have enum GimpLayerModeEffects, so
 *  typedef and define around to make it happy:
 */
typedef GimpLayerMode GimpLayerModeEffects;

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 53 54 55 56 57 58 59 60 61
#define GIMP_MULTIPLY_MODE      GIMP_LAYER_MODE_MULTIPLY_LEGACY
#define GIMP_SCREEN_MODE        GIMP_LAYER_MODE_SCREEN_LEGACY
#define GIMP_OVERLAY_MODE       GIMP_LAYER_MODE_OVERLAY_LEGACY
#define GIMP_DIFFERENCE_MODE    GIMP_LAYER_MODE_DIFFERENCE_LEGACY
#define GIMP_ADDITION_MODE      GIMP_LAYER_MODE_ADDITION_LEGACY
#define GIMP_SUBTRACT_MODE      GIMP_LAYER_MODE_SUBTRACT_LEGACY
#define GIMP_DARKEN_ONLY_MODE   GIMP_LAYER_MODE_DARKEN_ONLY_LEGACY
#define GIMP_LIGHTEN_ONLY_MODE  GIMP_LAYER_MODE_LIGHTEN_ONLY_LEGACY
#define GIMP_HUE_MODE           GIMP_LAYER_MODE_HSV_HUE_LEGACY
#define GIMP_SATURATION_MODE    GIMP_LAYER_MODE_HSV_SATURATION_LEGACY
62
#define GIMP_COLOR_MODE         GIMP_LAYER_MODE_HSL_COLOR_LEGACY
63 64 65 66 67 68 69 70
#define GIMP_VALUE_MODE         GIMP_LAYER_MODE_HSV_VALUE_LEGACY
#define GIMP_DIVIDE_MODE        GIMP_LAYER_MODE_DIVIDE_LEGACY
#define GIMP_DODGE_MODE         GIMP_LAYER_MODE_DODGE_LEGACY
#define GIMP_BURN_MODE          GIMP_LAYER_MODE_BURN_LEGACY
#define GIMP_HARDLIGHT_MODE     GIMP_LAYER_MODE_HARDLIGHT_LEGACY
#define GIMP_SOFTLIGHT_MODE     GIMP_LAYER_MODE_SOFTLIGHT_LEGACY
#define GIMP_GRAIN_EXTRACT_MODE GIMP_LAYER_MODE_GRAIN_EXTRACT_LEGACY
#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 74 75 76 77
#define GIMP_NO_DITHER         GIMP_CONVERT_DITHER_NONE
#define GIMP_FS_DITHER         GIMP_CONVERT_DITHER_FS
#define GIMP_FSLOWBLEED_DITHER GIMP_CONVERT_DITHER_FS_LOWBLEED
#define GIMP_FIXED_DITHER      GIMP_CONVERT_DITHER_FIXED

78 79
#endif /* ! GIMP_DISABLE_DEPRECATED */

80
G_END_DECLS
81 82

#endif /* __GIMP_TYPES_H__ */