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

Function createInput

include/helpers.hpp:106–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104
105template <class TPortWidget>
106TPortWidget* createInput(math::Vec pos, engine::Module* module, int inputId) {
107 TPortWidget* o = new TPortWidget;
108 o->box.pos = pos;
109 o->app::PortWidget::module = module;
110 o->app::PortWidget::type = engine::Port::INPUT;
111 o->app::PortWidget::portId = inputId;
112 return o;
113}
114
115
116template <class TPortWidget>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected