Trait CommittedActions
pub trait CommittedActions {
// Required method
fn take_committed_action(&mut self) -> Option<Vec<ChangeHash>>;
// Provided method
fn keeps_undo_step_open(&self) -> bool { ... }
}Expand description
A widget whose own controls dispatch the actions its resource exports,
and so report the undo boundary around them (see
record_dispatched_action).
Required Methods§
fn take_committed_action(&mut self) -> Option<Vec<ChangeHash>>
fn take_committed_action(&mut self) -> Option<Vec<ChangeHash>>
The document heads captured just before the widget’s last dispatched action. Rising-edge: reading clears it.
Provided Methods§
fn keeps_undo_step_open(&self) -> bool
fn keeps_undo_step_open(&self) -> bool
Whether the undo step the last boundary opened stays open for the actions that continue it (the rest of a word typed a keystroke at a time). Answered by the widget itself, never its children.