|
Swiftray
1.0
|
Command for removing shapes. The command needs to manage shapes' lifecycle, but doesn't need to manage layers' lifecycle. More...
#include <command.h>
Public Member Functions | |
| RemoveShapeCmd (const ShapePtr &shape) | |
| RemoveShapeCmd (Layer *layer, const ShapePtr &shape) | |
| void | redo (Document *doc) override |
| void | undo (Document *doc) override |
Public Member Functions inherited from Commands::BaseCmd | |
| BaseCmd ()=default | |
Public Attributes | |
| Layer * | layer_ |
| ShapePtr | shape_ |
Command for removing shapes. The command needs to manage shapes' lifecycle, but doesn't need to manage layers' lifecycle.
|
inlineexplicit |
|
overridevirtual |
Reimplemented from Commands::BaseCmd.
|
overridevirtual |
Reimplemented from Commands::BaseCmd.
| Layer* Commands::RemoveShapeCmd::layer_ |
| ShapePtr Commands::RemoveShapeCmd::shape_ |