AppUndoEx

Trait AppUndoEx 

Source
pub trait AppUndoEx {
    // Required method
    fn add_undo_event<T: Event + Clone>(&mut self) -> &mut App;
}

Required Methods§

Source

fn add_undo_event<T: Event + Clone>(&mut self) -> &mut App

Setup the app to manage undo events of type T

In order to use undo-action, you must call UndoScheduler::register. then call UndoRequester::undo when you need.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl AppUndoEx for App

Source§

fn add_undo_event<E: Event + Clone>(&mut self) -> &mut App

Implementors§