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

Method DrawModule

Source/AudioRouter.cpp:103–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103void AudioRouter::DrawModule()
104{
105 if (Minimized() || IsVisible() == false)
106 return;
107
108 mRouteSelector->Draw();
109
110 for (int i = 0; i < (int)mDestinationCables.size(); ++i)
111 {
112 ofVec2f pos = mRouteSelector->GetOptionPosition(i) - mRouteSelector->GetPosition();
113 mDestinationCables[i]->SetManualPosition(pos.x + 10, pos.y + 4);
114 }
115}
116
117void AudioRouter::PostRepatch(PatchCableSource* cableSource, bool fromUserClick)
118{

Callers

nothing calls this directly

Calls 5

sizeMethod · 0.80
GetOptionPositionMethod · 0.80
SetManualPositionMethod · 0.80
DrawMethod · 0.45
GetPositionMethod · 0.45

Tested by

no test coverage detected