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

Method TestClick

Source/IDrawableModule.cpp:650–669  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

648}
649
650bool IDrawableModule::TestClick(float x, float y, bool right, bool testOnly /*=false*/)
651{
652 if (IsResizable() && mHoveringOverResizeHandle)
653 {
654 if (!testOnly)
655 TheSynth->SetResizeModule(this);
656 return true;
657 }
658
659 for (auto source : mPatchCableSources)
660 {
661 if (source->TestClick(x, y, right, testOnly))
662 return true;
663 }
664
665 if (IClickable::TestClick(x, y, right, testOnly))
666 return true;
667
668 return false;
669}
670
671void IDrawableModule::OnClicked(float x, float y, bool right)
672{

Callers 1

OnClickedMethod · 0.45

Calls 1

SetResizeModuleMethod · 0.80

Tested by

no test coverage detected