Class: Clutter::Timeline
- Inherits:
-
Object
- Object
- Clutter::Timeline
- Defined in:
- (unknown)
Overview
The Clutter::TimelineClass structure contains only private data
Direct Known Subclasses
Instance Method Summary collapse
-
#add_marker(marker_name, progress) ⇒ nil
Adds a named marker that will be hit when the timeline has reached the specified progress.
-
#add_marker_at_time(marker_name, msecs) ⇒ nil
Adds a named marker that will be hit when the timeline has been running for msecs milliseconds.
-
#advance(msecs) ⇒ nil
Advance timeline to the requested point.
-
#advance_to_marker(marker_name) ⇒ nil
Advances timeline to the time of the given marker_name.
-
#auto_reverse ⇒ Boolean
Retrieves the value set by clutter_timeline_set_auto_reverse().
-
#auto_reverse=(auto_reverse) ⇒ Boolean
If the direction of the timeline should be automatically reversed when reaching the end.
-
#auto_reverse? ⇒ Boolean
If the direction of the timeline should be automatically reversed when reaching the end.
-
#clone ⇒ Clutter::Timeline
Create a new Clutter::Timeline instance which has property values matching that of supplied timeline.
-
#current_repeat ⇒ Integer
Retrieves the current repeat for a timeline.
-
#delay ⇒ Integer
A delay, in milliseconds, that should be observed by the timeline before actually starting.
-
#delay=(delay) ⇒ Integer
A delay, in milliseconds, that should be observed by the timeline before actually starting.
-
#delta ⇒ Integer
Retrieves the amount of time elapsed since the last ClutterTimeline::new-frame signal.
-
#direction ⇒ Clutter::TimelineDirection
The direction of the timeline, either %CLUTTER_TIMELINE_FORWARD or %CLUTTER_TIMELINE_BACKWARD.
-
#direction=(direction) ⇒ Clutter::TimelineDirection
The direction of the timeline, either %CLUTTER_TIMELINE_FORWARD or %CLUTTER_TIMELINE_BACKWARD.
-
#duration ⇒ Integer
Duration of the timeline in milliseconds, depending on the ClutterTimeline:fps value.
-
#duration=(duration) ⇒ Integer
Duration of the timeline in milliseconds, depending on the ClutterTimeline:fps value.
-
#duration_hint ⇒ Integer
Retrieves the full duration of the timeline, taking into account the current value of the Clutter::Timeline:repeat-count property.
-
#elapsed_time ⇒ Integer
Request the current time position of the timeline.
-
#get_cubic_bezier_progress(c_1, c_2) ⇒ Boolean
Retrieves the control points for the cubic bezier progress mode.
-
#get_step_progress(n_steps, step_mode) ⇒ Boolean
Retrieves the parameters of the step progress mode used by timeline.
-
#has_marker(marker_name) ⇒ Boolean
Checks whether timeline has a marker set with the given name.
-
#initialize(msecs) ⇒ Clutter::Timeline
constructor
Creates a new Clutter::Timeline with a duration of msecs.
-
#is_playing ⇒ Boolean
Queries state of a Clutter::Timeline.
-
#list_markers(msecs, n_markers) ⇒ Array<String>
Retrieves the list of markers at time msecs.
-
#loop ⇒ Boolean
Gets whether timeline is looping.
-
#loop=(loop) ⇒ Boolean
Whether the timeline should automatically rewind and restart.
-
#loop? ⇒ Boolean
Whether the timeline should automatically rewind and restart.
-
#pause ⇒ nil
Pauses the Clutter::Timeline on current frame.
-
#progress ⇒ Float
The position of the timeline in a normalized [-1, 2] interval.
-
#progress_mode ⇒ Clutter::AnimationMode
Controls the way a Clutter::Timeline computes the normalized progress.
-
#progress_mode=(progress_mode) ⇒ Clutter::AnimationMode
Controls the way a Clutter::Timeline computes the normalized progress.
-
#remove_marker(marker_name) ⇒ nil
Removes marker_name, if found, from timeline.
-
#repeat_count ⇒ Integer
Defines how many times the timeline should repeat.
-
#repeat_count=(repeat_count) ⇒ Integer
Defines how many times the timeline should repeat.
-
#rewind ⇒ nil
Rewinds Clutter::Timeline to the first frame if its direction is %CLUTTER_TIMELINE_FORWARD and the last frame if it is %CLUTTER_TIMELINE_BACKWARD.
-
#set_cubic_bezier_progress(c_1, c_2) ⇒ nil
Sets the Clutter::Timeline:progress-mode of timeline to %CLUTTER_CUBIC_BEZIER, and sets the two control points for the cubic bezier.
-
#set_progress_func(func, data, notify) ⇒ nil
Sets a custom progress function for timeline.
-
#set_step_progress(n_steps, step_mode) ⇒ nil
Sets the Clutter::Timeline:progress-mode of the timeline to %CLUTTER_STEPS and provides the parameters of the step function.
-
#skip(msecs) ⇒ nil
Advance timeline by the requested time in milliseconds.
-
#start ⇒ nil
Starts the Clutter::Timeline playing.
-
#stop ⇒ nil
Stops the Clutter::Timeline and moves to frame 0.
Constructor Details
#initialize(msecs) ⇒ Clutter::Timeline
Creates a new Clutter::Timeline with a duration of msecs.
Instance Method Details
#add_marker(marker_name, progress) ⇒ nil
Adds a named marker that will be hit when the timeline has reached the specified progress.
Markers are unique string identifiers for a given position on the timeline. Once timeline reaches the given progress of its duration, if will emit a ::marker-reached signal for each marker attached to that particular point.
A marker can be removed with clutter_timeline_remove_marker(). The timeline can be advanced to a marker using clutter_timeline_advance_to_marker().
See also: clutter_timeline_add_marker_at_time()
#add_marker_at_time(marker_name, msecs) ⇒ nil
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 position on the timeline. Once timeline reaches the given msecs, it will emit a ::marker-reached signal for each marker attached to that position.
A marker can be removed with clutter_timeline_remove_marker(). The timeline can be advanced to a marker using clutter_timeline_advance_to_marker().
See also: clutter_timeline_add_marker()
#advance(msecs) ⇒ nil
Advance timeline to the requested point. The point is given as a time in milliseconds since the timeline started.
The timeline will not emit the Clutter::Timeline::new-frame signal for the given time. The first ::new-frame signal after the call to clutter_timeline_advance() will be emit the skipped markers.
#advance_to_marker(marker_name) ⇒ nil
Advances timeline to the time of the given marker_name.
Like clutter_timeline_advance(), this function will not emit the Clutter::Timeline::new-frame for the time where marker_name is set, nor it will emit Clutter::Timeline::marker-reached for marker_name.
#auto_reverse ⇒ Boolean
Retrieves the value set by clutter_timeline_set_auto_reverse().
#auto_reverse=(auto_reverse) ⇒ Boolean
If the direction of the timeline should be automatically reversed when reaching the end.
#auto_reverse? ⇒ Boolean
If the direction of the timeline should be automatically reversed when reaching the end.
#clone ⇒ Clutter::Timeline
Create a new Clutter::Timeline 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 the original timeline: you will have to start it with clutter_timeline_start().
The only cloned properties are:
- Clutter::Timeline:duration
- Clutter::Timeline:loop
- Clutter::Timeline:delay
- Clutter::Timeline:direction
#current_repeat ⇒ Integer
Retrieves the current repeat for a timeline.
Repeats start at 0.
#delay ⇒ Integer
A delay, in milliseconds, that should be observed by the timeline before actually starting.
#delay=(delay) ⇒ Integer
A delay, in milliseconds, that should be observed by the timeline before actually starting.
#delta ⇒ Integer
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
#direction ⇒ Clutter::TimelineDirection
The direction of the timeline, either %CLUTTER_TIMELINE_FORWARD or %CLUTTER_TIMELINE_BACKWARD.
#direction=(direction) ⇒ Clutter::TimelineDirection
The direction of the timeline, either %CLUTTER_TIMELINE_FORWARD or %CLUTTER_TIMELINE_BACKWARD.
#duration ⇒ Integer
Duration of the timeline in milliseconds, depending on the ClutterTimeline:fps value.
#duration=(duration) ⇒ Integer
Duration of the timeline in milliseconds, depending on the ClutterTimeline:fps value.
#duration_hint ⇒ Integer
Retrieves the full duration of the timeline, taking into account the current value of the Clutter::Timeline:repeat-count property.
If the Clutter::Timeline:repeat-count property is set to -1, this function will return %G_MAXINT64.
The returned value is to be considered a hint, and it's only valid as long as the timeline hasn't been changed.
#elapsed_time ⇒ Integer
Request the current time position of the timeline.
#get_cubic_bezier_progress(c_1, c_2) ⇒ Boolean
Retrieves the control points for the cubic bezier progress mode.
#get_step_progress(n_steps, step_mode) ⇒ Boolean
Retrieves the parameters of the step progress mode used by timeline.
#has_marker(marker_name) ⇒ Boolean
Checks whether timeline has a marker set with the given name.
#is_playing ⇒ Boolean
Queries state of a Clutter::Timeline.
#list_markers(msecs, n_markers) ⇒ Array<String>
Retrieves the list of markers at time msecs. If msecs is a negative integer, all the markers attached to timeline will be returned.
#loop ⇒ Boolean
Gets whether timeline is looping
#loop=(loop) ⇒ Boolean
Whether the timeline should automatically rewind and restart.
As a side effect, setting this property to true will set the Clutter::Timeline:repeat-count property to -1, while setting this property to false will set the Clutter::Timeline:repeat-count property to 0.
#loop? ⇒ Boolean
Whether the timeline should automatically rewind and restart.
As a side effect, setting this property to true will set the Clutter::Timeline:repeat-count property to -1, while setting this property to false will set the Clutter::Timeline:repeat-count property to 0.
#pause ⇒ nil
Pauses the Clutter::Timeline on current frame
#progress ⇒ Float
The position of the timeline in a normalized [-1, 2] interval.
The return value of this function is determined by the progress mode set using clutter_timeline_set_progress_mode(), or by the progress function set using clutter_timeline_set_progress_func().
#progress_mode ⇒ Clutter::AnimationMode
Controls the way a Clutter::Timeline computes the normalized progress.
#progress_mode=(progress_mode) ⇒ Clutter::AnimationMode
Controls the way a Clutter::Timeline computes the normalized progress.
#remove_marker(marker_name) ⇒ nil
Removes marker_name, if found, from timeline.
#repeat_count ⇒ Integer
Defines how many times the timeline should repeat.
If the repeat count is 0, the timeline does not repeat.
If the repeat count is set to -1, the timeline will repeat until it is stopped.
#repeat_count=(repeat_count) ⇒ Integer
Defines how many times the timeline should repeat.
If the repeat count is 0, the timeline does not repeat.
If the repeat count is set to -1, the timeline will repeat until it is stopped.
#rewind ⇒ nil
Rewinds Clutter::Timeline to the first frame if its direction is %CLUTTER_TIMELINE_FORWARD and the last frame if it is %CLUTTER_TIMELINE_BACKWARD.
#set_cubic_bezier_progress(c_1, c_2) ⇒ nil
Sets the Clutter::Timeline:progress-mode of timeline to %CLUTTER_CUBIC_BEZIER, and sets the two control points for the cubic bezier.
The cubic bezier curve is between (0, 0) and (1, 1). The X coordinate of the two control points must be in the [ 0, 1 ] range, while the Y coordinate of the two control points can exceed this range.
#set_progress_func(func, data, notify) ⇒ nil
Sets a custom progress function for timeline. The progress function will be called by clutter_timeline_get_progress() and will be used to compute the progress value based on the elapsed time and the total duration of the timeline.
If func is not nil, the Clutter::Timeline:progress-mode property will be set to %CLUTTER_CUSTOM_MODE.
If func is nil, any previously set progress function will be unset, and the Clutter::Timeline:progress-mode property will be set to %CLUTTER_LINEAR.
#set_step_progress(n_steps, step_mode) ⇒ nil
Sets the Clutter::Timeline:progress-mode of the timeline to %CLUTTER_STEPS and provides the parameters of the step function.
#skip(msecs) ⇒ nil
Advance timeline by the requested time in milliseconds
#start ⇒ nil
Starts the Clutter::Timeline playing.
#stop ⇒ nil
Stops the Clutter::Timeline and moves to frame 0