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

Method step

src/app/MidiDisplay.cpp:38–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38void MidiDriverChoice::step() {
39 text = (port && port->driver) ? port->getDriver()->getName() : "";
40 if (text.empty()) {
41 text = "(" + string::translate("MidiDisplay.noDriver") + ")";
42 color.a = 0.5f;
43 }
44 else {
45 color.a = 1.f;
46 }
47}
48
49struct MidiDriverItem : ui::MenuItem {
50 midi::Port* port;

Callers

nothing calls this directly

Calls 7

translateFunction · 0.85
getChannelNameMethod · 0.80
getNameMethod · 0.45
getDriverMethod · 0.45
emptyMethod · 0.45
getDeviceMethod · 0.45
getChannelMethod · 0.45

Tested by

no test coverage detected