Clutter.Score¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
|
|
|
|
|
|
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
Whether the score should restart once finished |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
The |
|
The |
|
The |
|
The |
|
The |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class Clutter.Score(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
Clutter.Score
structure contains only private data and should be accessed using the provided APINew in version 0.6.
- classmethod new()¶
- Returns:
the newly created
Clutter.Score
. UseGObject.Object.unref
() when done.- Return type:
Creates a new
Clutter.Score
. AClutter.Score
is an object that can hold multipleClutter.Timeline
s in a sequential order.New in version 0.6.
Deprecated since version 1.8.
- append(parent, timeline)¶
- Parameters:
parent (
Clutter.Timeline
orNone
) – aClutter.Timeline
in the score, orNone
timeline (
Clutter.Timeline
) – aClutter.Timeline
- Returns:
the id of the
Clutter.Timeline
inside the score, or 0 on failure. The returned id can be used withClutter.Score.remove
() orClutter.Score.get_timeline
().- Return type:
Appends a timeline to another one existing in the score; the newly appended timeline will be started when parent is complete.
If parent is
None
, the newClutter.Timeline
will be started whenClutter.Score.start
() is called.Clutter.Score
will take a reference on timeline.New in version 0.6.
Deprecated since version 1.8.
- append_at_marker(parent, marker_name, timeline)¶
- Parameters:
parent (
Clutter.Timeline
) – the parentClutter.Timeline
marker_name (
str
) – the name of the marker to usetimeline (
Clutter.Timeline
) – theClutter.Timeline
to append
- Returns:
the id of the
Clutter.Timeline
inside the score, or 0 on failure. The returned id can be used withClutter.Score.remove
() orClutter.Score.get_timeline
().- Return type:
Appends timeline at the given marker_name on the parent
Clutter.Timeline
.If you want to append timeline at the end of parent, use
Clutter.Score.append
().The
Clutter.Score
will take a reference on timeline.New in version 0.8.
Deprecated since version 1.8.
- get_loop()¶
-
Gets whether self is looping
New in version 0.6.
Deprecated since version 1.8.
- get_timeline(id_)¶
- Parameters:
id (
int
) – the id of the timeline- Returns:
the requested timeline, or
None
. This function does not increase the reference count on the returnedClutter.Timeline
- Return type:
Retrieves the
Clutter.Timeline
for id_ inside self.New in version 0.6.
Deprecated since version 1.8.
- is_playing()¶
-
Query state of a
Clutter.Score
instance.New in version 0.6.
Deprecated since version 1.8.
- list_timelines()¶
- Returns:
a
GLib.SList
containing all the timelines in the score. This function does not increase the reference count of the returned timelines. Use g_slist_free() on the returned list to deallocate its resources.- Return type:
Retrieves a list of all the
Clutter.Timelines
managed by self.New in version 0.6.
Deprecated since version 1.8.
- pause()¶
Pauses a playing score self.
New in version 0.6.
Deprecated since version 1.8.
- remove(id_)¶
- Parameters:
id (
int
) – the id of the timeline to remove
Removes the
Clutter.Timeline
with the given id inside self. If the timeline has other timelines attached to it, those are removed as well.New in version 0.6.
Deprecated since version 1.8.
- remove_all()¶
Removes all the timelines inside self.
New in version 0.6.
Deprecated since version 1.8.
- rewind()¶
Rewinds a
Clutter.Score
to its initial state.New in version 0.6.
Deprecated since version 1.8.
- set_loop(loop)¶
-
Sets whether self should loop. A looping
Clutter.Score
will start from its initial state after the::complete
signal has been fired.New in version 0.6.
Deprecated since version 1.8.
- start()¶
Starts the score.
New in version 0.6.
Deprecated since version 1.8.
- stop()¶
Stops and rewinds a playing
Clutter.Score
instance.New in version 0.6.
Deprecated since version 1.8.
- do_completed() virtual¶
- do_paused() virtual¶
- do_started() virtual¶
- do_timeline_completed(timeline) virtual¶
- Parameters:
timeline (
Clutter.Timeline
) –
- do_timeline_started(timeline) virtual¶
- Parameters:
timeline (
Clutter.Timeline
) –
Signal Details¶
- Clutter.Score.signals.completed(score)¶
- Signal Name:
completed
- Flags:
- Parameters:
score (
Clutter.Score
) – The object which received the signal
The
::completed
signal is emitted each time aClutter.Score
terminates.New in version 0.6.
Deprecated since version 1.8.
- Clutter.Score.signals.paused(score)¶
- Signal Name:
paused
- Flags:
- Parameters:
score (
Clutter.Score
) – The object which received the signal
The
::paused
signal is emitted each time aClutter.Score
is paused.New in version 0.6.
Deprecated since version 1.8.
- Clutter.Score.signals.started(score)¶
- Signal Name:
started
- Flags:
- Parameters:
score (
Clutter.Score
) – The object which received the signal
The
::started
signal is emitted each time aClutter.Score
starts playing.New in version 0.6.
Deprecated since version 1.8.
- Clutter.Score.signals.timeline_completed(score, timeline)¶
- Signal Name:
timeline-completed
- Flags:
- Parameters:
score (
Clutter.Score
) – The object which received the signaltimeline (
Clutter.Timeline
) – the completed timeline
The
::timeline-completed
signal is emitted each time a timeline inside aClutter.Score
terminates.New in version 0.6.
Deprecated since version 1.8.
- Clutter.Score.signals.timeline_started(score, timeline)¶
- Signal Name:
timeline-started
- Flags:
- Parameters:
score (
Clutter.Score
) – The object which received the signaltimeline (
Clutter.Timeline
) – the current timeline
The
::timeline-started
signal is emitted each time a new timeline inside aClutter.Score
starts playing.New in version 0.6.
Deprecated since version 1.8.