Queue

data class Queue(val index: Int, val canUndo: Boolean, val canRedo: Boolean)

Undo/redo queue representation

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

See also

Constructors

Link copied to clipboard
constructor(index: Int, canUndo: Boolean, canRedo: Boolean)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val index: Int