Release Clutter 1.11.4 (snapshot)
[profile/ivi/clutter.git] / clutter / clutter-transition-group.h
1 /*
2  * Clutter.
3  *
4  * An OpenGL based 'interactive canvas' library.
5  *
6  * Copyright (C) 2012 Intel Corporation
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2 of the License, or (at your option) any later version.
12  *
13  * This library 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 GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library. If not, see <http://www.gnu.org/licenses/>.
20  *
21  * Author: Emmanuele Bassi <ebassi@linux.intel.com>
22  */
23
24 #ifndef __CLUTTER_TRANSITION_GROUP_H__
25 #define __CLUTTER_TRANSITION_GROUP_H__
26
27 #include <clutter/clutter-types.h>
28 #include <clutter/clutter-transition.h>
29
30 G_BEGIN_DECLS
31
32 #define CLUTTER_TYPE_TRANSITION_GROUP                   (clutter_transition_group_get_type ())
33 #define CLUTTER_TRANSITION_GROUP(obj)                   (G_TYPE_CHECK_INSTANCE_CAST ((obj), CLUTTER_TYPE_TRANSITION_GROUP, ClutterTransitionGroup))
34 #define CLUTTER_IS_TRANSITION_GROUP(obj)                (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CLUTTER_TYPE_TRANSITION_GROUP))
35 #define CLUTTER_TRANSITION_GROUP_CLASS(klass)           (G_TYPE_CHECK_CLASS_CAST ((klass), CLUTTER_TYPE_TRANSITION_GROUP, ClutterTransitionGroupClass))
36 #define CLUTTER_IS_TRANSITION_GROUP_CLASS(klass)        (G_TYPE_CHECK_CLASS_TYPE ((klass), CLUTTER_TYPE_TRANSITION_GROUP))
37 #define CLUTTER_TRANSITION_GROUP_GET_CLASS(obj)         (G_TYPE_INSTANCE_GET_CLASS ((obj), CLUTTER_TYPE_TRANSITION_GROUP, ClutterTransitionGroup))
38
39 typedef struct _ClutterTransitionGroupPrivate           ClutterTransitionGroupPrivate;
40 typedef struct _ClutterTransitionGroupClass             ClutterTransitionGroupClass;
41
42 /**
43  * ClutterTransitionGroup:
44  *
45  * The <structname>ClutterTransitionGroup</structname> structure contains
46  * private data and should only be accessed using the provided API.
47  *
48  * Since: 1.12
49  */
50 struct _ClutterTransitionGroup
51 {
52   /*< private >*/
53   ClutterTransition parent_instance;
54
55   ClutterTransitionGroupPrivate *priv;
56 };
57
58 /**
59  * ClutterTransitionGroupClass:
60  *
61  * The <structname>ClutterTransitionGroupClass</structname> structure
62  * contains only private data.
63  *
64  * Since: 1.12
65  */
66 struct _ClutterTransitionGroupClass
67 {
68   /*< private >*/
69   ClutterTransitionClass parent_class;
70
71   gpointer _padding[8];
72 };
73
74 CLUTTER_AVAILABLE_IN_1_12
75 GType clutter_transition_group_get_type (void) G_GNUC_CONST;
76
77 CLUTTER_AVAILABLE_IN_1_12
78 ClutterTransition *     clutter_transition_group_new            (void);
79
80 CLUTTER_AVAILABLE_IN_1_12
81 void                    clutter_transition_group_add_transition         (ClutterTransitionGroup *group,
82                                                                          ClutterTransition      *transition);
83 CLUTTER_AVAILABLE_IN_1_12
84 void                    clutter_transition_group_remove_transition      (ClutterTransitionGroup *group,
85                                                                          ClutterTransition      *transition);
86 CLUTTER_AVAILABLE_IN_1_12
87 void                    clutter_transition_group_remove_all             (ClutterTransitionGroup *group);
88
89 G_END_DECLS
90
91 #endif /* __CLUTTER_TRANSITION_GROUP_H__ */