[ Version ( since = "0.8" ) ]
public virtual signal void marker_reached (string marker_name, int msecs)
The marker_reached signal is emitted each time a timeline reaches a marker set with 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.
marker_name |
the name of the marker reached |
msecs |
the elapsed time |