Clutter.Transition
Description: Reference for Clutter.Transition

### Class

# ClutterTransition

#### Description [src]

    abstract class Clutter.Transition : Clutter.Timeline
    {
      /* No available fields */
    }

Transition between two values

`ClutterTransition` is an abstract subclass of `ClutterTimeline` that computes the interpolation between two values, stored by a `ClutterInterval`.

#### Ancestors

- ClutterTimeline
- GObject

#### Descendants

- ClutterPropertyTransition
- ClutterTransitionGroup

#### Instance methods

###### clutter_transition_get_animatable

Retrieves the `ClutterAnimatable` set using `clutter_transition_set_animatable()`.

###### clutter_transition_get_interval

Retrieves the interval set using `clutter_transition_set_interval()`.

###### clutter_transition_get_remove_on_complete

Retrieves the value of the `ClutterTransition:remove-on-complete` property.

###### clutter_transition_set_animatable

Sets the `ClutterTransition:animatable` property.

###### clutter_transition_set_from

Sets the initial value of the transition.

###### clutter_transition_set_from_value

Sets the initial value of the transition.

###### clutter_transition_set_interval

Sets the `ClutterTransition:interval` property using `interval`.

###### clutter_transition_set_remove_on_complete

Sets whether `transition` should be detached from the `ClutterAnimatable` set using `clutter_transition_set_animatable()` when the `ClutterTimeline::completed` signal is emitted.

###### clutter_transition_set_to

Sets the final value of the transition.

###### clutter_transition_set_to_value

Sets the final value of the transition.

##### Methods inherited from ClutterTimeline (39)

Please see ClutterTimeline for a full list of methods.

##### Methods inherited from GObject (43)

Please see GObject for a full list of methods.

#### Properties

###### Clutter.Transition:animatable

The `ClutterAnimatable` instance currently being animated.

###### Clutter.Transition:interval

The `ClutterInterval` used to describe the initial and final states of the transition.

###### Clutter.Transition:remove-on-complete

Whether the `ClutterTransition` should be automatically detached from the `ClutterTransition:animatable` instance whenever the `ClutterTimeline::stopped` signal is emitted.

##### Properties inherited from ClutterTimeline (8)

###### Clutter.Timeline:actor

No description available.

###### Clutter.Timeline:auto-reverse

If the direction of the timeline should be automatically reversed when reaching the end.

###### Clutter.Timeline:delay

A delay, in milliseconds, that should be observed by the timeline before actually starting.

###### Clutter.Timeline:direction

The direction of the timeline, either `CLUTTER_TIMELINE_FORWARD` or `CLUTTER_TIMELINE_BACKWARD`.

###### Clutter.Timeline:duration

Duration of the timeline in milliseconds, depending on the `ClutterTimeline:frame-clock` value.

###### Clutter.Timeline:frame-clock

The frame clock driving the timeline.

###### Clutter.Timeline:progress-mode

Controls the way a `ClutterTimeline` computes the normalized progress.

###### Clutter.Timeline:repeat-count

Defines how many times the timeline should repeat.

#### Signals

##### Signals inherited from ClutterTimeline (6)

###### ClutterTimeline::completed

The signal is emitted when the timeline’s elapsed time reaches the value of the `ClutterTimeline:duration` property.

###### ClutterTimeline::marker-reached

The signal is emitted each time a timeline reaches a marker set with `clutter_timeline_add_marker_at_time()`.

###### ClutterTimeline::new-frame

The signal is emitted for each timeline running timeline before a new frame is drawn to give animations a chance to update the scene.

###### ClutterTimeline::paused

The signal is emitted when `clutter_timeline_pause()` is invoked.

###### ClutterTimeline::started

The signal is emitted when the timeline starts its run. This might be as soon as `clutter_timeline_start()` is invoked or after the delay set in the `ClutterTimeline:delay` property has expired.

###### ClutterTimeline::stopped

The signal is emitted when the timeline has been stopped, either because `clutter_timeline_stop()` has been called, or because it has been exhausted.

##### Signals inherited from GObject (1)

###### GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

#### Class structure

    struct ClutterTransitionClass {
      void (* attached) (
        ClutterTransition* transition,
        ClutterAnimatable* animatable
      );
      void (* detached) (
        ClutterTransition* transition,
        ClutterAnimatable* animatable
      );
      void (* compute_value) (
        ClutterTransition* transition,
        ClutterAnimatable* animatable,
        ClutterInterval* interval,
        gdouble progress
      );

    }

The `ClutterTransitionClass` structure contains private data.

###### Class members

`attached: void (* attached) ( ClutterTransition* transition, ClutterAnimatable* animatable )`

  Virtual function; called when a transition is attached to a `ClutterAnimatable` instance.

`detached: void (* detached) ( ClutterTransition* transition, ClutterAnimatable* animatable )`

  Virtual function; called when a transition is detached from a `ClutterAnimatable` instance.

`compute_value: void (* compute_value) ( ClutterTransition* transition, ClutterAnimatable* animatable, ClutterInterval* interval, gdouble progress )`

  Virtual function; called each frame to compute and apply the interpolation of the interval.

#### Virtual methods

###### Clutter.TransitionClass.attached

Virtual function; called when a transition is attached to a `ClutterAnimatable` instance.

###### Clutter.TransitionClass.compute_value

Virtual function; called each frame to compute and apply the interpolation of the interval.

###### Clutter.TransitionClass.detached

Virtual function; called when a transition is detached from a `ClutterAnimatable` instance.