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

Method DrawModule

Source/AudioSplitter.cpp:106–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104
105
106void AudioSplitter::DrawModule()
107{
108 if (Minimized() || IsVisible() == false)
109 return;
110
111 GetPatchCableSource()->SetManualPosition(20, 12);
112
113 int offset{ 20 };
114 for (const auto cablesource : mDestinationCables)
115 {
116 cablesource->SetManualPosition(offset += 20, 12);
117 cablesource->SetOverrideCableDir(ofVec2f(0, 1), PatchCableSource::Side::kBottom);
118 }
119}
120
121void AudioSplitter::GetModuleDimensions(float& w, float& h)
122{

Callers

nothing calls this directly

Calls 3

ofVec2fClass · 0.85
SetManualPositionMethod · 0.80
SetOverrideCableDirMethod · 0.80

Tested by

no test coverage detected