Queue
Parameters
index
Current index of the queue. Larger value means newer, but not larger than maxQueueSize. When the index is equal to -1, the undo queue is empty. An index of 0 means that there is one event to undo.
canUndo
whether there are actions to undo
canRedo
whether there are actions to redo