pub struct UndoState {
pub can_undo: bool,
pub can_redo: bool,
pub undo_label: String,
pub redo_label: String,
}Expand description
The undo stack’s face, as a native front mirrors it (Toolkit::set_undo_state): what is
possible and what the menu titles should say. Labels arrive already localized: a toolkit
cannot invent translated text, the same rule as every other label in this file.
Fields§
§can_undo: bool§can_redo: bool§undo_label: StringThe next undo unit’s display label (“Rename”), empty when nothing is undoable. Fronts interpolate it into the platform’s own title form (“Undo Rename”).
redo_label: StringTrait Implementations§
impl StructuralPartialEq for UndoState
Auto Trait Implementations§
impl Freeze for UndoState
impl RefUnwindSafe for UndoState
impl Send for UndoState
impl Sync for UndoState
impl Unpin for UndoState
impl UnsafeUnpin for UndoState
impl UnwindSafe for UndoState
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