Package-level declarations
Types
Link copied to clipboard
Link copied to clipboard
interface DocumentListener
Link copied to clipboard
The mechanism underlying undo and redo. It is called History, because I think of undo as going back in time, and redo as going forward in time.
Link copied to clipboard
interface HistoryDocument
A document with a History, allowing undo and redo actions.
Link copied to clipboard
Link copied to clipboard
Changes which do not change the model's data are skippable. e.g. changes to the current selection are SkippableChanges.
Link copied to clipboard
Using weak listeners can help prevent memory leaks.
Functions
Link copied to clipboard
fun documentListener(lambda: (document: HistoryDocument, change: Change, isUndo: Boolean) -> Unit): DocumentListener