mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-22 04:22:29 +00:00
9ea9114303
2002-03-19 Sven Neumann <sven@gimp.org> * app/paint/Makefile.am * app/paint/paint-enums.h * app/paint/paint-types.h: split enums into their own file and namespacified them. * app/tools/Makefile.am * app/tools/tools-enums.h * app/tools/tools-types.h: split enums into their own file. * app/paint/gimpairbrush.c * app/paint/gimpclone.[ch] * app/paint/gimpconvolve.[ch] * app/paint/gimpdodgeburn.[ch] * app/paint/gimperaser.c * app/paint/gimppaintbrush.c * app/paint/gimppaintcore.[ch] * app/paint/gimppaintoptions.c * app/paint/gimppencil.c * app/paint/gimpsmudge.c * app/tools/gimpclonetool.c * app/tools/gimpconvolvetool.c * app/tools/gimpdodgeburntool.c * app/tools/paint_options.c * plug-ins/gfig/gfig.c: changed accordingly. * libgimp/gimpcompat.h * plug-ins/script-fu/siod-wrapper.c: added compatibility defines for changed enums. * tools/pdbgen/Makefile.am: updated list of headers to parse for enums. * app/pdb/paint_tools_cmds.c * libgimp/gimpenums.h * plug-ins/script-fu/script-fu-constants.c * tools/pdbgen/enums.pl * tools/pdbgen/pdb/paint_tools.pdb: regenerated.
116 lines
3.1 KiB
C
116 lines
3.1 KiB
C
/* LIBGIMP - The GIMP Library
|
|
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
|
*
|
|
* gimpcompat.h
|
|
* Compatibility defines to ease migration from the GIMP-1.2 API
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2 of the License, or (at your option) any later version.
|
|
*
|
|
* 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
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, write to the
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
* Boston, MA 02111-1307, USA.
|
|
*/
|
|
|
|
#ifndef __GIMP_COMPAT_H__
|
|
#define __GIMP_COMPAT_H__
|
|
|
|
#ifdef GIMP_ENABLE_COMPAT_CRUFT
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
/* This file contains aliases that are kept for historical
|
|
* reasons, because a wide code base depends on them.
|
|
*
|
|
* These defines will be removed in the next development cycle.
|
|
*/
|
|
|
|
#define GimpRunModeType GimpRunMode
|
|
|
|
#define gimp_use_xshm TRUE
|
|
#define gimp_color_cube ((guchar *) { 6, 6, 4, 24 })
|
|
|
|
#define gimp_crop gimp_image_crop
|
|
|
|
#define gimp_gradients_get_active gimp_gradients_get_gradient
|
|
#define gimp_gradients_set_active gimp_gradients_set_gradient
|
|
|
|
|
|
enum
|
|
{
|
|
GIMP_WHITE_MASK = GIMP_ADD_WHITE_MASK,
|
|
GIMP_BLACK_MASK = GIMP_ADD_BLACK_MASK,
|
|
GIMP_ALPHA_MASK = GIMP_ADD_ALPHA_MASK,
|
|
GIMP_SELECTION_MASK = GIMP_ADD_SELECTION_MASK,
|
|
GIMP_INV_SELECTION_MASK = GIMP_ADD_INVERSE_SELECTION_MASK,
|
|
GIMP_COPY_MASK = GIMP_ADD_COPY_MASK,
|
|
GIMP_INV_COPY_MASK = GIMP_ADD_INVERSE_COPY_MASK
|
|
};
|
|
|
|
enum
|
|
{
|
|
GIMP_ADD = GIMP_CHANNEL_OP_ADD,
|
|
GIMP_SUB = GIMP_CHANNEL_OP_SUBTRACT,
|
|
GIMP_REPLACE = GIMP_CHANNEL_OP_REPLACE,
|
|
GIMP_INTERSECT = GIMP_CHANNEL_OP_INTERSECT
|
|
};
|
|
|
|
enum
|
|
{
|
|
GIMP_FG_BG_RGB = GIMP_FG_BG_RGB_MODE,
|
|
GIMP_FG_BG_HSV = GIMP_FG_BG_HSV_MODE,
|
|
GIMP_FG_TRANS = GIMP_FG_TRANSPARENT_MODE,
|
|
GIMP_CUSTOM = GIMP_CUSTOM_MODE
|
|
};
|
|
|
|
enum
|
|
{
|
|
GIMP_FG_IMAGE_FILL = GIMP_FOREGROUND_FILL,
|
|
GIMP_BG_IMAGE_FILL = GIMP_BACKGROUND_FILL,
|
|
GIMP_WHITE_IMAGE_FILL = GIMP_WHITE_FILL,
|
|
GIMP_TRANS_IMAGE_FILL = GIMP_TRANSPARENT_FILL,
|
|
GIMP_NO_IMAGE_FILL = GIMP_NO_FILL
|
|
};
|
|
|
|
enum
|
|
{
|
|
GIMP_APPLY = GIMP_MASK_APPLY,
|
|
GIMP_DISCARD = GIMP_MASK_DISCARD
|
|
};
|
|
|
|
enum
|
|
{
|
|
GIMP_ONCE_FORWARD = GIMP_GRADIENT_ONCE_FORWARD,
|
|
GIMP_ONCE_BACKWARDS = GIMP_GRADIENT_ONCE_BACKWARD,
|
|
GIMP_LOOP_SAWTOOTH = GIMP_GRADIENT_LOOP_SAWTOOTH,
|
|
GIMP_LOOP_TRIANGLE = GIMP_GRADIENT_LOOP_TRIANGLE,
|
|
GIMP_ONCE_END_COLOR = GIMP_GRADIENT_ONCE_FORWARD
|
|
};
|
|
|
|
enum
|
|
{
|
|
GIMP_HARD = GIMP_BRUSH_HARD,
|
|
GIMP_SOFT = GIMP_BRUSH_SOFT,
|
|
GIMP_PRESSURE = GIMP_BRUSH_PRESSURE
|
|
};
|
|
|
|
enum
|
|
{
|
|
GIMP_CONTINUOUS = GIMP_PAINT_CONSTANT,
|
|
GIMP_INCREMENTAL = GIMP_PAINT_INCREMENTAL
|
|
};
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* GIMP_ENABLE_COMPAT_CRUFT */
|
|
|
|
#endif /* __GIMP_COMPAT_H__ */
|