MCPcopy Create free account
hub / github.com/MyGUI/mygui / CreateControls

Method CreateControls

Tools/LayoutEditor/Application.cpp:478–495  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

476 }
477
478 void Application::CreateControls()
479 {
480 const SettingsManager::VectorString& controls =
481 SettingsManager::getInstance().getValueList("Editor/Control.List");
482 for (const auto& controlType : controls)
483 {
484 Control* control = components::FactoryManager::GetInstance().CreateItem<Control>(controlType);
485 if (control != nullptr)
486 {
487 control->Initialise();
488 mControls.push_back(control);
489 }
490 else
491 {
492 MYGUI_LOG(Warning, "Control factory '" << controlType << "' not found");
493 }
494 }
495 }
496
497 void Application::DestroyControls()
498 {

Callers

nothing calls this directly

Calls 3

getValueListMethod · 0.80
InitialiseMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected