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

Function createWidget

include/helpers.hpp:52–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50/** Creates a Widget subclass with its top-left at a position. */
51template <class TWidget>
52TWidget* createWidget(math::Vec pos) {
53 TWidget* o = new TWidget;
54 o->box.pos = pos;
55 return o;
56}
57
58
59/** Creates a Widget subclass with its center at a position. */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected