|
Swiftray
1.0
|
Command for adding shapes. The command needs to manage shapes' lifecycle, but doesn't need to manage layers' lifecycle. More...
#include <command.h>
Public Member Functions | |
| AddShapeCmd (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 adding shapes. The command needs to manage shapes' lifecycle, but doesn't need to manage layers' lifecycle.
|
overridevirtual |
Reimplemented from Commands::BaseCmd.
|
overridevirtual |
Reimplemented from Commands::BaseCmd.
| Layer* Commands::AddShapeCmd::layer_ |
| ShapePtr Commands::AddShapeCmd::shape_ |