FuncDoodle
Loading...
Searching...
No Matches
FuncDoodle::RotateFrameAction Class Reference

Rotates a frame by a fixed angle. More...

#include <Frame.h>

Inheritance diagram for FuncDoodle::RotateFrameAction:
FuncDoodle::Action

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< ProjectFilem_Proj
 Owning project.

Detailed Description

Rotates a frame by a fixed angle.

Constructor & Destructor Documentation

◆ RotateFrameAction()

FuncDoodle::RotateFrameAction::RotateFrameAction ( unsigned long frameIndex,
int32_t deg,
const SharedPtr< ProjectFile > & proj )
inline

Creates a frame rotation action.

Parameters
frameIndexFrame to rotate
degRotation in degrees
projOwning project

Member Function Documentation

◆ Deg()

int32_t FuncDoodle::RotateFrameAction::Deg ( ) const
inlinenodiscard

Returns rotation angle in degrees.

◆ Redo()

void FuncDoodle::RotateFrameAction::Redo ( )
overridevirtual

Reapplies the effects of this action.

Implements FuncDoodle::Action.

◆ Undo()

void FuncDoodle::RotateFrameAction::Undo ( )
overridevirtual

Reverts the effects of this action.

Implements FuncDoodle::Action.

Member Data Documentation

◆ m_Deg

int32_t FuncDoodle::RotateFrameAction::m_Deg
private

Rotation angle.

◆ m_FrameIndex

unsigned long FuncDoodle::RotateFrameAction::m_FrameIndex
private

Frame index.

◆ m_Proj

WeakPtr<ProjectFile> FuncDoodle::RotateFrameAction::m_Proj
private

Owning project.


The documentation for this class was generated from the following files: