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

Method addWidgetModal

MyGUIEngine/src/MyGUI_InputManager.cpp:503–515  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

501 }
502
503 void InputManager::addWidgetModal(Widget* _widget)
504 {
505 if (nullptr == _widget)
506 return;
507 MYGUI_ASSERT(nullptr == _widget->getParent(), "Modal widget must be root");
508
509 _resetMouseFocusWidget();
510 removeWidgetModal(_widget);
511 mVectorModalRootWidget.push_back(_widget);
512
513 setKeyFocusWidget(_widget);
514 LayerManager::getInstance().upLayerItem(_widget);
515 }
516
517 void InputManager::removeWidgetModal(Widget* _widget)
518 {

Callers 6

InputManager.hFile · 0.80
setMessageModalMethod · 0.80
createMessageBoxMethod · 0.80
doModalMethod · 0.80
doModalMethod · 0.80

Calls 3

getParentMethod · 0.45
push_backMethod · 0.45
upLayerItemMethod · 0.45

Tested by

no test coverage detected