Debian Codegraph @

clutter/deprecated/clutter-behaviour-scale.h

raw
1 /*
2 * Clutter.
3 *
4 * An OpenGL based 'interactive canvas' library.
5 *
6 * Authored By Matthew Allum <[email protected]>
7 * Jorn Baayen <[email protected]>
8 * Emmanuele Bassi <[email protected]>
9 *
10 * Copyright (C) 2006 OpenedHand
11 *
12 * This library is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU Lesser General Public
14 * License as published by the Free Software Foundation; either
15 * version 2 of the License, or (at your option) any later version.
16 *
17 * This library is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * Lesser General Public License for more details.
21 *
22 * You should have received a copy of the GNU Lesser General Public
23 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
24 */
25
26 #if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
27 #error "Only <clutter/clutter.h> can be included directly."
28 #endif
29
30 #ifndef __CLUTTER_BEHAVIOUR_SCALE_H__
31 #define __CLUTTER_BEHAVIOUR_SCALE_H__
32
33 #include <clutter/clutter-types.h>
34
35 G_BEGIN_DECLS
36
37 #define CLUTTER_TYPE_BEHAVIOUR_SCALE (clutter_behaviour_scale_get_type ())
38 #define CLUTTER_BEHAVIOUR_SCALE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CLUTTER_TYPE_BEHAVIOUR_SCALE, ClutterBehaviourScale))
39 #define CLUTTER_BEHAVIOUR_SCALE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CLUTTER_TYPE_BEHAVIOUR_SCALE, ClutterBehaviourScaleClass))
40 #define CLUTTER_IS_BEHAVIOUR_SCALE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CLUTTER_TYPE_BEHAVIOUR_SCALE))
41 #define CLUTTER_IS_BEHAVIOUR_SCALE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CLUTTER_TYPE_BEHAVIOUR_SCALE))
42 #define CLUTTER_BEHAVIOUR_SCALE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CLUTTER_TYPE_BEHAVIOUR_SCALE, ClutterBehaviourScaleClass))
43
44 typedef struct _ClutterBehaviourScale ClutterBehaviourScale;
45 typedef struct _ClutterBehaviourScalePrivate ClutterBehaviourScalePrivate;
46 typedef struct _ClutterBehaviourScaleClass ClutterBehaviourScaleClass;
47
48 /**
49 * ClutterBehaviourScale:
50 *
51 * The #ClutterBehaviourScale struct contains only private data and
52 * should be accessed using the provided API
53 *
54 * Since: 0.2
55 *
56 * Deprecated: 1.6: Use clutter_actor_animate() with #ClutterActor:scale-x
57 * and #ClutterActor:scale-y instead.
58 */
59 struct _ClutterBehaviourScale
60 {
61 /*< private >*/
62 ClutterBehaviour parent_instance;
63
64 ClutterBehaviourScalePrivate *priv;
65 };
66
67 /**
68 * ClutterBehaviourScaleClass:
69 *
70 * The #ClutterBehaviourScaleClass struct contains only private data
71 *
72 * Since: 0.2
73 *
74 * Deprecated: 1.6
75 */
76 struct _ClutterBehaviourScaleClass
77 {
78 /*< private >*/
79 ClutterBehaviourClass parent_class;
80 };
81
82 CLUTTER_DEPRECATED_IN_1_6
83 GType clutter_behaviour_scale_get_type (void) G_GNUC_CONST;
84
85 CLUTTER_DEPRECATED_IN_1_6_FOR(clutter_actor_animate with ClutterActor:scale-x and ClutterActor:scale-y)
86 ClutterBehaviour *clutter_behaviour_scale_new (ClutterAlpha *alpha,
87 gdouble x_scale_start,
88 gdouble y_scale_start,
89 gdouble x_scale_end,
90 gdouble y_scale_end);
91
92 CLUTTER_DEPRECATED_IN_1_6
93 void clutter_behaviour_scale_set_bounds (ClutterBehaviourScale *scale,
94 gdouble x_scale_start,
95 gdouble y_scale_start,
96 gdouble x_scale_end,
97 gdouble y_scale_end);
98 CLUTTER_DEPRECATED_IN_1_6
99 void clutter_behaviour_scale_get_bounds (ClutterBehaviourScale *scale,
100 gdouble *x_scale_start,
101 gdouble *y_scale_start,
102 gdouble *x_scale_end,
103 gdouble *y_scale_end);
104
105 G_END_DECLS
106
107 #endif /* __CLUTTER_BEHAVIOUR_SCALE_H__ */