1 /* GIMP - The GNU Image Manipulation Program
2  * Copyright (C) 1995-1999 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 __GIMP_DYNAMICS_H__
19 #define __GIMP_DYNAMICS_H__
20 
21 
22 #include "gimpdata.h"
23 
24 
25 #define GIMP_TYPE_DYNAMICS            (gimp_dynamics_get_type ())
26 #define GIMP_DYNAMICS(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_DYNAMICS, GimpDynamics))
27 #define GIMP_DYNAMICS_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_DYNAMICS, GimpDynamicsClass))
28 #define GIMP_IS_DYNAMICS(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_DYNAMICS))
29 #define GIMP_IS_DYNAMICS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_DYNAMICS))
30 #define GIMP_DYNAMICS_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_DYNAMICS, GimpDynamicsClass))
31 
32 
33 typedef struct _GimpDynamicsClass GimpDynamicsClass;
34 
35 struct _GimpDynamics
36 {
37   GimpData  parent_instance;
38 };
39 
40 struct _GimpDynamicsClass
41 {
42   GimpDataClass  parent_class;
43 };
44 
45 
46 GType                gimp_dynamics_get_type     (void) G_GNUC_CONST;
47 
48 GimpData           * gimp_dynamics_new          (GimpContext            *context,
49                                                  const gchar            *name);
50 GimpData           * gimp_dynamics_get_standard (GimpContext            *context);
51 
52 GimpDynamicsOutput * gimp_dynamics_get_output   (GimpDynamics           *dynamics,
53                                                  GimpDynamicsOutputType  type);
54 
55 gboolean        gimp_dynamics_is_output_enabled (GimpDynamics           *dynamics,
56                                                  GimpDynamicsOutputType  type);
57 
58 gdouble         gimp_dynamics_get_linear_value  (GimpDynamics           *dynamics,
59                                                  GimpDynamicsOutputType  type,
60                                                  const GimpCoords       *coords,
61                                                  GimpPaintOptions       *options,
62                                                  gdouble                 fade_point);
63 
64 gdouble         gimp_dynamics_get_angular_value (GimpDynamics           *dynamics,
65                                                  GimpDynamicsOutputType  type,
66                                                  const GimpCoords       *coords,
67                                                  GimpPaintOptions       *options,
68                                                  gdouble                 fade_point);
69 
70 gdouble         gimp_dynamics_get_aspect_value  (GimpDynamics           *dynamics,
71                                                  GimpDynamicsOutputType  type,
72                                                  const GimpCoords       *coords,
73                                                  GimpPaintOptions       *options,
74                                                  gdouble                 fade_point);
75 
76 
77 #endif  /*  __GIMP_DYNAMICS_H__  */
78