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

Function createOutputCentered

include/helpers.hpp:136–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134
135template <class TPortWidget>
136TPortWidget* createOutputCentered(math::Vec pos, engine::Module* module, int outputId) {
137 TPortWidget* o = createOutput<TPortWidget>(pos, module, outputId);
138 o->box.pos = o->box.pos.minus(o->box.size.div(2));
139 return o;
140}
141
142
143template <class TModuleLightWidget>

Callers

nothing calls this directly

Calls 2

minusMethod · 0.80
divMethod · 0.80

Tested by

no test coverage detected