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

Function createInputCentered

include/helpers.hpp:117–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115
116template <class TPortWidget>
117TPortWidget* createInputCentered(math::Vec pos, engine::Module* module, int inputId) {
118 TPortWidget* o = createInput<TPortWidget>(pos, module, inputId);
119 o->box.pos = o->box.pos.minus(o->box.size.div(2));
120 return o;
121}
122
123
124template <class TPortWidget>

Callers

nothing calls this directly

Calls 2

minusMethod · 0.80
divMethod · 0.80

Tested by

no test coverage detected