Clapper.Timeline¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/en |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Clapper.Timeline(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A media timeline filled with point markers.
- get_marker(index)¶
- Parameters:
index (
int
) – a marker index- Returns:
The
Clapper.Marker
at index.- Return type:
Get the
Clapper.Marker
at index.This behaves the same as [method`Gio`.ListModel.get_item], and is here for code uniformity and convenience to avoid type casting by user.
- get_n_markers()¶
- Returns:
The number of markers in
Clapper.Timeline
.- Return type:
Get the number of markers in
Clapper.Timeline
.This behaves the same as [method`Gio`.ListModel.get_n_items], and is here for code uniformity and convenience to avoid type casting by user.
- insert_marker(marker)¶
- Parameters:
marker (
Clapper.Marker
) – aClapper.Marker
- Returns:
True
if inserted,False
if marker was already inserted into timeline.- Return type:
Insert the
Clapper.Marker
into self.
- remove_marker(marker)¶
- Parameters:
marker (
Clapper.Marker
) – aClapper.Marker
Removes
Clapper.Marker
from the timeline.If marker was not in the self, this function will do nothing, so it is safe to call if unsure.
Property Details¶
- Clapper.Timeline.props.n_markers¶
- Name:
n-markers
- Type:
- Default Value:
0
- Flags:
Number of markers in the timeline.