GObject.Object
Clutter.Timeline
Import line: | Clutter = imports.gi.Clutter; |
GIR File: | Clutter-1.0.gir |
C documentation: | ClutterTimeline |
Class : | Timeline |
Extends: | GObject.Object |
Properties | Defined By | |
---|---|---|
auto_reverse : gboolean
|
Clutter.Timeline | |
delay : guint32
A delay, in milliseconds, that should be observed by the
timeline before actually starting. A delay, in milliseconds, that should be observed by the
timeline before actually starting. |
Clutter.Timeline | |
direction : Clutter.TimelineDirection
The direction of the timeline, either CLUTTER_TIMELINE_FORWARD or
CLUTTER_TIMELINE_BACKWARD. The direction of the timeline, either CLUTTER_TIMELINE_FORWARD or
CLUTTER_TIMELINE_BACKWARD. |
Clutter.Timeline | |
duration : guint32
Duration of the timeline in milliseconds, depending on the
ClutterTimeline:fps value. Duration of the timeline in milliseconds, depending on the
ClutterTimeline:fps value. |
Clutter.Timeline | |
loop : gboolean
Whether the timeline should automatically rewind and restart.
Whether the timeline should automatically rewind and restart.
|
Clutter.Timeline | |
parent : GObject.Object
read only
|
Clutter.Timeline | |
priv : Clutter.TimelinePrivate
read only
|
Clutter.Timeline |
Method / Constructor | Defined By | |
---|---|---|
new Clutter.Timeline
(Object properties)
Create a new Clutter.Timeline
Create a new Clutter.Timeline
|
||
Create a new Clutter.Timeline
Create a new Clutter.Timeline
|
||
Adds a named marker that will be hit when the timeline has been
running for msecs milliseconds.
Adds a named marker that will be hit when the timeline has been
running for msecs milliseconds. Markers are unique string identifiers for a given time. Once timeline reaches attached to that time. A marker can be removed with clutter_timeline_remove_marker(). The timeline can be advanced to a marker using clutter_timeline_advance_to_marker().
|
Clutter.Timeline | |
advance
(guint32 msecs)
:
none
Advance timeline to the requested point.
Advance timeline to the requested point. The point is given as a
time in milliseconds since the timeline started. signal for the given time. The first ::new-frame signal after the call to clutter_timeline_advance() will be emit the skipped markers.
|
Clutter.Timeline | |
advance_to_marker
(String marker_name)
:
none
Advances timeline to the time of the given marker_name.
Advances timeline to the time of the given marker_name.
emit the ClutterTimeline::new-frame for the time where marker_name is set, nor it will emit ClutterTimeline::marker-reached for
|
Clutter.Timeline | |
clone
()
:
Clutter.Timeline
Create a new ClutterTimeline instance which has property values
matching that of supplied timeline.
Create a new ClutterTimeline instance which has property values
matching that of supplied timeline. The cloned timeline will not be started and will not be positioned to the current position of
|
Clutter.Timeline | |
get_auto_reverse
()
:
gboolean
|
Clutter.Timeline | |
get_delay
()
:
guint32
Retrieves the delay set using clutter_timeline_set_delay().
Retrieves the delay set using clutter_timeline_set_delay().
|
Clutter.Timeline | |
get_delta
()
:
guint32
Retrieves the amount of time elapsed since the last
ClutterTimeline::new-frame signal.
Retrieves the amount of time elapsed since the last
ClutterTimeline::new-frame signal. This function is only useful inside handlers for the ::new-frame signal, and its behaviour is undefined if the timeline is not playing. last frame
|
Clutter.Timeline | |
get_direction
()
:
Clutter.TimelineDirection
Retrieves the direction of the timeline set with
clutter_timeline_set_direction().
Retrieves the direction of the timeline set with
clutter_timeline_set_direction().
|
Clutter.Timeline | |
get_duration
()
:
guint32
Retrieves the duration of a ClutterTimeline in milliseconds.
Retrieves the duration of a ClutterTimeline in milliseconds.
See clutter_timeline_set_duration().
|
Clutter.Timeline | |
get_elapsed_time
()
:
guint32
Request the current time position of the timeline.
Request the current time position of the timeline.
|
Clutter.Timeline | |
get_loop
()
:
gboolean
Gets whether timeline is looping
Gets whether timeline is looping
|
Clutter.Timeline | |
get_progress
()
:
gdouble
The position of the timeline in a [0, 1] interval.
The position of the timeline in a [0, 1] interval.
|
Clutter.Timeline | |
Clutter.Timeline | ||
is_playing
()
:
gboolean
Queries state of a ClutterTimeline.
Queries state of a ClutterTimeline.
|
Clutter.Timeline | |
Retrieves the list of markers at time msecs.
Retrieves the list of markers at time msecs. If frame_num is a
negative integer, all the markers attached to timeline will be returned. allocated, NULL terminated string array containing the names of the markers. Use g_strfreev() when done.
|
Clutter.Timeline | |
pause
()
:
none
Pauses the ClutterTimeline on current frame
Pauses the ClutterTimeline on current frame
|
Clutter.Timeline | |
remove_marker
(String marker_name)
:
none
Removes marker_name, if found, from timeline.
Removes marker_name, if found, from timeline.
|
Clutter.Timeline | |
rewind
()
:
none
Rewinds ClutterTimeline to the first frame if its direction is
CLUTTER_TIMELINE_FORWARD and the last frame if it is CLUTTER_TIMELINE_BACKWARD.
Rewinds ClutterTimeline to the first frame if its direction is
CLUTTER_TIMELINE_FORWARD and the last frame if it is CLUTTER_TIMELINE_BACKWARD.
|
Clutter.Timeline | |
set_auto_reverse
(gboolean reverse)
:
none
|
Clutter.Timeline | |
set_delay
(guint32 msecs)
:
none
Sets the delay, in milliseconds, before timeline should start.
Sets the delay, in milliseconds, before timeline should start.
|
Clutter.Timeline | |
set_direction
(TimelineDirection direction)
:
none
Sets the direction of timeline, either CLUTTER_TIMELINE_FORWARD or
CLUTTER_TIMELINE_BACKWARD.
Sets the direction of timeline, either CLUTTER_TIMELINE_FORWARD or
CLUTTER_TIMELINE_BACKWARD.
|
Clutter.Timeline | |
set_duration
(guint32 msecs)
:
none
Sets the duration of the timeline, in milliseconds.
Sets the duration of the timeline, in milliseconds. The speed
of the timeline depends on the ClutterTimeline:fps setting.
|
Clutter.Timeline | |
set_loop
(gboolean loop)
:
none
Sets whether timeline should loop.
Sets whether timeline should loop.
|
Clutter.Timeline | |
skip
(guint32 msecs)
:
none
Advance timeline by the requested time in milliseconds
Advance timeline by the requested time in milliseconds
|
Clutter.Timeline | |
start
()
:
none
Starts the ClutterTimeline playing.
Starts the ClutterTimeline playing.
|
Clutter.Timeline | |
stop
()
:
none
Stops the ClutterTimeline and moves to frame 0
Stops the ClutterTimeline and moves to frame 0
|
Clutter.Timeline |
Event | Defined By | |
---|---|---|
completed (Timeline self)
:
none
The ::completed signal is emitted when the timeline reaches the
number of frames specified by the ClutterTimeline:num-frames property.
The ::completed signal is emitted when the timeline reaches the
number of frames specified by the ClutterTimeline:num-frames property.
|
Clutter.Timeline | |
The ::marker-reached signal is emitted each time a timeline
reaches a marker set with clutter_timeline_add_marker_at_time().
The ::marker-reached signal is emitted each time a timeline
reaches a marker set with clutter_timeline_add_marker_at_time(). This signal is detailed with the name of the marker as well, so it is possible to connect a callback to the ::marker-reached signal for a specific marker with: clutter_timeline_add_marker_at_time (timeline, "foo", 500); clutter_timeline_add_marker_at_time (timeline, "bar", 750); g_signal_connect (timeline, "marker-reached", G_CALLBACK (each_marker_reached), NULL); g_signal_connect (timeline, "marker-reached::foo", G_CALLBACK (foo_marker_reached), NULL); g_signal_connect (timeline, "marker-reached::bar", G_CALLBACK (bar_marker_reached), NULL); In the example, the first callback will be invoked for both the "foo" and "bar" marker, while the second and third callbacks will be invoked for the "foo" or "bar" markers, respectively.
|
Clutter.Timeline | |
The ::new-frame signal is emitted for each timeline running
timeline before a new frame is drawn to give animations a chance to update the scene.
The ::new-frame signal is emitted for each timeline running
timeline before a new frame is drawn to give animations a chance to update the scene.
|
Clutter.Timeline | |
paused (Timeline self)
:
none
The ::paused signal is emitted when clutter_timeline_pause() is invoked.
The ::paused signal is emitted when clutter_timeline_pause() is invoked.
|
Clutter.Timeline | |
started (Timeline self)
:
none
The ::started signal is emitted when the timeline starts its run.
The ::started 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.
|
Clutter.Timeline |
Class / Namespace | Method / Signal / Properties |
---|---|
Clutter.Actor
Method |
animate_with_timelinev
(guint32 mode, Timeline timeline, gint32 n_properties, Array properties, Array values)
:
Clutter.Animation
Animates the given list of properties of actor between the current
value for each property and a new final value. |
Clutter.Alpha
Property |
timeline : Clutter.Timeline
A ClutterTimeline instance used to drive the alpha function.
|
Clutter.Alpha
Method |
Create a new Clutter.Alpha
|
Clutter.Alpha
Method |
new Clutter.Alpha.with_func
(Timeline timeline, Function func, void* data, Function destroy)
:
Clutter.Alpha
Create a new Clutter.Alpha
|
Clutter.Alpha
Method |
get_timeline
()
:
Clutter.Timeline
Gets the ClutterTimeline bound to alpha.
|
Clutter.Alpha
Method |
set_timeline
(Timeline timeline)
:
none
Binds alpha to timeline.
|
Clutter.Animation
Property |
timeline : Clutter.Timeline
The ClutterTimeline used by the animation.
|
Clutter.Animation
Method |
get_timeline
()
:
Clutter.Timeline
Retrieves the ClutterTimeline used by animation
|
Clutter.Animation
Method |
set_timeline
(Timeline timeline)
:
none
Sets the ClutterTimeline used by animation.
|
Clutter.Animator
Property |
timeline : Clutter.Timeline
The ClutterTimeline used by the ClutterAnimator to drive the
animation |
Clutter.Animator
Method |
get_timeline
()
:
Clutter.Timeline
Get the timeline hooked up for driving the ClutterAnimator
|
Clutter.Animator
Method |
set_timeline
(Timeline timeline)
:
none
Sets an external timeline that will be used for driving the animation
|
Clutter.Animator
Method |
start
()
:
Clutter.Timeline
Start the ClutterAnimator, this is a thin wrapper that rewinds
and starts the animators current timeline. |
Clutter.Score
Signal |
The ::timeline-completed signal is emitted each time a timeline
inside a ClutterScore terminates. |
Clutter.Score
Signal |
The ::timeline-started signal is emitted each time a new timeline
inside a ClutterScore starts playing. |
Clutter.Score
Method |
Appends a timeline to another one existing in the score; the newly
appended timeline will be started when parent is complete. |
Clutter.Score
Method |
Appends timeline at the given marker_name on the parent
ClutterTimeline. |
Clutter.Score
Method |
get_timeline
(guint32 id_)
:
Clutter.Timeline
Retrieves the ClutterTimeline for id inside score.
|
Clutter.State
Method |
get_timeline
()
:
Clutter.Timeline
Gets the timeline driving the ClutterState
the state change animations. |
Clutter.State
Method |
set_state
(String target_state_name)
:
Clutter.Timeline
Change the current state of ClutterState to target_state_name
The state will animate during its transition, see clutter_state_warp_to_state for animation-free state switching. |
Clutter.State
Method |
warp_to_state
(String target_state_name)
:
Clutter.Timeline
Change the current state of ClutterState to target_state_name
Change to the specified target state immediately with no animation. |