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

Method getChildIndex

Tools/EditorFramework/Data.cpp:112–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110 }
111
112 size_t Data::getChildIndex(DataPtr _child)
113 {
114 if (_child == nullptr)
115 return MyGUI::ITEM_NONE;
116
117 for (size_t index = 0; index < mChilds.size(); index++)
118 {
119 if (_child == mChilds[index])
120 return index;
121 }
122
123 MYGUI_ASSERT(false, "Child data not found");
124 }
125
126 DataPtr Data::getChildByIndex(size_t _index)
127 {

Callers 3

doActionMethod · 0.80
doActionMethod · 0.80
updateSelectedFrameMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected