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

Method step

src/app/CableWidget.cpp:88–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88void PlugWidget::step() {
89 std::vector<float> values(3);
90
91 PortWidget* pw = internal->cableWidget->getPort(internal->type);
92 if (pw && internal->plugLight->isVisible()) {
93 engine::Port* port = pw->getPort();
94 if (port) {
95 for (int i = 0; i < 3; i++) {
96 values[i] = port->plugLights[i].getBrightness();
97 }
98 }
99 }
100 internal->plugLight->setBrightnesses(values);
101
102 Widget::step();
103}
104
105void PlugWidget::setColor(NVGcolor color) {
106 if (color::isEqual(color, internal->plugTint->color))

Callers

nothing calls this directly

Calls 13

stepFunction · 0.85
getSlumpPosFunction · 0.85
getPortMethod · 0.80
isVisibleMethod · 0.80
setBrightnessesMethod · 0.80
setPositionMethod · 0.80
getTopPlugMethod · 0.80
setTopMethod · 0.80
setAngleMethod · 0.80
argMethod · 0.80
minusMethod · 0.80
setColorMethod · 0.80

Tested by

no test coverage detected