| 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 | { |
no test coverage detected