MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / PostRepatch

Method PostRepatch

Source/PulseRouter.cpp:95–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93
94
95void PulseRouter::PostRepatch(PatchCableSource* cableSource, bool fromUserClick)
96{
97 //Hopefully this isn't important.
98 //INoteSource::PostRepatch(cableSource, fromUserClick);
99
100 for (int i = 0; i < (int)mDestinationCables.size(); ++i)
101 {
102 if (cableSource == mDestinationCables[i])
103 {
104 IClickable* target = cableSource->GetTarget();
105 std::string name = target ? target->Name() : " ";
106 mRouteSelector->SetLabel(name.c_str(), i);
107 }
108 }
109}
110
111void PulseRouter::GetModuleDimensions(float& width, float& height)
112{

Callers

nothing calls this directly

Calls 4

sizeMethod · 0.80
GetTargetMethod · 0.45
NameMethod · 0.45
SetLabelMethod · 0.45

Tested by

no test coverage detected