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 #if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION) 28 #error "Only <clutter/clutter.h> can be included directly." 29 #endif 30 31 #include <clutter/clutter-types.h> 32 #include <clutter/clutter-transition.h> 33 34 G_BEGIN_DECLS 35 36 #define CLUTTER_TYPE_TRANSITION_GROUP (clutter_transition_group_get_type ()) 37 #define CLUTTER_TRANSITION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CLUTTER_TYPE_TRANSITION_GROUP, ClutterTransitionGroup)) 38 #define CLUTTER_IS_TRANSITION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CLUTTER_TYPE_TRANSITION_GROUP)) 39 #define CLUTTER_TRANSITION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CLUTTER_TYPE_TRANSITION_GROUP, ClutterTransitionGroupClass)) 40 #define CLUTTER_IS_TRANSITION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CLUTTER_TYPE_TRANSITION_GROUP)) 41 #define CLUTTER_TRANSITION_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CLUTTER_TYPE_TRANSITION_GROUP, ClutterTransitionGroup)) 42 43 typedef struct _ClutterTransitionGroupPrivate ClutterTransitionGroupPrivate; 44 typedef struct _ClutterTransitionGroupClass ClutterTransitionGroupClass; 45 46 /** 47 * ClutterTransitionGroup: 48 * 49 * The #ClutterTransitionGroup structure contains 50 * private data and should only be accessed using the provided API. 51 * 52 * Since: 1.12 53 */ 54 struct _ClutterTransitionGroup 55 { 56 /*< private >*/ 57 ClutterTransition parent_instance; 58 59 ClutterTransitionGroupPrivate *priv; 60 }; 61 62 /** 63 * ClutterTransitionGroupClass: 64 * 65 * The #ClutterTransitionGroupClass structure 66 * contains only private data. 67 * 68 * Since: 1.12 69 */ 70 struct _ClutterTransitionGroupClass 71 { 72 /*< private >*/ 73 ClutterTransitionClass parent_class; 74 75 gpointer _padding[8]; 76 }; 77 78 CLUTTER_AVAILABLE_IN_1_12 79 GType clutter_transition_group_get_type (void) G_GNUC_CONST; 80 81 CLUTTER_AVAILABLE_IN_1_12 82 ClutterTransition * clutter_transition_group_new (void); 83 84 CLUTTER_AVAILABLE_IN_1_12 85 void clutter_transition_group_add_transition (ClutterTransitionGroup *group, 86 ClutterTransition *transition); 87 CLUTTER_AVAILABLE_IN_1_12 88 void clutter_transition_group_remove_transition (ClutterTransitionGroup *group, 89 ClutterTransition *transition); 90 CLUTTER_AVAILABLE_IN_1_12 91 void clutter_transition_group_remove_all (ClutterTransitionGroup *group); 92 93 G_END_DECLS 94 95 #endif /* __CLUTTER_TRANSITION_GROUP_H__ */ 96