UndoState

data class UndoState(val canUndo: Boolean = false, val canRedo: Boolean = false, val undoDescription: String? = null, val redoDescription: String? = null)(source)

Snapshot of UndoStack state for menu enablement. Editors collect UndoStack.state to drive Undo / Redo menu items.

Constructors

Link copied to clipboard
constructor(canUndo: Boolean = false, canRedo: Boolean = false, undoDescription: String? = null, redoDescription: String? = null)

Properties

Link copied to clipboard

whether UndoStack.redo would succeed.

Link copied to clipboard

whether UndoStack.undo would succeed.

Link copied to clipboard

description of the most recently undone operation (the one UndoStack.redo would re-apply).

Link copied to clipboard

description of the most recently pushed operation (the one UndoStack.undo would revert).