pub enum UndoRedoEvent {
Undone,
Redone,
StackChanged,
BeginComposite,
EndComposite,
CancelComposite,
}Variants§
Undone
Redone
StackChanged
A stack’s history changed other than by undoing or redoing it — a command pushed, a command merged into the one below it, a stack cleared.
Without this a UI cannot know that “can undo” just became true: the
manager announced only the consumption of history, never its creation,
so an Undo menu row had nothing to react to and had to be polled.
Carries the stack id in Event::data, like every other variant here, so
a process holding several stacks can tell whose history moved.
BeginComposite
EndComposite
CancelComposite
Trait Implementations§
Source§impl Clone for UndoRedoEvent
impl Clone for UndoRedoEvent
Source§fn clone(&self) -> UndoRedoEvent
fn clone(&self) -> UndoRedoEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UndoRedoEvent
impl Debug for UndoRedoEvent
impl Eq for UndoRedoEvent
Source§impl Hash for UndoRedoEvent
impl Hash for UndoRedoEvent
Source§impl PartialEq for UndoRedoEvent
impl PartialEq for UndoRedoEvent
Source§impl Serialize for UndoRedoEvent
impl Serialize for UndoRedoEvent
impl StructuralPartialEq for UndoRedoEvent
Auto Trait Implementations§
impl Freeze for UndoRedoEvent
impl RefUnwindSafe for UndoRedoEvent
impl Send for UndoRedoEvent
impl Sync for UndoRedoEvent
impl Unpin for UndoRedoEvent
impl UnsafeUnpin for UndoRedoEvent
impl UnwindSafe for UndoRedoEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more