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

Method MoveToFront

Source/ModuleContainer.cpp:282–298  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280}
281
282void ModuleContainer::MoveToFront(IDrawableModule* module)
283{
284 if (mOwner && mOwner->GetOwningContainer() != nullptr)
285 mOwner->GetOwningContainer()->MoveToFront(mOwner);
286
287 for (int i = 0; i < mModules.size(); ++i)
288 {
289 if (mModules[i] == module)
290 {
291 for (int j = i; j > 0; --j)
292 mModules[j] = mModules[j - 1];
293 mModules[0] = module;
294
295 break;
296 }
297 }
298}
299
300void ModuleContainer::AddModule(IDrawableModule* module)
301{

Callers

nothing calls this directly

Calls 2

GetOwningContainerMethod · 0.80
sizeMethod · 0.80

Tested by

no test coverage detected