PumpkinBrush
Public Member Functions | List of all members
Erase Class Reference

Erase command. More...

#include <Erase.hpp>

Inheritance diagram for Erase:
Inheritance graph
[legend]
Collaboration diagram for Erase:
Collaboration graph
[legend]

Public Member Functions

bool execute ()
 The destructor of the Erase class. More...
 
bool undo ()
 Undo the erase pixel command and restore the pixels that were previously erased. More...
 
void setOriginalColor ()
 Execute the erase pixel command. More...
 
 Erase (sf::Vector2f coordinate, App *app, int flag, std::string command)
 The constructor of the Erase class. More...
 
- Public Member Functions inherited from Command
 Command (int cmdFlag, std::string m_commandDescriptionP)
 
virtual ~Command ()
 N/A. More...
 
std::string getCommand ()
 

Additional Inherited Members

- Public Attributes inherited from Command
int m_cmdFlag
 

Detailed Description

Erase command.

Constructor & Destructor Documentation

◆ Erase()

Erase::Erase ( sf::Vector2f  coordinate,
App app,
int  flag,
std::string  command 
)

The constructor of the Erase class.

Member Function Documentation

◆ execute()

bool Erase::execute ( )
virtual

The destructor of the Erase class.

Implements Command.

◆ setOriginalColor()

void Erase::setOriginalColor ( )

Execute the erase pixel command.

◆ undo()

bool Erase::undo ( )
virtual

Undo the erase pixel command and restore the pixels that were previously erased.

Implements Command.


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