1 /* GIMP - The GNU Image Manipulation Program
2  * Copyright (C) 1995 Spencer Kimball and Peter Mattis
3  *
4  * gimpblobeditor.h
5  *
6  * This program is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
18  */
19 
20 #ifndef  __GIMP_BLOB_EDITOR_H__
21 #define  __GIMP_BLOB_EDITOR_H__
22 
23 
24 #define GIMP_TYPE_BLOB_EDITOR            (gimp_blob_editor_get_type ())
25 #define GIMP_BLOB_EDITOR(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_BLOB_EDITOR, GimpBlobEditor))
26 #define GIMP_BLOB_EDITOR_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_BLOB_EDITOR, GimpBlobEditorClass))
27 #define GIMP_IS_BLOB_EDITOR(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_BLOB_EDITOR))
28 #define GIMP_IS_BLOB_EDITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_BLOB_EDITOR))
29 #define GIMP_BLOB_EDITOR_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_BLOB_EDITOR, GimpBlobEditorClass))
30 
31 
32 typedef struct _GimpBlobEditorClass GimpBlobEditorClass;
33 
34 struct _GimpBlobEditor
35 {
36   GtkDrawingArea       parent_instance;
37 
38   GimpInkBlobType      type;
39   gdouble              aspect;
40   gdouble              angle;
41 
42   /*<  private  >*/
43   gboolean             active;
44 };
45 
46 struct _GimpBlobEditorClass
47 {
48   GtkDrawingAreaClass  parent_class;
49 };
50 
51 
52 GType       gimp_blob_editor_get_type (void) G_GNUC_CONST;
53 
54 GtkWidget * gimp_blob_editor_new      (GimpInkBlobType  type,
55                                        gdouble          aspect,
56                                        gdouble          angle);
57 
58 
59 #endif  /*  __GIMP_BLOB_EDITOR_H__  */
60