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

Moves a frame one position to the right. More...

#include <Frame.h>

Inheritance diagram for FuncDoodle::MoveFrameRightAction:
FuncDoodle::Action

Public Member Functions

 MoveFrameRightAction (unsigned long frameI, const SharedPtr< ProjectFile > &proj)
 Creates an action that shifts a frame one slot to the right.
void Undo () override
 Reverts the effects of this action.
void Redo () override
 Reapplies the effects of this action.
Public Member Functions inherited from FuncDoodle::Action
virtual ~Action ()=default
 Virtual destructor for safe polymorphic destruction.

Private Attributes

unsigned long m_FrameIndex
 Frame index.
WeakPtr< ProjectFilem_Proj
 Owning project.

Detailed Description

Moves a frame one position to the right.

Constructor & Destructor Documentation

◆ MoveFrameRightAction()

FuncDoodle::MoveFrameRightAction::MoveFrameRightAction ( unsigned long frameI,
const SharedPtr< ProjectFile > & proj )
inline

Creates an action that shifts a frame one slot to the right.

Member Function Documentation

◆ Redo()

void FuncDoodle::MoveFrameRightAction::Redo ( )
overridevirtual

Reapplies the effects of this action.

Implements FuncDoodle::Action.

◆ Undo()

void FuncDoodle::MoveFrameRightAction::Undo ( )
overridevirtual

Reverts the effects of this action.

Implements FuncDoodle::Action.

Member Data Documentation

◆ m_FrameIndex

unsigned long FuncDoodle::MoveFrameRightAction::m_FrameIndex
private

Frame index.

◆ m_Proj

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

Owning project.


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