Clapper.Timeline

g Clapper.Timeline Clapper.Timeline GObject.GInterface GObject.GInterface Gio.ListModel Gio.ListModel GObject.GInterface->Gio.ListModel GObject.InitiallyUnowned GObject.InitiallyUnowned Gst.Object Gst.Object GObject.InitiallyUnowned->Gst.Object GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gio.ListModel->Clapper.Timeline Gst.Object->Clapper.Timeline

Subclasses:

None

Methods

Inherited:

Gst.Object (27), GObject.Object (37), Gio.ListModel (4)

Structs:

GObject.ObjectClass (5)

get_marker (index)

get_n_markers ()

insert_marker (marker)

remove_marker (marker)

Virtual Methods

Inherited:

Gst.Object (1), GObject.Object (7), Gio.ListModel (3)

Properties

Inherited:

Gst.Object (2)

Name

Type

Flags

Short Description

n-markers

int

r/en

Signals

Inherited:

Gst.Object (1), GObject.Object (1), Gio.ListModel (1)

Fields

Inherited:

Gst.Object (1), GObject.Object (1), Gio.ListModel (1)

Class Details

class Clapper.Timeline(**kwargs)
Bases:

Gst.Object, Gio.ListModel

Abstract:

No

Structure:

Clapper.TimelineClass

A media timeline filled with point markers.

get_marker(index)
Parameters:

index (int) – a marker index

Returns:

The Clapper.Marker at index.

Return type:

Clapper.Marker or None

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:

int

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) – a Clapper.Marker

Returns:

True if inserted, False if marker was already inserted into timeline.

Return type:

bool

Insert the Clapper.Marker into self.

remove_marker(marker)
Parameters:

marker (Clapper.Marker) – a Clapper.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:

int

Default Value:

0

Flags:

READABLE, EXPLICIT_NOTIFY

Number of markers in the timeline.