GES.Group¶
- Subclasses:
None
Methods¶
- Inherited:
GES.Container (6), GES.TimelineElement (38), GObject.Object (37), GES.Extractable (3), GES.MetaContainer (40)
- Structs:
class |
|
Virtual Methods¶
Properties¶
- Inherited:
Signals¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class GES.Group(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A
GES.Group
controls one or moreGES.Container
-s (usuallyGES.Clip
-s, but it can also control otherGES.Group
-s). Its children must share the sameGES.Timeline
, but can otherwise lie in separateGES.Layer
-s and have different timings.To initialise a group, you may want to use
GES.Container.group
(), and similarly useGES.Container.ungroup
() to dispose of it.A group will maintain the relative
GES.TimelineElement
:start
times of its children, as well as their relative layerGES.Layer
:priority
. Therefore, if one of its children has itsGES.TimelineElement
:start
set, all other children will have theirGES.TimelineElement
:start
shifted by the same amount. Similarly, if one of its children moves to a new layer, the other children will also change layers to maintain the difference in their layer priorities. For example, if a child moves from a layer withGES.Layer
:priority
1 to a layer with priority 3, then another child that was in a layer with priority 0 will move to the layer with priority 2.The
GES.Group
:start
of a group refers to the earliest start time of its children. If the group’sGES.Group
:start
is set, all the children will be shifted equally such that the earliest start time will match the set value. TheGES.Group
:duration
of a group is the difference between the earliest start time and latest end time of its children. If the group’sGES.Group
:duration
is increased, the children whose end time matches the end of the group will be extended accordingly. If it is decreased, then any child whose end time exceeds the new end time will also have their duration decreased accordingly.A group may span several layers, but for methods such as
GES.TimelineElement.get_layer_priority
() andGES.TimelineElement.edit
() a group is considered to have a layer priority that is the highestGES.Layer
:priority
(numerically, the smallest) of all the layers it spans.- classmethod new()[source]¶
- Returns:
The new empty group.
- Return type:
Created a new empty group. You may wish to use
GES.Container.group
() instead, which can return a differentGES.Container
subclass if possible.