Skip to main content

UndoPoints

Trait UndoPoints 

pub trait UndoPoints: Widget {
    // Provided methods
    fn get_state(&self) -> Option<String> { ... }
    fn set_state(&mut self, _state: &str) { ... }
}
Expand description

A widget that restores its ephemeral state (caret, selection) around the undo points its owner’s actions make.

Provided Methods§

fn get_state(&self) -> Option<String>

Ephemeral state (caret, selection) saved with an undo point.

fn set_state(&mut self, _state: &str)

Restore ephemeral state saved by Self::get_state.

Implementors§