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

#include <Draw.hpp>

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

Public Member Functions

bool execute ()
 Execute the command to draw pixels. More...
 
bool undo ()
 Undo command to undo the pixel creation. More...
 
void setOriginalColor ()
 Get the original color of each pixel. More...
 
 Draw (sf::Vector2f coordinate, App *app, int flag, std::string command)
 Constructor of draw command. 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
 

Constructor & Destructor Documentation

◆ Draw()

Draw::Draw ( sf::Vector2f  coordinate,
App app,
int  cmdFlag,
std::string  command 
)

Constructor of draw command.

Member Function Documentation

◆ execute()

bool Draw::execute ( )
virtual

Execute the command to draw pixels.

Implements Command.

◆ setOriginalColor()

void Draw::setOriginalColor ( )

Get the original color of each pixel.

◆ undo()

bool Draw::undo ( )
virtual

Undo command to undo the pixel creation.

Implements Command.


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