Several commands undone and redone as one.
More...
#include <C:/Users/kirby/Documents/Github/deki/deki-editor/deki-editor/include/deki-editor/Command.h>
Inherits DekiEditor::Command.
Several commands undone and redone as one.
◆ CompoundCommand() [1/2]
| DekiEditor::CompoundCommand::CompoundCommand |
( |
const std::string & | description, |
|
|
std::vector< std::unique_ptr< Command > > | commands ) |
|
inlineexplicit |
◆ CompoundCommand() [2/2]
| DekiEditor::CompoundCommand::CompoundCommand |
( |
const CompoundCommand & | | ) |
|
|
delete |
◆ operator=()
◆ GetDescription()
| std::string DekiEditor::CompoundCommand::GetDescription |
( |
| ) |
const |
|
inlineoverridevirtual |
Human-readable text shown in the UI, in the editor's current language.
Implements DekiEditor::Command.
◆ Execute()
| void DekiEditor::CompoundCommand::Execute |
( |
| ) |
|
|
inlineoverridevirtual |
◆ Undo()
| void DekiEditor::CompoundCommand::Undo |
( |
| ) |
|
|
inlineoverridevirtual |
◆ Redo()
| void DekiEditor::CompoundCommand::Redo |
( |
| ) |
|
|
inlineoverridevirtual |
◆ ReferencesAny()
| bool DekiEditor::CompoundCommand::ReferencesAny |
( |
const DeadMemory & | dead | ) |
const |
|
inlineoverridevirtual |
Whether this command holds a raw pointer to anything in dead.
CommandHistory asks this when the scene is about to free objects and discards any command that answers true, since Undo()/Redo() on a freed target is a use-after-free.
The default, false, is right for commands that address their target by value or by id. Any command storing a Deki::Object*, Deki::Component* or Scene* MUST override this; see src/core/commands/ for the pattern.
Reimplemented from DekiEditor::Command.
The documentation for this class was generated from the following file: