Swiftray  1.0
Commands::AddLayerCmd Class Reference

Command for adding layers. More...

#include <command.h>

Inheritance diagram for Commands::AddLayerCmd:
Commands::BaseCmd

Public Member Functions

 AddLayerCmd (const LayerPtr &layer)
 
void redo (Document *doc) override
 
void undo (Document *doc) override
 
- Public Member Functions inherited from Commands::BaseCmd
 BaseCmd ()=default
 

Public Attributes

LayerPtr layer_
 

Detailed Description

Command for adding layers.

Constructor & Destructor Documentation

◆ AddLayerCmd()

Commands::AddLayerCmd::AddLayerCmd ( const LayerPtr layer)
inline

Member Function Documentation

◆ redo()

void AddLayerCmd::redo ( Document doc)
overridevirtual

Reimplemented from Commands::BaseCmd.

◆ undo()

void AddLayerCmd::undo ( Document doc)
overridevirtual

Reimplemented from Commands::BaseCmd.

Member Data Documentation

◆ layer_

LayerPtr Commands::AddLayerCmd::layer_

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