Trait zng::undo::CommandUndoExt
source · pub trait CommandUndoExt {
// Required methods
fn undo_scoped(self) -> Box<dyn VarBoxed<Command>>;
fn undo_stack(self) -> UndoStackInfo;
fn redo_stack(self) -> UndoStackInfo;
}
Expand description
Undo extension methods for commands.
Required Methods§
sourcefn undo_scoped(self) -> Box<dyn VarBoxed<Command>>
fn undo_scoped(self) -> Box<dyn VarBoxed<Command>>
Gets the command scoped in the undo scope widget that is or contains the focused widget, or scoped on the app if there is no focused undo scope.
sourcefn undo_stack(self) -> UndoStackInfo
fn undo_stack(self) -> UndoStackInfo
Latest undo stack for the given scope, same as calling UNDO::undo_stack
inside the scope.
sourcefn redo_stack(self) -> UndoStackInfo
fn redo_stack(self) -> UndoStackInfo
Latest undo stack for the given scope, same as calling UNDO::redo_stack
inside the scope.