copy


Description:

public unowned TimelineElement copy (bool deep)

Create a copy of this.

All the properties of this are copied into a new element, with the exception of parent, timeline and name. Other data, such the list of a Container's children, is **not** copied.

If deep is true, then the new element is prepared so that it can be used in paste or paste_element. In the case of copying a Container, this ensures that the children of this will also be pasted. The new element should not be used for anything else and can only be used **once** in a pasting operation. In particular, the new element itself is not an actual 'deep' copy of this, but should be thought of as an intermediate object used for a single paste operation.

Parameters:

this

The TimelineElement to copy

deep

Whether the copy is needed for pasting

Returns:

The newly create element, copied from this.