MCPcopy Create free account
hub / github.com/VCVRack/Rack / createModuleWidget

Method createModuleWidget

include/helpers.hpp:31–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29 return m;
30 }
31 app::ModuleWidget* createModuleWidget(engine::Module* m) override {
32 TModule* tm = NULL;
33 if (m) {
34 assert(m->model == this);
35 tm = dynamic_cast<TModule*>(m);
36 }
37 app::ModuleWidget* mw = new TModuleWidget(tm);
38 assert(mw->module == m);
39 mw->setModel(this);
40 return mw;
41 }
42 };
43
44 plugin::Model* o = new TModel;

Callers 7

redoMethod · 0.45
screenshotModulesMethod · 0.45
chooseModelFunction · 0.45
createPreviewMethod · 0.45
moduleWidgetFromJsonFunction · 0.45
json_array_foreachFunction · 0.45
cloneActionMethod · 0.45

Calls 1

setModelMethod · 0.45

Tested by

no test coverage detected