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

Method AddModule

Source/ModuleContainer.cpp:300–308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298}
299
300void ModuleContainer::AddModule(IDrawableModule* module)
301{
302 mModules.push_back(module);
303 MoveToFront(module);
304 TheSynth->OnModuleAdded(module);
305 module->SetOwningContainer(this);
306 if (mOwner)
307 mOwner->AddChild(module);
308}
309
310void ModuleContainer::TakeModule(IDrawableModule* module)
311{

Callers 4

ResetLayoutMethod · 0.80
AddDynamicModuleMethod · 0.80
DuplicateModuleMethod · 0.80
SpawnModuleOnTheFlyMethod · 0.80

Calls 3

OnModuleAddedMethod · 0.80
SetOwningContainerMethod · 0.80
AddChildMethod · 0.80

Tested by

no test coverage detected