1 /* GIMP - The GNU Image Manipulation Program
2  * Copyright (C) 1995 Spencer Kimball and Peter Mattis
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
16  */
17 
18 #ifndef __TOOLS_TYPES_H__
19 #define __TOOLS_TYPES_H__
20 
21 #include "paint/paint-types.h"
22 #include "display/display-types.h"
23 
24 #include "tools/tools-enums.h"
25 
26 
27 G_BEGIN_DECLS
28 
29 
30 typedef struct _GimpTool                     GimpTool;
31 typedef struct _GimpToolControl              GimpToolControl;
32 
33 typedef struct _GimpBrushTool                GimpBrushTool;
34 typedef struct _GimpColorTool                GimpColorTool;
35 typedef struct _GimpDrawTool                 GimpDrawTool;
36 typedef struct _GimpFilterTool               GimpFilterTool;
37 typedef struct _GimpGenericTransformTool     GimpGenericTransformTool;
38 typedef struct _GimpPaintTool                GimpPaintTool;
39 typedef struct _GimpTransformGridTool        GimpTransformGridTool;
40 typedef struct _GimpTransformTool            GimpTransformTool;
41 
42 typedef struct _GimpColorOptions             GimpColorOptions;
43 typedef struct _GimpFilterOptions            GimpFilterOptions;
44 
45 
46 /*  functions  */
47 
48 typedef void (* GimpToolRegisterCallback) (GType                     tool_type,
49                                            GType                     tool_option_type,
50                                            GimpToolOptionsGUIFunc    options_gui_func,
51                                            GimpContextPropMask       context_props,
52                                            const gchar              *identifier,
53                                            const gchar              *label,
54                                            const gchar              *tooltip,
55                                            const gchar              *menu_path,
56                                            const gchar              *menu_accel,
57                                            const gchar              *help_domain,
58                                            const gchar              *help_data,
59                                            const gchar              *icon_name,
60                                            gpointer                  register_data);
61 
62 typedef void (* GimpToolRegisterFunc)     (GimpToolRegisterCallback  callback,
63                                            gpointer                  register_data);
64 
65 
66 G_END_DECLS
67 
68 #endif /* __TOOLS_TYPES_H__ */
69