1 /* GIMP - The GNU Image Manipulation Program
2  * Copyright (C) 1995 Spencer Kimball and Peter Mattis
3  *
4  * gimpmybrush.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_MYBRUSH_H__
21 #define __GIMP_MYBRUSH_H__
22 
23 
24 #include "gimpdata.h"
25 
26 
27 #define GIMP_TYPE_MYBRUSH            (gimp_mybrush_get_type ())
28 #define GIMP_MYBRUSH(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_MYBRUSH, GimpMybrush))
29 #define GIMP_MYBRUSH_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_MYBRUSH, GimpMybrushClass))
30 #define GIMP_IS_MYBRUSH(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_MYBRUSH))
31 #define GIMP_IS_MYBRUSH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_MYBRUSH))
32 #define GIMP_MYBRUSH_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_MYBRUSH, GimpMybrushClass))
33 
34 
35 typedef struct _GimpMybrushPrivate GimpMybrushPrivate;
36 typedef struct _GimpMybrushClass   GimpMybrushClass;
37 
38 struct _GimpMybrush
39 {
40   GimpData            parent_instance;
41 
42   GimpMybrushPrivate *priv;
43 };
44 
45 struct _GimpMybrushClass
46 {
47   GimpDataClass  parent_class;
48 };
49 
50 
51 GType         gimp_mybrush_get_type             (void) G_GNUC_CONST;
52 
53 GimpData    * gimp_mybrush_new                  (GimpContext *context,
54                                                  const gchar *name);
55 GimpData    * gimp_mybrush_get_standard         (GimpContext *context);
56 
57 const gchar * gimp_mybrush_get_brush_json       (GimpMybrush *brush);
58 
59 gdouble       gimp_mybrush_get_radius           (GimpMybrush *brush);
60 gdouble       gimp_mybrush_get_opaque           (GimpMybrush *brush);
61 gdouble       gimp_mybrush_get_hardness         (GimpMybrush *brush);
62 gdouble       gimp_mybrush_get_offset_by_random (GimpMybrush *brush);
63 gboolean      gimp_mybrush_get_is_eraser        (GimpMybrush *brush);
64 
65 
66 #endif /* __GIMP_MYBRUSH_H__ */
67