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

Method LightButton

include/componentlibrary.hpp:870–875  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

868 app::ModuleLightWidget* light;
869
870 LightButton() {
871 light = new TLight;
872 // Move center of light to center of box
873 light->box.pos = this->box.size.div(2).minus(light->box.size.div(2));
874 this->addChild(light);
875 }
876
877 app::ModuleLightWidget* getLight() {
878 return light;

Callers

nothing calls this directly

Calls 3

minusMethod · 0.80
divMethod · 0.80
addChildMethod · 0.80

Tested by

no test coverage detected