You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
298B

  1. #pragma once
  2. #include "common.hpp"
  3. namespace rack {
  4. namespace history {
  5. struct Action {
  6. virtual ~Action() {}
  7. virtual void commit() {}
  8. virtual void commitInverse() {}
  9. };
  10. struct State {
  11. void push(Action *action);
  12. void undo();
  13. void redo();
  14. };
  15. } // namespace history
  16. } // namespace rack