FuncDoodle
Loading...
Searching...
No Matches
Common.h
Go to the documentation of this file.
1
9
10#pragma once
11
12namespace FuncDoodle {
24 class Action {
25 public:
29 virtual void Undo() = 0;
30
34 virtual void Redo() = 0;
35
39 virtual ~Action() = default;
40
41 // stopped adding friends because that is unnecessary
42 // friend class DrawAction;
43 // friend class FillAction;
44 // friend class DeleteFrameAction;
45 };
46} // namespace FuncDoodle
Base interface for undoable and redoable editor actions.
Definition Common.h:24
virtual ~Action()=default
Virtual destructor for safe polymorphic destruction.
virtual void Redo()=0
Reapplies the effects of this action.
virtual void Undo()=0
Reverts the effects of this action.
The FuncDoodle C++ namespace.
Definition Common.h:12