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

Method MouseMoved

Source/ModuleContainer.cpp:176–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176void ModuleContainer::MouseMoved(float x, float y)
177{
178 if (mOwner != nullptr)
179 return;
180
181 for (int i = (int)mModules.size() - 1; i >= 0; --i) //run this backwards so that we can figure out the top hover control
182 {
183 ModuleContainer* subcontainer = mModules[i]->GetContainer();
184 if (subcontainer)
185 {
186 subcontainer->MouseMoved(x - subcontainer->GetOwnerPosition().x, y - subcontainer->GetOwnerPosition().y);
187 }
188 mModules[i]->NotifyMouseMoved(x, y);
189 }
190}
191
192void ModuleContainer::MouseReleased()
193{

Callers

nothing calls this directly

Calls 4

sizeMethod · 0.80
GetOwnerPositionMethod · 0.80
NotifyMouseMovedMethod · 0.80
GetContainerMethod · 0.45

Tested by

no test coverage detected