VCV Rack API v2
Loading...
Searching...
No Matches
rack::history::ModuleAdd Struct Reference

#include <history.hpp>

Inheritance diagram for rack::history::ModuleAdd:
[legend]
Collaboration diagram for rack::history::ModuleAdd:
[legend]

Public Member Functions

 ModuleAdd ()
 ~ModuleAdd ()
void setModule (app::ModuleWidget *mw)
void undo () override
void redo () override
Public Member Functions inherited from rack::history::Action
virtual ~Action ()

Public Attributes

plugin::Modelmodel = NULL
math::Vec pos
json_t * moduleJ = NULL
Public Attributes inherited from rack::history::ModuleAction
int64_t moduleId = -1
Public Attributes inherited from rack::history::Action
std::string name
 Name of the action, lowercase.

Constructor & Destructor Documentation

◆ ModuleAdd()

rack::history::ModuleAdd::ModuleAdd ( )
inline

◆ ~ModuleAdd()

rack::history::ModuleAdd::~ModuleAdd ( )

Member Function Documentation

◆ setModule()

void rack::history::ModuleAdd::setModule ( app::ModuleWidget * mw)

◆ undo()

void rack::history::ModuleAdd::undo ( )
overridevirtual

Reimplemented from rack::history::Action.

◆ redo()

void rack::history::ModuleAdd::redo ( )
overridevirtual

Reimplemented from rack::history::Action.

Member Data Documentation

◆ model

plugin::Model* rack::history::ModuleAdd::model = NULL

◆ pos

math::Vec rack::history::ModuleAdd::pos

◆ moduleJ

json_t* rack::history::ModuleAdd::moduleJ = NULL

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