Skip to main content

Module undoer

Module undoer 

Source
Expand description

An automatic undo stack fed the current state every frame.

egui’s egui::util::undoer::Undoer (© Rerun / emilk, dual-licensed MIT OR Apache-2.0), reimplemented over Duration so nothing above the backend needs a toolkit to remember where it has been. The rules are its two:

  1. a state that has differed from the newest point and then held still for stable_time becomes a point of its own;
  2. a state that never holds still becomes one every auto_save_interval anyway, so a run of changes that never settles still leaves something to take back.

Structs§

Flux 🔒
How the state is changing right now: when the run of changes began, when the latest of them landed, and what it landed on.
Settings
Undoer