summaryrefslogtreecommitdiff
path: root/clutter/clutter-timeline.h
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@openedhand.com>2007-10-16 13:41:34 +0000
committerEmmanuele Bassi <ebassi@openedhand.com>2007-10-16 13:41:34 +0000
commitf6c83a224ea2f0e85a60daaa1d0b4893657aad50 (patch)
treef93540bacca94336392004c2d5f6ed4a297c3e67 /clutter/clutter-timeline.h
parent05789582b4517c36e223d8e5f7d14b8f76952d8c (diff)
downloadclutter-f6c83a224ea2f0e85a60daaa1d0b4893657aad50.tar.gz
2007-10-16 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-timeline.[ch]: Added ClutterTimeline:duration, a property for setting the duration of a timeline in milliseconds. The property comes with accessors and a new constructor. The frame rate used is the default value. * clutter/clutter-private.h: * clutter/clutter-main.[ch]: Add clutter_get_default_frame_rate() and clutter_set_default_frame_rate(); these two functions control the default frame rate to be used when creating timelines. Currently is set to 60 frames-per-second.
Diffstat (limited to 'clutter/clutter-timeline.h')
-rw-r--r--clutter/clutter-timeline.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/clutter/clutter-timeline.h b/clutter/clutter-timeline.h
index 2932a9d70..42fd6e000 100644
--- a/clutter/clutter-timeline.h
+++ b/clutter/clutter-timeline.h
@@ -29,6 +29,7 @@
/* clutter-timeline.h */
#include <glib-object.h>
+#include <clutter/clutter-fixed.h>
G_BEGIN_DECLS
@@ -90,8 +91,12 @@ GType clutter_timeline_get_type (void) G_GNUC_CONST;
ClutterTimeline *clutter_timeline_new (guint n_frames,
guint fps);
+ClutterTimeline *clutter_timeline_new_for_duration (guint msecs);
ClutterTimeline *clutter_timeline_clone (ClutterTimeline *timeline);
+guint clutter_timeline_get_duration (ClutterTimeline *timeline);
+void clutter_timeline_set_duration (ClutterTimeline *timeline,
+ guint msecs);
guint clutter_timeline_get_speed (ClutterTimeline *timeline);
void clutter_timeline_set_speed (ClutterTimeline *timeline,
guint fps);
@@ -107,6 +112,8 @@ void clutter_timeline_skip (ClutterTimeline *timeline,
void clutter_timeline_advance (ClutterTimeline *timeline,
guint frame_num);
gint clutter_timeline_get_current_frame (ClutterTimeline *timeline);
+gdouble clutter_timeline_get_progress (ClutterTimeline *timeline);
+ClutterFixed clutter_timeline_get_progressx (ClutterTimeline *timeline);
void clutter_timeline_set_n_frames (ClutterTimeline *timeline,
guint n_frames);
guint clutter_timeline_get_n_frames (ClutterTimeline *timeline);