pub struct Group {
pub id: Option<String>,
pub children: Vec<Node>,
pub at: Option<f64>,
pub duration: Option<f64>,
pub inset: Option<Inset>,
pub opacity: Option<Anim<f32>>,
pub blend: Option<ClipBlendMode>,
pub effects: Vec<EffectUse>,
pub transform: Option<GroupTransform>,
pub enter: Option<Motion>,
pub exit: Option<Motion>,
}Expand description
Children drawn together as one layer. Unlike a stack, whose children each meet what is under them, a group composites its children first: its opacity, blend mode, effects and transform apply to that one picture.
A group’s children share its time as one picture does: a video or animated picture in it starts with the group and plays at its own speed, and it holds no sequences, captions or sound nodes. A child’s sound still plays, outside the picture.
Fields§
§id: Option<String>The node’s name, for other nodes to refer to.
children: Vec<Node>The children, each over the ones before, placed in the group’s area.
at: Option<f64>Seconds from the parent’s start (an overlay’s: the video’s). Ignored in a sequence.
duration: Option<f64>Length in seconds. Default: the longest child’s.
inset: Option<Inset>Pixels kept clear inside the parent’s area: the group’s area.
opacity: Option<Anim<f32>>Opacity of the whole, 0..=1. Default 1.
blend: Option<ClipBlendMode>How the whole meets what is under it. Default normal.
effects: Vec<EffectUse>Effects on the whole, in order, before its transform.
transform: Option<GroupTransform>Moves, scales or turns the whole.
enter: Option<Motion>How it comes in at its start.
exit: Option<Motion>How it goes out, ending at its end.