| 1 |
/* |
| 2 |
* Clutter. |
| 3 |
* |
| 4 |
* An OpenGL based 'interactive canvas' library. |
| 5 |
* |
| 6 |
* Copyright (C) 2010 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: |
| 22 |
* Øyvind Kolås <[email protected]> |
| 23 |
*/ |
| 24 |
|
| 25 |
#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION) |
| 26 |
#error "Only <clutter/clutter.h> can be included directly." |
| 27 |
#endif |
| 28 |
|
| 29 |
#ifndef __CLUTTER_ANIMATOR_H__ |
| 30 |
#define __CLUTTER_ANIMATOR_H__ |
| 31 |
|
| 32 |
#include <clutter/clutter-types.h> |
| 33 |
#include <clutter/clutter-timeline.h> |
| 34 |
|
| 35 |
G_BEGIN_DECLS |
| 36 |
|
| 37 |
#define CLUTTER_TYPE_ANIMATOR (clutter_animator_get_type ()) |
| 38 |
#define CLUTTER_TYPE_ANIMATOR_KEY (clutter_animator_key_get_type ()) |
| 39 |
|
| 40 |
#define CLUTTER_ANIMATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CLUTTER_TYPE_ANIMATOR, ClutterAnimator)) |
| 41 |
#define CLUTTER_ANIMATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CLUTTER_TYPE_ANIMATOR, ClutterAnimatorClass)) |
| 42 |
#define CLUTTER_IS_ANIMATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CLUTTER_TYPE_ANIMATOR)) |
| 43 |
#define CLUTTER_IS_ANIMATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CLUTTER_TYPE_ANIMATOR)) |
| 44 |
#define CLUTTER_ANIMATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CLUTTER_TYPE_ANIMATOR, ClutterAnimatorClass)) |
| 45 |
|
| 46 |
/* ClutterAnimator is typedef in clutter-types.h */ |
| 47 |
|
| 48 |
typedef struct _ClutterAnimatorClass ClutterAnimatorClass; |
| 49 |
typedef struct _ClutterAnimatorPrivate ClutterAnimatorPrivate; |
| 50 |
|
| 51 |
/** |
| 52 |
* ClutterAnimatorKey: |
| 53 |
* |
| 54 |
* A key frame inside a #ClutterAnimator |
| 55 |
* |
| 56 |
* Since: 1.2 |
| 57 |
* |
| 58 |
* Deprecated: 1.12 |
| 59 |
*/ |
| 60 |
typedef struct _ClutterAnimatorKey ClutterAnimatorKey; |
| 61 |
|
| 62 |
/** |
| 63 |
* ClutterAnimator: |
| 64 |
* |
| 65 |
* The #ClutterAnimator structure contains only private data and |
| 66 |
* should be accessed using the provided API |
| 67 |
* |
| 68 |
* Since: 1.2 |
| 69 |
* |
| 70 |
* Deprecated: 1.12 |
| 71 |
*/ |
| 72 |
struct _ClutterAnimator |
| 73 |
{ |
| 74 |
/*< private >*/ |
| 75 |
GObject parent_instance; |
| 76 |
|
| 77 |
ClutterAnimatorPrivate *priv; |
| 78 |
}; |
| 79 |
|
| 80 |
/** |
| 81 |
* ClutterAnimatorClass: |
| 82 |
* |
| 83 |
* The #ClutterAnimatorClass structure contains only private data |
| 84 |
* |
| 85 |
* Since: 1.2 |
| 86 |
* |
| 87 |
* Deprecated: 1.12 |
| 88 |
*/ |
| 89 |
struct _ClutterAnimatorClass |
| 90 |
{ |
| 91 |
/*< private >*/ |
| 92 |
GObjectClass parent_class; |
| 93 |
|
| 94 |
/* padding for future expansion */ |
| 95 |
gpointer _padding_dummy[16]; |
| 96 |
}; |
| 97 |
|
| 98 |
CLUTTER_DEPRECATED_IN_1_12 |
| 99 |
GType clutter_animator_get_type (void) G_GNUC_CONST; |
| 100 |
|
| 101 |
CLUTTER_DEPRECATED_IN_1_12 |
| 102 |
ClutterAnimator * clutter_animator_new (void); |
| 103 |
CLUTTER_DEPRECATED_IN_1_12 |
| 104 |
ClutterAnimator * clutter_animator_set_key (ClutterAnimator *animator, |
| 105 |
GObject *object, |
| 106 |
const gchar *property_name, |
| 107 |
guint mode, |
| 108 |
gdouble progress, |
| 109 |
const GValue *value); |
| 110 |
CLUTTER_DEPRECATED_IN_1_12 |
| 111 |
void clutter_animator_set (ClutterAnimator *animator, |
| 112 |
gpointer first_object, |
| 113 |
const gchar *first_property_name, |
| 114 |
guint first_mode, |
| 115 |
gdouble first_progress, |
| 116 |
...) G_GNUC_NULL_TERMINATED; |
| 117 |
CLUTTER_DEPRECATED_IN_1_12 |
| 118 |
GList * clutter_animator_get_keys (ClutterAnimator *animator, |
| 119 |
GObject *object, |
| 120 |
const gchar *property_name, |
| 121 |
gdouble progress); |
| 122 |
|
| 123 |
CLUTTER_DEPRECATED_IN_1_12 |
| 124 |
void clutter_animator_remove_key (ClutterAnimator *animator, |
| 125 |
GObject *object, |
| 126 |
const gchar *property_name, |
| 127 |
gdouble progress); |
| 128 |
|
| 129 |
CLUTTER_DEPRECATED_IN_1_12 |
| 130 |
ClutterTimeline * clutter_animator_start (ClutterAnimator *animator); |
| 131 |
|
| 132 |
CLUTTER_DEPRECATED_IN_1_12 |
| 133 |
gboolean clutter_animator_compute_value (ClutterAnimator *animator, |
| 134 |
GObject *object, |
| 135 |
const gchar *property_name, |
| 136 |
gdouble progress, |
| 137 |
GValue *value); |
| 138 |
|
| 139 |
CLUTTER_DEPRECATED_IN_1_12 |
| 140 |
ClutterTimeline * clutter_animator_get_timeline (ClutterAnimator *animator); |
| 141 |
CLUTTER_DEPRECATED_IN_1_12 |
| 142 |
void clutter_animator_set_timeline (ClutterAnimator *animator, |
| 143 |
ClutterTimeline *timeline); |
| 144 |
CLUTTER_DEPRECATED_IN_1_12 |
| 145 |
guint clutter_animator_get_duration (ClutterAnimator *animator); |
| 146 |
CLUTTER_DEPRECATED_IN_1_12 |
| 147 |
void clutter_animator_set_duration (ClutterAnimator *animator, |
| 148 |
guint duration); |
| 149 |
|
| 150 |
CLUTTER_DEPRECATED_IN_1_12 |
| 151 |
gboolean clutter_animator_property_get_ease_in (ClutterAnimator *animator, |
| 152 |
GObject *object, |
| 153 |
const gchar *property_name); |
| 154 |
CLUTTER_DEPRECATED_IN_1_12 |
| 155 |
void clutter_animator_property_set_ease_in (ClutterAnimator *animator, |
| 156 |
GObject *object, |
| 157 |
const gchar *property_name, |
| 158 |
gboolean ease_in); |
| 159 |
|
| 160 |
CLUTTER_DEPRECATED_IN_1_12 |
| 161 |
ClutterInterpolation clutter_animator_property_get_interpolation (ClutterAnimator *animator, |
| 162 |
GObject *object, |
| 163 |
const gchar *property_name); |
| 164 |
CLUTTER_DEPRECATED_IN_1_12 |
| 165 |
void clutter_animator_property_set_interpolation (ClutterAnimator *animator, |
| 166 |
GObject *object, |
| 167 |
const gchar *property_name, |
| 168 |
ClutterInterpolation interpolation); |
| 169 |
|
| 170 |
CLUTTER_DEPRECATED_IN_1_12 |
| 171 |
GType clutter_animator_key_get_type (void) G_GNUC_CONST; |
| 172 |
CLUTTER_DEPRECATED_IN_1_12 |
| 173 |
GObject * clutter_animator_key_get_object (const ClutterAnimatorKey *key); |
| 174 |
CLUTTER_DEPRECATED_IN_1_12 |
| 175 |
const gchar * clutter_animator_key_get_property_name (const ClutterAnimatorKey *key); |
| 176 |
CLUTTER_DEPRECATED_IN_1_12 |
| 177 |
GType clutter_animator_key_get_property_type (const ClutterAnimatorKey *key); |
| 178 |
CLUTTER_DEPRECATED_IN_1_12 |
| 179 |
gulong clutter_animator_key_get_mode (const ClutterAnimatorKey *key); |
| 180 |
CLUTTER_DEPRECATED_IN_1_12 |
| 181 |
gdouble clutter_animator_key_get_progress (const ClutterAnimatorKey *key); |
| 182 |
CLUTTER_DEPRECATED_IN_1_12 |
| 183 |
gboolean clutter_animator_key_get_value (const ClutterAnimatorKey *key, |
| 184 |
GValue *value); |
| 185 |
|
| 186 |
G_END_DECLS |
| 187 |
|
| 188 |
#endif /* __CLUTTER_ANIMATOR_H__ */ |