FuncDoodle
Loading...
Searching...
No Matches
FuncDoodle::Action Class Referenceabstract

Base interface for undoable and redoable editor actions. More...

#include <Common.h>

Inheritance diagram for FuncDoodle::Action:
FuncDoodle::DeleteFrameAction FuncDoodle::DeleteSelectionAction FuncDoodle::DrawAction FuncDoodle::FillAction FuncDoodle::InsertFrameAction FuncDoodle::MoveFrameLeftAction FuncDoodle::MoveFrameRightAction FuncDoodle::MoveSelectionAction FuncDoodle::RotateFrameAction FuncDoodle::RotateSelectionAction FuncDoodle::StrokeAction

Public Member Functions

virtual void Undo ()=0
 Reverts the effects of this action.
virtual void Redo ()=0
 Reapplies the effects of this action.
virtual ~Action ()=default
 Virtual destructor for safe polymorphic destruction.

Detailed Description

Base interface for undoable and redoable editor actions.

Represents a single operation that can be applied and reverted within the application’s undo/redo system (e.g. drawing, filling, deleting frames).

Derived classes must implement both Undo() and Redo() to define how the action is reversed and reapplied.

Constructor & Destructor Documentation

◆ ~Action()

virtual FuncDoodle::Action::~Action ( )
virtualdefault

Virtual destructor for safe polymorphic destruction.

Member Function Documentation

◆ Redo()

◆ Undo()


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