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

Function createParamCentered

include/helpers.hpp:98–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96
97template <class TParamWidget>
98TParamWidget* createParamCentered(math::Vec pos, engine::Module* module, int paramId) {
99 TParamWidget* o = createParam<TParamWidget>(pos, module, paramId);
100 o->box.pos = o->box.pos.minus(o->box.size.div(2));
101 return o;
102}
103
104
105template <class TPortWidget>

Callers

nothing calls this directly

Calls 2

minusMethod · 0.80
divMethod · 0.80

Tested by

no test coverage detected