diff options
author | Emmanuele Bassi <ebassi@openedhand.com> | 2007-11-15 17:03:55 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@openedhand.com> | 2007-11-15 17:03:55 +0000 |
commit | 0d082df3a5054e1c6b71a5065221d0d0d9a7b6d7 (patch) | |
tree | f8c370aeddbfc5fa358c4afa736daaf4a1b56ab6 /clutter/clutter-timeline.h | |
parent | 768d85dcea1bf109aef588f684af7ae2bbb2777f (diff) | |
download | clutter-0d082df3a5054e1c6b71a5065221d0d0d9a7b6d7.tar.gz |
2007-11-15 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-timeline.[ch]: Add ClutterTimeline:direction
property, defining the direction (forward or backward) of the
timeline.
* tests/test-timeline.c: Test the direction property.
* clutter.symbols: Update exported symbols
Diffstat (limited to 'clutter/clutter-timeline.h')
-rw-r--r-- | clutter/clutter-timeline.h | 81 |
1 files changed, 49 insertions, 32 deletions
diff --git a/clutter/clutter-timeline.h b/clutter/clutter-timeline.h index 42fd6e000..0a28dc034 100644 --- a/clutter/clutter-timeline.h +++ b/clutter/clutter-timeline.h @@ -55,6 +55,20 @@ G_BEGIN_DECLS (G_TYPE_INSTANCE_GET_CLASS ((obj), \ CLUTTER_TYPE_TIMELINE, ClutterTimelineClass)) +/** + * ClutterTimelineDirection: + * @CLUTTER_TIMELINE_FORWARD: forward direction for a timeline + * @CLUTTER_TIMELINE_BACKWARD: backward direction for a timeline + * + * The direction of a #ClutterTimeline + * + * Since: 0.6 + */ +typedef enum { + CLUTTER_TIMELINE_FORWARD, + CLUTTER_TIMELINE_BACKWARD +} ClutterTimelineDirection; + typedef struct _ClutterTimeline ClutterTimeline; typedef struct _ClutterTimelineClass ClutterTimelineClass; typedef struct _ClutterTimelinePrivate ClutterTimelinePrivate; @@ -89,38 +103,41 @@ struct _ClutterTimelineClass 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); -void clutter_timeline_start (ClutterTimeline *timeline); -void clutter_timeline_pause (ClutterTimeline *timeline); -void clutter_timeline_stop (ClutterTimeline *timeline); -void clutter_timeline_set_loop (ClutterTimeline *timeline, - gboolean loop); -gboolean clutter_timeline_get_loop (ClutterTimeline *timeline); -void clutter_timeline_rewind (ClutterTimeline *timeline); -void clutter_timeline_skip (ClutterTimeline *timeline, - guint n_frames); -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); -gboolean clutter_timeline_is_playing (ClutterTimeline *timeline); -void clutter_timeline_set_delay (ClutterTimeline *timeline, - guint msecs); -guint clutter_timeline_get_delay (ClutterTimeline *timeline); +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); +ClutterTimelineDirection clutter_timeline_get_direction (ClutterTimeline *timeline); +void clutter_timeline_set_direction (ClutterTimeline *timeline, + ClutterTimelineDirection direction); +void clutter_timeline_start (ClutterTimeline *timeline); +void clutter_timeline_pause (ClutterTimeline *timeline); +void clutter_timeline_stop (ClutterTimeline *timeline); +void clutter_timeline_set_loop (ClutterTimeline *timeline, + gboolean loop); +gboolean clutter_timeline_get_loop (ClutterTimeline *timeline); +void clutter_timeline_rewind (ClutterTimeline *timeline); +void clutter_timeline_skip (ClutterTimeline *timeline, + guint n_frames); +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); +gboolean clutter_timeline_is_playing (ClutterTimeline *timeline); +void clutter_timeline_set_delay (ClutterTimeline *timeline, + guint msecs); +guint clutter_timeline_get_delay (ClutterTimeline *timeline); G_END_DECLS |