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

Clear command. More...

#include <Clear.hpp>

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

Public Member Functions

bool execute ()
 Execute the clear canvas command and wipe off all the drawing from the canvas. More...
 
bool undo ()
 Undo the clear canvas command and restore the original image on the canvas. More...
 
 Clear (App *app, int flag, std::string command)
 The constructor of the Clear class. More...
 
 ~Clear ()
 The destructor of the Clear 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

Clear command.

Constructor & Destructor Documentation

◆ Clear()

Clear::Clear ( App app,
int  flag,
std::string  command 
)

The constructor of the Clear class.

◆ ~Clear()

Clear::~Clear ( )

The destructor of the Clear class.

Member Function Documentation

◆ execute()

bool Clear::execute ( )
virtual

Execute the clear canvas command and wipe off all the drawing from the canvas.

Implements Command.

◆ undo()

bool Clear::undo ( )
virtual

Undo the clear canvas command and restore the original image on the canvas.

Implements Command.


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