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

Method removeChild

Tools/EditorFramework/Data.cpp:91–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89 }
90
91 void Data::removeChild(DataPtr _child)
92 {
93 MYGUI_ASSERT(_child->getParent() == mWeakThis.lock(), "Child not found");
94
95 if (_child == getChildSelected())
96 mIndexSelected = MyGUI::ITEM_NONE;
97
98 mChilds.erase(std::remove(mChilds.begin(), mChilds.end(), _child), mChilds.end());
99 _child->mParent = nullptr;
100 }
101
102 const std::string& Data::getPropertyValue(std::string_view _name) const
103 {

Callers 8

undoActionMethod · 0.45
deleteItemFromProjectMethod · 0.45
undoActionMethod · 0.45
clearMethod · 0.45
undoActionMethod · 0.45
doActionMethod · 0.45
undoActionMethod · 0.45
doActionMethod · 0.45

Calls 5

getParentMethod · 0.45
lockMethod · 0.45
eraseMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected