gtksource.undo_manager_mixin

Module for [UndoManager] interface mixin

Templates 2

tmplUndoManagerT()
Functions
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 available.

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.

gulong connectCanRedoChanged(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gtksource.undo_manager.UndoManager))) && Parameters!T.length < 2)

Connect to CanRedoChanged signal.

Emitted when the ability to redo has changed.

Parameters

callbacksignal callback delegate or function to connect void callback(gtksource.undo_manager.UndoManager undoManager) undoManager the instance the signal is connected to (optional)
afterYes.After to execute callback after default handler, No.After to execute before (default)

Returns

Signal ID
gulong connectCanUndoChanged(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gtksource.undo_manager.UndoManager))) && Parameters!T.length < 2)

Connect to CanUndoChanged signal.

Emitted when the ability to undo has changed.

Parameters

callbacksignal callback delegate or function to connect void callback(gtksource.undo_manager.UndoManager undoManager) undoManager the instance the signal is connected to (optional)
afterYes.After to execute callback after default handler, No.After to execute before (default)

Returns

Signal ID
tmplUndoManagerGidBuilderT()