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

Function createLightParamCentered

include/helpers.hpp:174–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172
173template <class TParamWidget>
174TParamWidget* createLightParamCentered(math::Vec pos, engine::Module* module, int paramId, int firstLightId) {
175 TParamWidget* o = createLightParam<TParamWidget>(pos, module, paramId, firstLightId);
176 o->box.pos = o->box.pos.minus(o->box.size.div(2));
177 return o;
178}
179
180
181template <class TMenu = ui::Menu>

Callers

nothing calls this directly

Calls 2

minusMethod · 0.80
divMethod · 0.80

Tested by

no test coverage detected