|
TachyonUI 1.1.0
High-performance UI for building tools.
|
#include <gui_core/input/gui_undo_history.h>
Public Attributes | |
| std::string | description |
| "Edit text", "Move node" | |
| std::function< void()> | undo |
| std::function< void()> | redo |
| uint64_t | mergeKey = 0 |
| Steps with the same non-zero key merge while merging is open (e.g. | |
| std::function< void(bool undone)> | drop |
| Runs once as the step leaves the history for good: a push replaces it while it's undone, or Clear. | |
| std::string tachyon::UndoHistory::Step::description |
"Edit text", "Move node"
| std::function<void()> tachyon::UndoHistory::Step::undo |
| std::function<void()> tachyon::UndoHistory::Step::redo |
| uint64_t tachyon::UndoHistory::Step::mergeKey = 0 |
Steps with the same non-zero key merge while merging is open (e.g.
the typing in one field while it has the focus): the first's undo, the latest's redo.
| std::function<void(bool undone)> tachyon::UndoHistory::Step::drop |
Runs once as the step leaves the history for good: a push replaces it while it's undone, or Clear.
undone says which side of it was in effect; give back what only the other side holds, such as the IDs of the keys its undo would bring back (done) or its redo would add (undone). A step with one never merges.