A single undoable action with undo and redo functions.
More...
#include <undo_manager.hpp>
|
| static std::unique_ptr< UndoAction > | create (std::string action_name, std::function< void()> undo, std::function< void()> redo) |
A single undoable action with undo and redo functions.
[=] { store.set_value(kGain, old_value); },
[=] { store.set_value(kGain, new_value); }
);
undo_manager.perform(std::move(action));
static std::unique_ptr< UndoAction > create(std::string action_name, std::function< void()> undo, std::function< void()> redo)
Definition undo_manager.hpp:28
◆ create()
| std::unique_ptr< UndoAction > pulp::state::UndoAction::create |
( |
std::string | action_name, |
|
|
std::function< void()> | undo, |
|
|
std::function< void()> | redo ) |
|
inlinestatic |
◆ name
| std::string pulp::state::UndoAction::name |
◆ redo_fn
| std::function<void()> pulp::state::UndoAction::redo_fn |
◆ undo_fn
| std::function<void()> pulp::state::UndoAction::undo_fn |
The documentation for this struct was generated from the following file: