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

Class CableAdd

include/history.hpp:137–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135
136
137struct CableAdd : Action {
138 int64_t cableId = -1;
139 int64_t inputModuleId = -1;
140 int inputId = -1;
141 int64_t outputModuleId = -1;
142 int outputId = -1;
143 NVGcolor color = color::BLACK_TRANSPARENT;
144 void setCable(app::CableWidget* cw);
145 bool isCable(app::CableWidget* cw) const;
146 void undo() override;
147 void redo() override;
148 CableAdd() {
149 name = "add cable";
150 }
151};
152
153
154struct CableRemove : InverseAction<CableAdd> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected