gtksource.undo_manager

Module for [UndoManager] interface

Types 2

interfaceUndoManager
Methods
void beginNotUndoableAction()Begin a not undoable action on the buffer. All changes between this call and the call to [gtksource.undo_manager.UndoManager.endNotUndoableAction] cannot be undone. This function should be re-entrant.
bool canRedo()Get whether there are redo operations available. Returns: true if there are redo operations available, false otherwise
void canRedoChanged()Emits the #GtkSourceUndoManager::can-redo-changed signal.
bool canUndo()Get whether there are undo operations available. Returns: true if there are undo operations available, false otherwise
void canUndoChanged()Emits the #GtkSourceUndoManager::can-undo-changed signal.
void endNotUndoableAction()Ends a not undoable action on the buffer.
void redo()Perform a single redo. Calling this function when there are no redo operations available is an error. Use [gtksource.undo_manager.UndoManager.canRedo] to find out if there are redo operations avail...
void undo()Perform a single undo. Calling this function when there are no undo operations available is an error. Use [gtksource.undo_manager.UndoManager.canUndo] to find out if there are undo operations avail...
gulong connectCanRedoChanged(T)(T callback, Flag!"After" after = No.After)Connect to `CanRedoChanged` signal.
gulong connectCanUndoChanged(T)(T callback, Flag!"After" after = No.After)Connect to `CanUndoChanged` signal.