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

Method DrawModule

Source/Push2Control.cpp:197–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195}
196
197void Push2Control::DrawModule()
198{
199 if (Minimized() || IsVisible() == false)
200 return;
201
202 if (!ThePushBridge.IsInitialized())
203 {
204 ofSetColor(255, 0, 0, gModuleDrawAlpha);
205 DrawTextNormal(mPushBridgeInitErrMsg, 3, 15);
206
207 mModuleGridLayoutStyleDropdown->SetShowing(false);
208 mShowManualGridCheckbox->SetShowing(false);
209
210 for (auto& cable : mModuleGridManualCables)
211 cable->SetShowing(false);
212 }
213 else
214 {
215 mModuleGridLayoutStyleDropdown->SetShowing(true);
216 mShowManualGridCheckbox->SetShowing(true);
217
218 for (auto& cable : mModuleGridManualCables)
219 cable->SetShowing(mShowManualGrid);
220 }
221
222 mModuleGridLayoutStyleDropdown->Draw();
223 mShowManualGridCheckbox->Draw();
224}
225
226void Push2Control::DrawModuleUnclipped()
227{

Callers

nothing calls this directly

Calls 5

ofSetColorFunction · 0.85
DrawTextNormalFunction · 0.85
IsInitializedMethod · 0.45
SetShowingMethod · 0.45
DrawMethod · 0.45

Tested by

no test coverage detected