Clutter::Timeline(3) A class for time-based events

HIERARCHY

  Glib::Object
  +----Clutter::Timeline

METHODS

timeline = Clutter::Timeline->new ($duration)

  • $duration (integer)

$timeline->add_marker_at_time ($marker_name, $msecs)

  • $marker_name (string)
  • $msecs (integer)

$timeline->advance ($n_msecs)

  • $n_msecs (integer)

$timeline->advance_to_marker ($marker_name)

  • $marker_name (string)

timeline = Clutter::Timeline->clone ($timeline)

  • $timeline (Clutter::Timeline)

integer = $timeline->get_delay

$timeline->set_delay ($msecs)

  • $msecs (integer)

integer = $timeline->get_delta

timelinedirection = $timeline->get_direction

$timeline->set_direction ($direction)

  • $direction (Clutter::TimelineDirection)

integer = $timeline->get_duration

$timeline->set_duration ($msecs)

  • $msecs (integer)

boolean = $timeline->has_marker ($marker_name)

  • $marker_name (string)

boolean = $timeline->is_playing

markers = $timeline->list_markers ($msecs)

  • $msecs (integer)

Retrieves all the markers at msecs. If msecs is omitted or is a negative number, all the markers of timeline are returned

boolean = $timeline->get_loop

$timeline->set_loop ($loop)

  • $loop (boolean)

$timeline->pause

double = $timeline->get_progress

$timeline->remove_marker ($marker_name)

  • $marker_name (string)

$timeline->rewind

$timeline->skip ($n_msecs)

  • $n_msecs (integer)

$timeline->start

$timeline->stop

PROPERTIES

'delay' (Glib::UInt : readable / writable / private)
Delay before start
'direction' (Clutter::TimelineDirection : readable / writable / private)
Direction of the timeline
'duration' (Glib::UInt : readable / writable / private)
Duration of the timeline in milliseconds
'loop' (boolean : readable / writable / private)
Should the timeline automatically restart

SIGNALS

new-frame (Clutter::Timeline, integer)
completed (Clutter::Timeline)
started (Clutter::Timeline)
paused (Clutter::Timeline)
marker-reached (Clutter::Timeline, string, integer)

ENUMS AND FLAGS

enum Clutter::TimelineDirection

  • 'forward' / 'CLUTTER_TIMELINE_FORWARD'
  • 'backward' / 'CLUTTER_TIMELINE_BACKWARD'

COPYRIGHT

Copyright (C) 2006, 2007, 2008 OpenedHand Ltd

Copyright (C) 2009 Intel Corporation

This module is free software; you can redistribute it and/or modify it under the terms of either:

  • the GNU Lesser General Public Library version 2.1; or
  • the Artistic License, version 2.0.

See Clutter for the full copyright notice.