4 * An OpenGL based 'interactive canvas' library.
6 * Copyright (C) 2012 Intel Corporation
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.
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.
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/>.
21 * Author: Emmanuele Bassi <ebassi@linux.intel.com>
24 #if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
25 #error "Only <clutter/clutter.h> can be included directly."
28 #ifndef __CLUTTER_KEYFRAME_TRANSITION_H__
29 #define __CLUTTER_KEYFRAME_TRANSITION_H__
31 #include <clutter/clutter-types.h>
32 #include <clutter/clutter-property-transition.h>
36 #define CLUTTER_TYPE_KEYFRAME_TRANSITION (clutter_keyframe_transition_get_type ())
37 #define CLUTTER_KEYFRAME_TRANSITION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CLUTTER_TYPE_KEYFRAME_TRANSITION, ClutterKeyframeTransition))
38 #define CLUTTER_IS_KEYFRAME_TRANSITION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CLUTTER_TYPE_KEYFRAME_TRANSITION))
39 #define CLUTTER_KEYFRAME_TRANSITION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CLUTTER_TYPE_KEYFRAME_TRANSITION, ClutterKeyframeTransitionClass))
40 #define CLUTTER_IS_KEYFRAME_TRANSITION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CLUTTER_TYPE_KEYFRAME_TRANSITION))
41 #define CLUTTER_KEYFRAME_TRANSITION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CLUTTER_TYPE_KEYFRAME_TRANSITION, ClutterKeyframeTransitionClass))
43 typedef struct _ClutterKeyframeTransitionPrivate ClutterKeyframeTransitionPrivate;
44 typedef struct _ClutterKeyframeTransitionClass ClutterKeyframeTransitionClass;
47 * ClutterKeyframeTransition:
53 struct _ClutterKeyframeTransition
56 ClutterPropertyTransition parent_instance;
58 ClutterKeyframeTransitionPrivate *priv;
62 * ClutterKeyframeTransitionClass:
68 struct _ClutterKeyframeTransitionClass
71 ClutterPropertyTransitionClass parent_class;
76 CLUTTER_AVAILABLE_IN_1_12
77 GType clutter_keyframe_transition_get_type (void) G_GNUC_CONST;
79 CLUTTER_AVAILABLE_IN_1_12
80 ClutterTransition * clutter_keyframe_transition_new (const char *property_name);
82 CLUTTER_AVAILABLE_IN_1_12
83 void clutter_keyframe_transition_set_key_frames (ClutterKeyframeTransition *transition,
85 const double *key_frames);
86 CLUTTER_AVAILABLE_IN_1_12
87 void clutter_keyframe_transition_set_values (ClutterKeyframeTransition *transition,
89 const GValue *values);
90 CLUTTER_AVAILABLE_IN_1_12
91 void clutter_keyframe_transition_set_modes (ClutterKeyframeTransition *transition,
93 const ClutterAnimationMode *modes);
94 CLUTTER_AVAILABLE_IN_1_12
95 void clutter_keyframe_transition_set (ClutterKeyframeTransition *transition,
100 CLUTTER_AVAILABLE_IN_1_12
101 void clutter_keyframe_transition_set_key_frame (ClutterKeyframeTransition *transition,
104 ClutterAnimationMode mode,
105 const GValue *value);
106 CLUTTER_AVAILABLE_IN_1_12
107 void clutter_keyframe_transition_get_key_frame (ClutterKeyframeTransition *transition,
110 ClutterAnimationMode *mode,
112 CLUTTER_AVAILABLE_IN_1_12
113 guint clutter_keyframe_transition_get_n_key_frames (ClutterKeyframeTransition *transition);
115 CLUTTER_AVAILABLE_IN_1_12
116 void clutter_keyframe_transition_clear (ClutterKeyframeTransition *transition);
120 #endif /* __CLUTTER_KEYFRAME_TRANSITION_H__ */