|
FuncDoodle
|
Represents a bucket fill operation for undo/redo. More...
#include <Core.h>
Public Member Functions | |
| FillAction (Col prev, Col next, unsigned long frameI, const SharedPtr< ProjectFile > &proj, std::vector< std::pair< int, int > > affected) | |
| Creates a fill action from a flood-fill operation. | |
| FillAction (const FillAction &other)=default | |
| Copy constructor. | |
| ~FillAction () override=default | |
| Destructor. | |
| void | Undo () override |
| Reverts the fill operation. | |
| void | Redo () override |
| Reapplies the fill operation. | |
| Public Member Functions inherited from FuncDoodle::Action | |
| virtual | ~Action ()=default |
| Virtual destructor for safe polymorphic destruction. | |
Private Attributes | |
| Col | m_Prev |
| Col | m_Next |
| unsigned long | m_FrameIndex |
| WeakPtr< ProjectFile > | m_Proj |
| std::vector< std::pair< int, int > > | m_Pixels |
Represents a bucket fill operation for undo/redo.
Stores all affected pixels so the fill can be reversed or reapplied.
|
inline |
Creates a fill action from a flood-fill operation.
|
default |
Copy constructor.
|
overridedefault |
Destructor.
|
overridevirtual |
Reapplies the fill operation.
Implements FuncDoodle::Action.
|
overridevirtual |
Reverts the fill operation.
Implements FuncDoodle::Action.
|
private |
|
private |
|
private |
|
private |
|
private |