TreeIOContext.dup

Create a copy of the context.

This creates a shallow clone: I/O systems can be replaced in the copy without affecting the original and vice-versa. The individual systems will *not* be copied.

This is useful if the I/O stack created at some specific point in time has to be reproduced elsewhere. For example, in a drag-and-drop scenario, while a node is being dragged, it does not have a place as a child of any node. A copy of the I/O stack it had at the start is used to continue drawing while the node is "in air".

struct TreeIOContext
dup
()

Return Value

A shallow copy of the I/O context.

Meta