---
name: "Clutter::Timeline"
section: "3pm"
platform: "linux"
package: "libclutter-perl"
version: "1.002-1"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/Clutter::Timeline"
---

# Clutter::Timeline(3pm)

A class for time-based events

## NAME

Clutter::Timeline - 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'

## SEE ALSO

Clutter, Glib::Object

## 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.
