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

Method DrawModule

Source/PulseRouter.cpp:48–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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