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

Class CableColorItem

src/app/PortWidget.cpp:105–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103
104
105struct CableColorItem : ui::ColorDotMenuItem {
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
121struct PortCableItem : ui::ColorDotMenuItem {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected