Actually use the enum types GimpImageType, GimpImageBaseType,
* app/*.[ch]: Actually use the enum types GimpImageType,
GimpImageBaseType, LayerModeEffects, PaintApplicationMode,
BrushApplicationMode, GimpFillType and ConvertPaletteType, instead
of just int or gint. Hopefully I catched most of the places
where these should be used.
Add an enum ConvolutionType, suffix the too general constants
NORMAL, ABSOLUTE and NEGATIVE with _CONVOL. Use NORMAL_MODE
instead of NORMAL in some places (this was what was intended). Fix
some minor gccisms.
* app/apptypes.h: New file. This file contains the above
enumeration types, and some opaque struct typedefs. It was
necessary to collect these in one header that doesn't include
other headers, because when we started using the above mentioned
types in the headers, all hell broke loose because of the
spaghetti-like cross-inclusion mess between headers.
(An example: Header A includes header B, which includes header C
which includes A. B uses a type defined in A. This is not defined,
because A hasn't defined it yet at the point where it includes B,
and A included from B of course is skipped as we already are
reading A.)
1999-08-19 07:41:39 +08:00
|
|
|
/* The GIMP -- an image manipulation program
|
|
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (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
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
2000-12-29 23:22:01 +08:00
|
|
|
|
Actually use the enum types GimpImageType, GimpImageBaseType,
* app/*.[ch]: Actually use the enum types GimpImageType,
GimpImageBaseType, LayerModeEffects, PaintApplicationMode,
BrushApplicationMode, GimpFillType and ConvertPaletteType, instead
of just int or gint. Hopefully I catched most of the places
where these should be used.
Add an enum ConvolutionType, suffix the too general constants
NORMAL, ABSOLUTE and NEGATIVE with _CONVOL. Use NORMAL_MODE
instead of NORMAL in some places (this was what was intended). Fix
some minor gccisms.
* app/apptypes.h: New file. This file contains the above
enumeration types, and some opaque struct typedefs. It was
necessary to collect these in one header that doesn't include
other headers, because when we started using the above mentioned
types in the headers, all hell broke loose because of the
spaghetti-like cross-inclusion mess between headers.
(An example: Header A includes header B, which includes header C
which includes A. B uses a type defined in A. This is not defined,
because A hasn't defined it yet at the point where it includes B,
and A included from B of course is skipped as we already are
reading A.)
1999-08-19 07:41:39 +08:00
|
|
|
#ifndef __APPTYPES_H__
|
|
|
|
#define __APPTYPES_H__
|
|
|
|
|
2000-12-29 23:22:01 +08:00
|
|
|
|
2001-01-24 02:49:44 +08:00
|
|
|
#include "libgimpcolor/gimpcolortypes.h"
|
2001-01-24 07:56:18 +08:00
|
|
|
#include "libgimpmath/gimpmathtypes.h"
|
2001-01-25 06:36:18 +08:00
|
|
|
#include "libgimpwidgets/gimpwidgetstypes.h"
|
2000-12-29 23:22:01 +08:00
|
|
|
|
2001-01-24 02:49:44 +08:00
|
|
|
|
|
|
|
#include "undo_types.h"
|
2000-12-29 23:22:01 +08:00
|
|
|
|
2001-01-19 21:13:03 +08:00
|
|
|
#include "appenums.h"
|
2000-12-29 23:22:01 +08:00
|
|
|
|
|
|
|
|
2001-02-04 00:51:10 +08:00
|
|
|
/* base objects */
|
2000-12-29 23:22:01 +08:00
|
|
|
|
2000-12-31 13:31:43 +08:00
|
|
|
typedef struct _GimpObject GimpObject;
|
Actually use the enum types GimpImageType, GimpImageBaseType,
* app/*.[ch]: Actually use the enum types GimpImageType,
GimpImageBaseType, LayerModeEffects, PaintApplicationMode,
BrushApplicationMode, GimpFillType and ConvertPaletteType, instead
of just int or gint. Hopefully I catched most of the places
where these should be used.
Add an enum ConvolutionType, suffix the too general constants
NORMAL, ABSOLUTE and NEGATIVE with _CONVOL. Use NORMAL_MODE
instead of NORMAL in some places (this was what was intended). Fix
some minor gccisms.
* app/apptypes.h: New file. This file contains the above
enumeration types, and some opaque struct typedefs. It was
necessary to collect these in one header that doesn't include
other headers, because when we started using the above mentioned
types in the headers, all hell broke loose because of the
spaghetti-like cross-inclusion mess between headers.
(An example: Header A includes header B, which includes header C
which includes A. B uses a type defined in A. This is not defined,
because A hasn't defined it yet at the point where it includes B,
and A included from B of course is skipped as we already are
reading A.)
1999-08-19 07:41:39 +08:00
|
|
|
|
2001-02-04 00:51:10 +08:00
|
|
|
typedef struct _GimpContainer GimpContainer;
|
2001-02-04 22:10:03 +08:00
|
|
|
typedef struct _GimpList GimpList;
|
|
|
|
typedef struct _GimpDataList GimpDataList;
|
2001-02-04 00:51:10 +08:00
|
|
|
|
2001-02-14 03:53:07 +08:00
|
|
|
typedef struct _GimpDataFactory GimpDataFactory;
|
|
|
|
|
2001-02-04 00:51:10 +08:00
|
|
|
typedef struct _GimpContext GimpContext;
|
|
|
|
|
2001-02-05 06:10:54 +08:00
|
|
|
typedef struct _GimpViewable GimpViewable;
|
|
|
|
|
2001-02-04 00:51:10 +08:00
|
|
|
|
|
|
|
/* drawable objects */
|
2000-12-17 05:37:03 +08:00
|
|
|
|
2000-12-31 13:31:43 +08:00
|
|
|
typedef struct _GimpDrawable GimpDrawable;
|
2000-12-29 23:22:01 +08:00
|
|
|
|
2000-12-31 13:31:43 +08:00
|
|
|
typedef struct _GimpChannel GimpChannel;
|
2000-12-29 23:22:01 +08:00
|
|
|
|
2000-12-31 13:31:43 +08:00
|
|
|
typedef struct _GimpLayer GimpLayer;
|
|
|
|
typedef struct _GimpLayerMask GimpLayerMask;
|
2000-12-29 23:22:01 +08:00
|
|
|
|
2000-12-31 13:31:43 +08:00
|
|
|
typedef struct _GimpImage GimpImage;
|
Actually use the enum types GimpImageType, GimpImageBaseType,
* app/*.[ch]: Actually use the enum types GimpImageType,
GimpImageBaseType, LayerModeEffects, PaintApplicationMode,
BrushApplicationMode, GimpFillType and ConvertPaletteType, instead
of just int or gint. Hopefully I catched most of the places
where these should be used.
Add an enum ConvolutionType, suffix the too general constants
NORMAL, ABSOLUTE and NEGATIVE with _CONVOL. Use NORMAL_MODE
instead of NORMAL in some places (this was what was intended). Fix
some minor gccisms.
* app/apptypes.h: New file. This file contains the above
enumeration types, and some opaque struct typedefs. It was
necessary to collect these in one header that doesn't include
other headers, because when we started using the above mentioned
types in the headers, all hell broke loose because of the
spaghetti-like cross-inclusion mess between headers.
(An example: Header A includes header B, which includes header C
which includes A. B uses a type defined in A. This is not defined,
because A hasn't defined it yet at the point where it includes B,
and A included from B of course is skipped as we already are
reading A.)
1999-08-19 07:41:39 +08:00
|
|
|
|
2001-02-04 00:51:10 +08:00
|
|
|
|
|
|
|
/* data objects */
|
|
|
|
|
2001-02-11 09:39:24 +08:00
|
|
|
typedef struct _GimpData GimpData;
|
|
|
|
|
2000-12-31 13:31:43 +08:00
|
|
|
typedef struct _GimpBrush GimpBrush;
|
|
|
|
typedef struct _GimpBrushGenerated GimpBrushGenerated;
|
|
|
|
typedef struct _GimpBrushPipe GimpBrushPipe;
|
Actually use the enum types GimpImageType, GimpImageBaseType,
* app/*.[ch]: Actually use the enum types GimpImageType,
GimpImageBaseType, LayerModeEffects, PaintApplicationMode,
BrushApplicationMode, GimpFillType and ConvertPaletteType, instead
of just int or gint. Hopefully I catched most of the places
where these should be used.
Add an enum ConvolutionType, suffix the too general constants
NORMAL, ABSOLUTE and NEGATIVE with _CONVOL. Use NORMAL_MODE
instead of NORMAL in some places (this was what was intended). Fix
some minor gccisms.
* app/apptypes.h: New file. This file contains the above
enumeration types, and some opaque struct typedefs. It was
necessary to collect these in one header that doesn't include
other headers, because when we started using the above mentioned
types in the headers, all hell broke loose because of the
spaghetti-like cross-inclusion mess between headers.
(An example: Header A includes header B, which includes header C
which includes A. B uses a type defined in A. This is not defined,
because A hasn't defined it yet at the point where it includes B,
and A included from B of course is skipped as we already are
reading A.)
1999-08-19 07:41:39 +08:00
|
|
|
|
2001-02-11 03:35:29 +08:00
|
|
|
typedef struct _GimpGradient GimpGradient;
|
|
|
|
|
2001-02-05 01:34:30 +08:00
|
|
|
typedef struct _GimpPattern GimpPattern;
|
|
|
|
|
2001-01-22 03:53:56 +08:00
|
|
|
typedef struct _GimpPalette GimpPalette;
|
|
|
|
|
2000-12-17 05:37:03 +08:00
|
|
|
|
2001-02-14 22:57:14 +08:00
|
|
|
/* tools */
|
|
|
|
|
2001-02-21 20:18:09 +08:00
|
|
|
typedef struct _GimpToolInfo GimpToolInfo;
|
|
|
|
|
2001-02-14 22:57:14 +08:00
|
|
|
typedef struct _GimpTool GimpTool;
|
2001-02-27 22:14:13 +08:00
|
|
|
typedef struct _GimpPaintTool GimpPaintTool;
|
|
|
|
typedef struct _GimpDrawTool GimpDrawTool;
|
2001-04-07 22:55:39 +08:00
|
|
|
typedef struct _GimpPathTool GimpPathTool;
|
2001-03-10 01:39:18 +08:00
|
|
|
typedef struct _GimpTransformTool GimpTransformTool;
|
2001-02-14 22:57:14 +08:00
|
|
|
|
2001-03-26 13:31:47 +08:00
|
|
|
typedef struct _GimpBezierSelectPoint GimpBezierSelectPoint;
|
|
|
|
typedef struct _GimpBezierSelectTool GimpBezierSelectTool;
|
2001-02-14 22:57:14 +08:00
|
|
|
|
2001-03-05 09:01:16 +08:00
|
|
|
/* undo objects */
|
|
|
|
|
|
|
|
typedef struct _GimpUndo GimpUndo;
|
|
|
|
typedef struct _GimpUndoStack GimpUndoStack;
|
|
|
|
|
|
|
|
|
2001-04-14 23:21:45 +08:00
|
|
|
/* gui objects */
|
|
|
|
|
|
|
|
typedef struct _GimpDialogFactory GimpDialogFactory;
|
|
|
|
|
|
|
|
|
2000-12-31 13:31:43 +08:00
|
|
|
/* widgets */
|
2000-12-17 05:37:03 +08:00
|
|
|
|
2001-02-05 23:22:20 +08:00
|
|
|
typedef struct _GimpPreview GimpPreview;
|
2001-02-07 08:06:58 +08:00
|
|
|
typedef struct _GimpImagePreview GimpImagePreview;
|
|
|
|
typedef struct _GimpDrawablePreview GimpDrawablePreview;
|
|
|
|
typedef struct _GimpBrushPreview GimpBrushPreview;
|
|
|
|
typedef struct _GimpPatternPreview GimpPatternPreview;
|
|
|
|
typedef struct _GimpPalettePreview GimpPalettePreview;
|
|
|
|
typedef struct _GimpGradientPreview GimpGradientPreview;
|
2001-02-23 11:29:53 +08:00
|
|
|
typedef struct _GimpToolInfoPreview GimpToolInfoPreview;
|
2001-02-07 08:06:58 +08:00
|
|
|
|
2001-04-22 08:38:56 +08:00
|
|
|
typedef struct _GimpContainerMenu GimpContainerMenu;
|
|
|
|
typedef struct _GimpContainerMenuImpl GimpContainerMenuImpl;
|
|
|
|
|
|
|
|
typedef struct _GimpMenuItem GimpMenuItem;
|
|
|
|
|
2001-02-14 09:42:12 +08:00
|
|
|
typedef struct _GimpContainerView GimpContainerView;
|
2001-02-05 23:22:20 +08:00
|
|
|
typedef struct _GimpContainerListView GimpContainerListView;
|
|
|
|
typedef struct _GimpContainerGridView GimpContainerGridView;
|
2001-02-14 09:42:12 +08:00
|
|
|
typedef struct _GimpDataFactoryView GimpDataFactoryView;
|
2001-02-27 22:14:13 +08:00
|
|
|
typedef struct _GimpDrawableListView GimpDrawableListView;
|
2001-03-12 01:24:47 +08:00
|
|
|
typedef struct _GimpLayerListView GimpLayerListView;
|
2001-03-04 07:23:36 +08:00
|
|
|
|
|
|
|
typedef struct _GimpListItem GimpListItem;
|
|
|
|
typedef struct _GimpDrawableListItem GimpDrawableListItem;
|
2001-03-05 04:06:48 +08:00
|
|
|
typedef struct _GimpLayerListItem GimpLayerListItem;
|
2001-03-04 07:23:36 +08:00
|
|
|
|
2001-04-07 22:44:12 +08:00
|
|
|
typedef struct _GimpDock GimpDock;
|
2001-04-22 08:38:56 +08:00
|
|
|
typedef struct _GimpImageDock GimpImageDock;
|
2001-04-07 22:44:12 +08:00
|
|
|
typedef struct _GimpDockable GimpDockable;
|
2001-04-11 00:03:40 +08:00
|
|
|
typedef struct _GimpDockbook GimpDockbook;
|
2001-04-07 22:44:12 +08:00
|
|
|
|
2001-02-05 23:22:20 +08:00
|
|
|
typedef struct _HistogramWidget HistogramWidget;
|
2000-12-17 05:37:03 +08:00
|
|
|
|
Overhaul of pixmap brushes and pipes: No separate pixmap pipe
brush tool any longer. The paintbrush, airbrush and pencil
tools, which already knew how to handle the single-pixmap
brushes now also handle the pipes as well.
* app/pixmapbrush.{h,c}
* app/gimpbrushpixmap.{h,c}: Removed these files.
* app/Makefile.am
* app/makefile.{cygwin,msc}: Remove from here, too.
* app/gimpbrushpipe.{h,c}: Total overhaul.
* app/paint_core.h
* app/apptypes.h: Some more types moved to apptypes.h
* app/context_manager.c
* app/tool_options.c
* app/tools.c
* app/toolsF.h: Remove PIXMAPBRUSH tool.
* app/gimpbrush.h: New method: select_brush. Used to change the
brush in paint_core, for pipe brushes.
* app/gimpbrush.c: Add gimp_brush_select_brush, which is dummy for
the normal brushes (returns the same brush).
* app/paint_core.c: Call the brush's select_brush method to get a
potential new brush before calling the paint_func.
* app/gimpbrushlist.c: Various changes related to the pixmap and
pipe overhaul.
* app/airbrush.c
* app/pencil.c: Reorder code a bit in the tool motion function to
avoid executing unnecessary code in the case of a pixmap brush.
Other changes in the same commit:
* app/install.c: Make quote_spaces extern.
* app/appenv.h: Declare it.
* libgimp/gimpui.def: Add missing entry points.
* libgimp/makefile.{cygwin,msc}: Add missing objects to gimpui.
1999-08-26 08:54:30 +08:00
|
|
|
|
2000-12-31 13:31:43 +08:00
|
|
|
/* other stuff */
|
2000-12-17 05:37:03 +08:00
|
|
|
|
2000-12-31 13:31:43 +08:00
|
|
|
typedef struct _Argument Argument;
|
2000-12-17 05:37:03 +08:00
|
|
|
|
2001-02-25 03:29:47 +08:00
|
|
|
typedef struct _GimpBitmapCursor GimpBitmapCursor;
|
2001-02-14 22:57:14 +08:00
|
|
|
|
2000-12-31 13:31:43 +08:00
|
|
|
typedef struct _BoundSeg BoundSeg;
|
2000-12-28 10:01:16 +08:00
|
|
|
|
2001-01-08 07:59:46 +08:00
|
|
|
typedef struct _ColorNotebook ColorNotebook;
|
|
|
|
|
2000-12-31 13:31:43 +08:00
|
|
|
typedef struct _GDisplay GDisplay;
|
Actually use the enum types GimpImageType, GimpImageBaseType,
* app/*.[ch]: Actually use the enum types GimpImageType,
GimpImageBaseType, LayerModeEffects, PaintApplicationMode,
BrushApplicationMode, GimpFillType and ConvertPaletteType, instead
of just int or gint. Hopefully I catched most of the places
where these should be used.
Add an enum ConvolutionType, suffix the too general constants
NORMAL, ABSOLUTE and NEGATIVE with _CONVOL. Use NORMAL_MODE
instead of NORMAL in some places (this was what was intended). Fix
some minor gccisms.
* app/apptypes.h: New file. This file contains the above
enumeration types, and some opaque struct typedefs. It was
necessary to collect these in one header that doesn't include
other headers, because when we started using the above mentioned
types in the headers, all hell broke loose because of the
spaghetti-like cross-inclusion mess between headers.
(An example: Header A includes header B, which includes header C
which includes A. B uses a type defined in A. This is not defined,
because A hasn't defined it yet at the point where it includes B,
and A included from B of course is skipped as we already are
reading A.)
1999-08-19 07:41:39 +08:00
|
|
|
|
2000-12-31 13:31:43 +08:00
|
|
|
typedef struct _GimpHistogram GimpHistogram;
|
2000-12-29 23:22:01 +08:00
|
|
|
|
2000-12-31 13:31:43 +08:00
|
|
|
typedef struct _GimpImageNewValues GimpImageNewValues;
|
Actually use the enum types GimpImageType, GimpImageBaseType,
* app/*.[ch]: Actually use the enum types GimpImageType,
GimpImageBaseType, LayerModeEffects, PaintApplicationMode,
BrushApplicationMode, GimpFillType and ConvertPaletteType, instead
of just int or gint. Hopefully I catched most of the places
where these should be used.
Add an enum ConvolutionType, suffix the too general constants
NORMAL, ABSOLUTE and NEGATIVE with _CONVOL. Use NORMAL_MODE
instead of NORMAL in some places (this was what was intended). Fix
some minor gccisms.
* app/apptypes.h: New file. This file contains the above
enumeration types, and some opaque struct typedefs. It was
necessary to collect these in one header that doesn't include
other headers, because when we started using the above mentioned
types in the headers, all hell broke loose because of the
spaghetti-like cross-inclusion mess between headers.
(An example: Header A includes header B, which includes header C
which includes A. B uses a type defined in A. This is not defined,
because A hasn't defined it yet at the point where it includes B,
and A included from B of course is skipped as we already are
reading A.)
1999-08-19 07:41:39 +08:00
|
|
|
|
2000-12-31 13:31:43 +08:00
|
|
|
typedef struct _GimpLut GimpLut;
|
2000-12-17 05:37:03 +08:00
|
|
|
|
2000-12-31 13:31:43 +08:00
|
|
|
typedef struct _GimpParasite GimpParasite;
|
2000-12-29 23:22:01 +08:00
|
|
|
|
2000-12-31 13:31:43 +08:00
|
|
|
typedef struct _GimpProgress GimpProgress;
|
2000-12-29 23:22:01 +08:00
|
|
|
|
2000-12-31 13:31:43 +08:00
|
|
|
typedef struct _Guide Guide;
|
|
|
|
|
2001-01-19 21:13:03 +08:00
|
|
|
typedef gpointer ImageMap;
|
2000-12-31 13:31:43 +08:00
|
|
|
|
|
|
|
typedef struct _InfoDialog InfoDialog;
|
|
|
|
|
2000-12-29 23:22:01 +08:00
|
|
|
typedef struct _Path Path;
|
|
|
|
typedef struct _PathPoint PathPoint;
|
|
|
|
typedef struct _PathList PathList;
|
2000-12-31 13:31:43 +08:00
|
|
|
|
|
|
|
typedef struct _PlugIn PlugIn;
|
|
|
|
typedef struct _PlugInDef PlugInDef;
|
|
|
|
typedef struct _PlugInProcDef PlugInProcDef;
|
|
|
|
|
|
|
|
typedef struct _ParasiteList ParasiteList;
|
|
|
|
|
|
|
|
typedef struct _PixelRegionIterator PixelRegionIterator;
|
|
|
|
typedef struct _PixelRegion PixelRegion;
|
|
|
|
typedef struct _PixelRegionHolder PixelRegionHolder;
|
|
|
|
|
|
|
|
typedef struct _ProcArg ProcArg;
|
|
|
|
typedef struct _ProcRecord ProcRecord;
|
|
|
|
|
2001-01-19 21:13:03 +08:00
|
|
|
typedef guint32 Tattoo;
|
2000-12-29 23:22:01 +08:00
|
|
|
|
|
|
|
typedef struct _TempBuf TempBuf;
|
|
|
|
typedef struct _TempBuf MaskBuf;
|
|
|
|
|
2000-12-31 13:31:43 +08:00
|
|
|
typedef struct _Tile Tile;
|
|
|
|
typedef struct _TileManager TileManager;
|
|
|
|
|
2001-02-14 12:55:21 +08:00
|
|
|
typedef struct _Tool Tool;
|
|
|
|
typedef struct _ToolInfo ToolInfo;
|
2000-12-29 23:22:01 +08:00
|
|
|
typedef struct _ToolOptions ToolOptions;
|
2000-12-31 13:31:43 +08:00
|
|
|
|
|
|
|
typedef struct _ScanConvertPoint ScanConvertPoint;
|
|
|
|
|
|
|
|
typedef struct _Selection Selection;
|
|
|
|
|
2000-12-29 23:22:01 +08:00
|
|
|
typedef struct _SelectionOptions SelectionOptions;
|
|
|
|
|
|
|
|
|
2000-12-31 13:31:43 +08:00
|
|
|
/* some undo stuff */
|
2000-12-29 23:22:01 +08:00
|
|
|
|
2001-01-29 00:44:22 +08:00
|
|
|
typedef struct _LayerUndo LayerUndo;
|
2000-12-29 23:22:01 +08:00
|
|
|
|
2001-01-29 00:44:22 +08:00
|
|
|
typedef struct _LayerMaskUndo LayerMaskUndo;
|
2000-12-29 23:22:01 +08:00
|
|
|
|
2001-01-29 00:44:22 +08:00
|
|
|
typedef struct _FStoLayerUndo FStoLayerUndo;
|
2000-12-29 23:22:01 +08:00
|
|
|
|
2001-01-19 21:13:03 +08:00
|
|
|
typedef GSList PathUndo;
|
2000-12-29 23:22:01 +08:00
|
|
|
|
|
|
|
|
2000-12-31 13:31:43 +08:00
|
|
|
/* functions */
|
2000-12-29 23:22:01 +08:00
|
|
|
|
2001-02-12 05:08:04 +08:00
|
|
|
typedef void (* TileValidateProc) (TileManager *tm,
|
|
|
|
Tile *tile);
|
2000-12-31 13:31:43 +08:00
|
|
|
|
2001-04-01 04:41:39 +08:00
|
|
|
typedef void (* ToolOptionsResetFunc) (ToolOptions *tool_options);
|
2000-12-31 13:31:43 +08:00
|
|
|
|
2001-02-12 05:08:04 +08:00
|
|
|
typedef void (* GimpProgressFunc) (gint min,
|
|
|
|
gint max,
|
|
|
|
gint current,
|
|
|
|
gpointer data);
|
2000-12-31 13:31:43 +08:00
|
|
|
|
2001-02-12 05:08:04 +08:00
|
|
|
typedef void (* ImageMapApplyFunc) (PixelRegion *srcPR,
|
|
|
|
PixelRegion *destPR,
|
|
|
|
gpointer data);
|
|
|
|
|
|
|
|
typedef void (* GimpDataFileLoaderFunc) (const gchar *filename,
|
|
|
|
gpointer loader_data);
|
|
|
|
typedef GimpData * (* GimpDataObjectLoaderFunc) (const gchar *filename);
|
2000-12-29 23:22:01 +08:00
|
|
|
|
2000-12-17 05:37:03 +08:00
|
|
|
|
Actually use the enum types GimpImageType, GimpImageBaseType,
* app/*.[ch]: Actually use the enum types GimpImageType,
GimpImageBaseType, LayerModeEffects, PaintApplicationMode,
BrushApplicationMode, GimpFillType and ConvertPaletteType, instead
of just int or gint. Hopefully I catched most of the places
where these should be used.
Add an enum ConvolutionType, suffix the too general constants
NORMAL, ABSOLUTE and NEGATIVE with _CONVOL. Use NORMAL_MODE
instead of NORMAL in some places (this was what was intended). Fix
some minor gccisms.
* app/apptypes.h: New file. This file contains the above
enumeration types, and some opaque struct typedefs. It was
necessary to collect these in one header that doesn't include
other headers, because when we started using the above mentioned
types in the headers, all hell broke loose because of the
spaghetti-like cross-inclusion mess between headers.
(An example: Header A includes header B, which includes header C
which includes A. B uses a type defined in A. This is not defined,
because A hasn't defined it yet at the point where it includes B,
and A included from B of course is skipped as we already are
reading A.)
1999-08-19 07:41:39 +08:00
|
|
|
#endif /* __APPTYPES_H__ */
|