Trait sourceview4::prelude::UndoManagerExt
source · pub trait UndoManagerExt: IsA<UndoManager> + Sealed + 'static {
// Provided methods
fn begin_not_undoable_action(&self) { ... }
fn can_redo(&self) -> bool { ... }
fn can_redo_changed(&self) { ... }
fn can_undo(&self) -> bool { ... }
fn can_undo_changed(&self) { ... }
fn end_not_undoable_action(&self) { ... }
fn redo(&self) { ... }
fn undo(&self) { ... }
fn connect_can_redo_changed<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn emit_can_redo_changed(&self) { ... }
fn connect_can_undo_changed<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn emit_can_undo_changed(&self) { ... }
}
Expand description
Provided Methods§
sourcefn begin_not_undoable_action(&self)
fn begin_not_undoable_action(&self)
Begin a not undoable action on the buffer. All changes between this call
and the call to end_not_undoable_action()
cannot
be undone. This function should be re-entrant.
sourcefn can_redo_changed(&self)
fn can_redo_changed(&self)
Emits the can-redo-changed
signal.
sourcefn can_undo_changed(&self)
fn can_undo_changed(&self)
Emits the can-undo-changed
signal.
sourcefn end_not_undoable_action(&self)
fn end_not_undoable_action(&self)
Ends a not undoable action on the buffer.
sourcefn redo(&self)
fn redo(&self)
Perform a single redo. Calling this function when there are no redo operations
available is an error. Use can_redo()
to find out
if there are redo operations available.
sourcefn undo(&self)
fn undo(&self)
Perform a single undo. Calling this function when there are no undo operations
available is an error. Use can_undo()
to find out
if there are undo operations available.
sourcefn connect_can_redo_changed<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_can_redo_changed<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
Emitted when the ability to redo has changed.
fn emit_can_redo_changed(&self)
sourcefn connect_can_undo_changed<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_can_undo_changed<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
Emitted when the ability to undo has changed.
fn emit_can_undo_changed(&self)
Object Safety§
This trait is not object safe.