VCV Rack API v2
rack::history::Action Struct Reference

An undo action with an inverse redo action. More...

#include <history.hpp>

Inheritance diagram for rack::history::Action:
[legend]

Public Member Functions

virtual ~Action ()
 
virtual void undo ()
 
virtual void redo ()
 

Public Attributes

std::string name
 Name of the action, lowercase. More...
 

Detailed Description

An undo action with an inverse redo action.

Pointers to Modules, Params, etc. are not allowed in Actions because the object they refer to may be deleted and restored. Instead, use moduleIds, etc.

Constructor & Destructor Documentation

◆ ~Action()

virtual rack::history::Action::~Action ( )
inlinevirtual

Member Function Documentation

◆ undo()

◆ redo()

Member Data Documentation

◆ name

std::string rack::history::Action::name

Name of the action, lowercase.

Used in the phrase "Undo ..."


The documentation for this struct was generated from the following file: