1 /* GIMP - The GNU Image Manipulation Program 2 * Copyright (C) 1995 Spencer Kimball and Peter Mattis 3 * 4 * gimptooleditor.h 5 * Copyright (C) 2001-2009 Michael Natterer <mitch@gimp.org> 6 * Stephen Griffiths <scgmk5@gmail.com> 7 * 8 * This program is free software: you can redistribute it and/or modify 9 * it under the terms of the GNU General Public License as published by 10 * the Free Software Foundation; either version 3 of the License, or 11 * (at your option) any later version. 12 * 13 * This program is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 * GNU General Public License for more details. 17 * 18 * You should have received a copy of the GNU General Public License 19 * along with this program. If not, see <https://www.gnu.org/licenses/>. 20 */ 21 22 #ifndef __GIMP_TOOL_EDITOR_H__ 23 #define __GIMP_TOOL_EDITOR_H__ 24 25 26 #include "gimpcontainertreeview.h" 27 28 29 #define GIMP_TYPE_TOOL_EDITOR (gimp_tool_editor_get_type ()) 30 #define GIMP_TOOL_EDITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_TOOL_EDITOR, GimpToolEditor)) 31 #define GIMP_TOOL_EDITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_TOOL_EDITOR, GimpToolEditorClass)) 32 #define GIMP_IS_TOOL_EDITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_TOOL_EDITOR)) 33 #define GIMP_IS_TOOL_EDITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_TOOL_EDITOR)) 34 #define GIMP_TOOL_EDITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_TOOL_EDITOR, GimpToolEditorClass)) 35 36 37 typedef struct _GimpToolEditorPrivate GimpToolEditorPrivate; 38 typedef struct _GimpToolEditorClass GimpToolEditorClass; 39 40 struct _GimpToolEditor 41 { 42 GimpContainerTreeView parent_instance; 43 44 GimpToolEditorPrivate *priv; 45 }; 46 47 struct _GimpToolEditorClass 48 { 49 GimpContainerTreeViewClass parent_class; 50 }; 51 52 53 GType gimp_tool_editor_get_type (void) G_GNUC_CONST; 54 55 GtkWidget * gimp_tool_editor_new (GimpContainer *container, 56 GimpContext *context, 57 gint view_size, 58 gint view_border_width); 59 60 void gimp_tool_editor_revert_changes (GimpToolEditor *tool_editor); 61 62 63 #endif /* __GIMP_TOOL_EDITOR_H__ */ 64