UndoManager

Members

Functions

beginNotUndoableAction
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.

canRedo
bool canRedo()

Get whether there are redo operations available.

canRedoChanged
void canRedoChanged()

Emits the #GtkSourceUndoManager::can-redo-changed signal.

canUndo
bool canUndo()

Get whether there are undo operations available.

canUndoChanged
void canUndoChanged()

Emits the #GtkSourceUndoManager::can-undo-changed signal.

connectCanRedoChanged
gulong connectCanRedoChanged(T callback, Flag!"After" after)

Connect to CanRedoChanged signal.

connectCanUndoChanged
gulong connectCanUndoChanged(T callback, Flag!"After" after)

Connect to CanUndoChanged signal.

endNotUndoableAction
void endNotUndoableAction()

Ends a not undoable action on the buffer.

redo
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 available.

undo
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 available.

Static functions

_getGType
GType _getGType()