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

Method onAction

src/app/PortWidget.cpp:108–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106 CableWidget* cw;
107
108 void onAction(const ActionEvent& e) override {
109 // history::CableColorChange
110 history::CableColorChange* h = new history::CableColorChange;
111 h->setCable(cw);
112 h->newColor = color;
113 h->oldColor = cw->color;
114 APP->history->push(h);
115
116 cw->color = color;
117 }
118};
119
120

Callers

nothing calls this directly

Calls 2

setCableMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected