![]() |
BlankMat 0.1.0
Free open-source 3D texture creation application
|
Public Member Functions | |
void | Execute () override |
Executes this command. | |
void | Undo () override |
Undoes the command if it is undoable. | |
bool | Combine (ICommand *&other) override |
Does not combine the commands. | |
std::string | GetName () const override |
Returns the name of this command. | |
RunToggleFunctionCommand (const std::string &name, std::function< void()> function) | |
Instantiates a command that runs the given function once the command is executed. | |
![]() | |
bool | Undoable () const |
Returns whether the command is undoable. | |
bool | Trackable () const |
Returns whether the command is trackable (ie. should be stored in ActionStack) | |
Protected Attributes | |
std::function< void()> | mFunction = nullptr |
std::string | mName = "" |
![]() | |
bool | mCanBeUndone = true |
bool | mTrackable = true |
|
inlineexplicit |
Instantiates a command that runs the given function once the command is executed.
|
inlineoverridevirtual |
Does not combine the commands.
other | Other command to combine with |
Implements ICommand.
|
inlineoverridevirtual |
Executes this command.
Implements ICommand.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Undoes the command if it is undoable.
Implements ICommand.
|
protected |
|
protected |