NodeMoveAction

An action that happens when a node is changed

Constructors

this
this(Node[] nodes, Node new_, size_t pOffset)

Creates a new node change action

Members

Functions

canMerge
bool canMerge(Action other)
Undocumented in source. Be warned that the author may not have intended to support it.
describe
string describe()

Describe the action

describeUndo
string describeUndo()

Describe the action

getName
string getName()

Gets name of this action

merge
bool merge(Action other)
Undocumented in source. Be warned that the author may not have intended to support it.
redo
void redo()

Redo

rollback
void rollback()

Rollback

Variables

descrName
string descrName;

Descriptive name

newParent
Node newParent;

New parent of node

newTransform
Transform newTransform;

The new transform of the node

nodes
Node[] nodes;

Nodes that was moved

originalTransform
Transform originalTransform;

The original transform of the node

parentOffset
size_t parentOffset;

Which index in to the parent the nodes should be placed

prevOffsets
size_t[uint] prevOffsets;
Undocumented in source.
prevParents
Node[uint] prevParents;

Previous parent of node

Inherited Members

From Action

rollback
void rollback()

Roll back the action that was done

redo
void redo()

Redo the action that was done

describe
string describe()

Describes the action

describeUndo
string describeUndo()

Describes the action

getName
string getName()

Gets the name of the action

merge
bool merge(Action other)

Merge action with other action (if possible)

canMerge
bool canMerge(Action other)

Gets whether this action can merge with an other

Meta