Skip to main content

CommandUndoExt

Trait CommandUndoExt 

Source
pub trait CommandUndoExt {
    // Required methods
    fn undo_scoped(self) -> Var<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) -> Var<Command>

Gets the command scoped to the undo scope widget that is (or contains) the focused widget. If no undo scope is focused gets the command scoped on the app.

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.

Implementors§