mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 02:01:12 +00:00
timeline-layer: Add a method to get the timeline it is currently in
API: ges_timeline_layer_get_timeline Bind it in python
This commit is contained in:
parent
4148d605ad
commit
149ceeab2e
4 changed files with 29 additions and 0 deletions
|
@ -905,6 +905,12 @@
|
|||
)
|
||||
)
|
||||
|
||||
(define-method get_timeline
|
||||
(of-object "GESTimelineLayer")
|
||||
(c-name "ges_timeline_layer_get_timeline")
|
||||
(return-type "GESTimeline*")
|
||||
)
|
||||
|
||||
(define-method add_object
|
||||
(of-object "GESTimelineLayer")
|
||||
(c-name "ges_timeline_layer_add_object")
|
||||
|
|
|
@ -278,6 +278,7 @@ ges_timeline_layer_remove_object
|
|||
ges_timeline_layer_set_priority
|
||||
ges_timeline_layer_get_priority
|
||||
ges_timeline_layer_get_objects
|
||||
ges_timeline_layer_get_timeline
|
||||
ges_timeline_layer_get_auto_transition
|
||||
ges_timeline_layer_set_auto_transition
|
||||
<SUBSECTION Standard>
|
||||
|
|
|
@ -232,6 +232,23 @@ ges_timeline_layer_new (void)
|
|||
return g_object_new (GES_TYPE_TIMELINE_LAYER, NULL);
|
||||
}
|
||||
|
||||
/**
|
||||
* ges_timeline_layer_get_timeline:
|
||||
* @layer: The #GESTimelineLayer to get the parent #GESTimeline from
|
||||
*
|
||||
* Get the #GESTimeline in which #GESTimelineLayer currently is.
|
||||
*
|
||||
* Returns: (transfer none): the #GESTimeline in which #GESTimelineLayer
|
||||
* currently is or %NULL if not in any timeline yet.
|
||||
*/
|
||||
GESTimeline *
|
||||
ges_timeline_layer_get_timeline (GESTimelineLayer * layer)
|
||||
{
|
||||
g_return_val_if_fail (GES_IS_TIMELINE_LAYER (layer), NULL);
|
||||
|
||||
return layer->timeline;
|
||||
}
|
||||
|
||||
void
|
||||
ges_timeline_layer_set_timeline (GESTimelineLayer * layer,
|
||||
GESTimeline * timeline)
|
||||
|
|
|
@ -95,7 +95,12 @@ GESTimelineLayer* ges_timeline_layer_new (void);
|
|||
|
||||
void ges_timeline_layer_set_timeline (GESTimelineLayer * layer,
|
||||
GESTimeline * timeline);
|
||||
|
||||
GESTimeline *
|
||||
ges_timeline_layer_get_timeline (GESTimelineLayer * layer);
|
||||
|
||||
gboolean ges_timeline_layer_add_object (GESTimelineLayer * layer,
|
||||
|
||||
GESTimelineObject * object);
|
||||
gboolean ges_timeline_layer_remove_object (GESTimelineLayer * layer,
|
||||
GESTimelineObject * object);
|
||||
|
|
Loading…
Reference in a new issue