Trait zng_ext_undo::CommandUndoExt

source ·
pub trait CommandUndoExt {
    // Required methods
    fn undo_scoped(self) -> BoxedVar<Command>;
    fn undo_stack(self) -> UndoStackInfo;
    fn redo_stack(self) -> UndoStackInfo;
}
Expand description

Undo extension methods for commands.

Required Methods§

source

fn undo_scoped(self) -> BoxedVar<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.

source

fn undo_stack(self) -> UndoStackInfo

Latest undo stack for the given scope, same as calling UNDO::undo_stack inside the scope.

source

fn redo_stack(self) -> UndoStackInfo

Latest undo stack for the given scope, same as calling UNDO::redo_stack inside the scope.

Implementations on Foreign Types§

source§

impl CommandUndoExt for Command

Implementors§