|
FuncDoodle
|
Rotates a frame by a fixed angle. More...
#include <Frame.h>
Public Member Functions | |
| RotateFrameAction (unsigned long frameIndex, int32_t deg, const SharedPtr< ProjectFile > &proj) | |
| Creates a frame rotation action. | |
| void | Undo () override |
| Reverts the effects of this action. | |
| void | Redo () override |
| Reapplies the effects of this action. | |
| int32_t | Deg () const |
| Returns rotation angle in degrees. | |
| Public Member Functions inherited from FuncDoodle::Action | |
| virtual | ~Action ()=default |
| Virtual destructor for safe polymorphic destruction. | |
Private Attributes | |
| unsigned long | m_FrameIndex |
| Frame index. | |
| int32_t | m_Deg |
| Rotation angle. | |
| WeakPtr< ProjectFile > | m_Proj |
| Owning project. | |
Rotates a frame by a fixed angle.
|
inline |
Creates a frame rotation action.
| frameIndex | Frame to rotate |
| deg | Rotation in degrees |
| proj | Owning project |
|
inlinenodiscard |
Returns rotation angle in degrees.
|
overridevirtual |
Reapplies the effects of this action.
Implements FuncDoodle::Action.
|
overridevirtual |
Reverts the effects of this action.
Implements FuncDoodle::Action.
|
private |
Rotation angle.
|
private |
Frame index.
|
private |
Owning project.