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

Method DrawModule

Source/NoteRouter.cpp:50–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50void NoteRouter::DrawModule()
51{
52 if (Minimized() || IsVisible() == false)
53 return;
54
55 mRouteSelector->Draw();
56 for (int i = 0; i < (int)mDestinationCables.size(); ++i)
57 {
58 ofVec2f pos = mRouteSelector->GetOptionPosition(i) - mRouteSelector->GetPosition();
59 mDestinationCables[i]->GetPatchCableSource()->SetManualPosition(pos.x + 10, pos.y + 4);
60 }
61}
62
63void NoteRouter::SetSelectedMask(int mask)
64{

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected