alpha: Manually parse the :mode property in ClutterScript

The :mode property for a ClutterAlpha can either be an integer, for
an easing mode logical id, or a string for the easing mode "nickname".
This commit is contained in:
Emmanuele Bassi
2009-10-21 16:04:12 +01:00
parent 01bc3fa2c8
commit 7a52fddcd6
3 changed files with 43 additions and 4 deletions

View File

@ -87,6 +87,8 @@ GType clutter_script_get_type_from_class (const gchar *name);
GObject *clutter_script_construct_object (ClutterScript *script,
ObjectInfo *info);
gulong clutter_script_resolve_animation_mode (const gchar *namer);
gboolean clutter_script_enum_from_string (GType gtype,
const gchar *string,
gint *enum_value);