Top | ![]() |
![]() |
![]() |
![]() |
GESTimelineLayerGESTimelineLayer — Non-overlaping sequence of GESTimelineObject |
gboolean | ges_timeline_layer_add_object () |
GESTimelineLayer * | ges_timeline_layer_new () |
gboolean | ges_timeline_layer_remove_object () |
void | ges_timeline_layer_set_priority () |
guint | ges_timeline_layer_get_priority () |
GList * | ges_timeline_layer_get_objects () |
Responsible for the ordering of the various contained TimelineObject(s). A timeline layer has a "priority" property, which is used to manage the priorities of individual TimelineObjects. Two layers should not have the same priority within a given timeline.
gboolean ges_timeline_layer_add_object (GESTimelineLayer *layer
,GESTimelineObject *object
);
Adds the given object to the layer. Sets the object's parent, and thus takes ownership of the object.
An object can only be added to one layer.
GESTimelineLayer *
ges_timeline_layer_new (void
);
Creates a new GESTimelineLayer.
gboolean ges_timeline_layer_remove_object (GESTimelineLayer *layer
,GESTimelineObject *object
);
Removes the given object
from the layer
and unparents it.
Unparenting it means the reference owned by layer
on the object
will be
removed. If you wish to use the object
after this function, make sure you
call g_object_ref()
before removing it from the layer
.
void ges_timeline_layer_set_priority (GESTimelineLayer *layer
,guint priority
);
Sets the layer to the given priority
. See the documentation of the
priority property for more information.
guint
ges_timeline_layer_get_priority (GESTimelineLayer *layer
);
Get the priority of layer
within the timeline.
GList *
ges_timeline_layer_get_objects (GESTimelineLayer *layer
);
Get the timeline objects this layer contains.
typedef struct { /* virtual methods for subclasses */ GList *(*get_objects) (GESTimelineLayer * layer); } GESTimelineLayerClass;
Subclasses can override the get_objects
if they can provide a more
efficient way of providing the list of contained GESTimelineObject(s).
“priority”
property “priority” guint
The priority of the layer in the GESTimeline. 0 is the highest priority. Conceptually, a GESTimeline is a stack of GESTimelineLayers, and the priority of the layer represents its position in the stack. Two layers should not have the same priority within a given GESTimeline.
Flags: Read / Write
Default value: 0
“object-added”
signalvoid user_function (GESTimelineLayer *layer, GESTimelineObject *object, gpointer user_data)
Will be emitted after the object was added to the layer.
layer |
the GESTimelineLayer |
|
object |
the GESTimelineObject that was added. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run First
“object-removed”
signalvoid user_function (GESTimelineLayer *layer, GESTimelineObject *object, gpointer user_data)
Will be emitted after the object was removed from the layer.
layer |
the GESTimelineLayer |
|
object |
the GESTimelineObject that was removed |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run First