pub trait UndoManagerExt: 'static {
// Required 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);
}
Required 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)
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.