2006-12-10 05:33:38 +08:00
|
|
|
/* GIMP - The GNU Image Manipulation Program
|
2001-05-10 06:34:59 +08:00
|
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
|
|
*
|
2009-01-18 06:28:01 +08:00
|
|
|
* This program is free software: you can redistribute it and/or modify
|
2001-05-10 06:34:59 +08:00
|
|
|
* it under the terms of the GNU General Public License as published by
|
2009-01-18 06:28:01 +08:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
2001-05-10 06:34:59 +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
|
2009-01-18 06:28:01 +08:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2001-05-10 06:34:59 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __TOOLS_TYPES_H__
|
|
|
|
#define __TOOLS_TYPES_H__
|
|
|
|
|
2002-02-15 03:31:16 +08:00
|
|
|
#include "paint/paint-types.h"
|
2001-08-17 22:27:31 +08:00
|
|
|
#include "display/display-types.h"
|
2001-05-14 05:51:20 +08:00
|
|
|
|
2003-04-15 22:20:19 +08:00
|
|
|
#include "tools/tools-enums.h"
|
|
|
|
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
2001-05-10 06:34:59 +08:00
|
|
|
|
|
|
|
|
2007-02-04 05:22:37 +08:00
|
|
|
typedef struct _GimpTool GimpTool;
|
|
|
|
typedef struct _GimpToolControl GimpToolControl;
|
|
|
|
|
|
|
|
typedef struct _GimpBrushTool GimpBrushTool;
|
|
|
|
typedef struct _GimpColorTool GimpColorTool;
|
|
|
|
typedef struct _GimpDrawTool GimpDrawTool;
|
|
|
|
typedef struct _GimpForegroundSelectToolUndo GimpForegroundSelectToolUndo;
|
|
|
|
typedef struct _GimpImageMapTool GimpImageMapTool;
|
|
|
|
typedef struct _GimpPaintTool GimpPaintTool;
|
|
|
|
typedef struct _GimpTransformTool GimpTransformTool;
|
|
|
|
typedef struct _GimpTransformToolUndo GimpTransformToolUndo;
|
|
|
|
|
|
|
|
typedef struct _GimpColorOptions GimpColorOptions;
|
|
|
|
typedef struct _GimpImageMapOptions GimpImageMapOptions;
|
2001-05-10 06:34:59 +08:00
|
|
|
|
|
|
|
|
2003-04-15 22:20:19 +08:00
|
|
|
/* functions */
|
|
|
|
|
|
|
|
typedef GtkWidget * (* GimpToolOptionsGUIFunc) (GimpToolOptions *tool_options);
|
|
|
|
|
|
|
|
typedef void (* GimpToolRegisterCallback) (GType tool_type,
|
|
|
|
GType tool_option_type,
|
|
|
|
GimpToolOptionsGUIFunc options_gui_func,
|
2003-06-28 19:20:37 +08:00
|
|
|
GimpContextPropMask context_props,
|
2003-04-15 22:20:19 +08:00
|
|
|
const gchar *identifier,
|
|
|
|
const gchar *blurb,
|
|
|
|
const gchar *help,
|
|
|
|
const gchar *menu_path,
|
|
|
|
const gchar *menu_accel,
|
|
|
|
const gchar *help_domain,
|
|
|
|
const gchar *help_data,
|
2014-05-07 07:01:56 +08:00
|
|
|
const gchar *icon_name,
|
2003-04-15 22:20:19 +08:00
|
|
|
gpointer register_data);
|
|
|
|
|
|
|
|
typedef void (* GimpToolRegisterFunc) (GimpToolRegisterCallback callback,
|
2006-04-12 20:49:29 +08:00
|
|
|
gpointer register_data);
|
2003-04-15 22:20:19 +08:00
|
|
|
|
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
2001-05-10 06:34:59 +08:00
|
|
|
#endif /* __TOOLS_TYPES_H__ */
|