Class UndoBuffer

Undo/Redo buffer

Inherits from

  • Object (base class)


Name Type Description
_redoList dlangui.core.collections.__T10CollectionTC7dlangui4core8editable13EditOperationVbi0Z.Collection
_savedState EditOperation
_undoList dlangui.core.collections.__T10CollectionTC7dlangui4core8editable13EditOperationVbi0Z.Collection


Name Type Description
hasRedo [get] bool returns true if buffer contains any redo items
hasUndo [get] bool returns true if buffer contains any undo items
modified [get] bool returns true if content has been changed since last saved() or clear() call


Name Description
clear clears both undo and redo buffers
redo returns operation to be redone (put it to undo), null if no undo ops available
saved current state is saved
savedInRedo returns true if saved state is in redo buffer
saveForUndo adds undo operation
undo returns operation to be undone (put it to redo), null if no undo ops available


Vadim Lopatin,


Vadim Lopatin, 2014


Boost License 1.0