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

Method _getContainerIndex

MyGUIEngine/src/MyGUI_ItemBox.cpp:489–502  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

487 }
488
489 size_t ItemBox::_getContainerIndex(const IntPoint& _point) const
490 {
491 for (const auto& item : mVectorItems)
492 {
493 if (item->getVisible())
494 {
495 if (item->getAbsoluteRect().inside(_point))
496 {
497 return getIndexByWidget(item);
498 }
499 }
500 }
501 return ITEM_NONE;
502 }
503
504 void ItemBox::_resetContainer(bool _update)
505 {

Callers

nothing calls this directly

Calls 2

getVisibleMethod · 0.45
insideMethod · 0.45

Tested by

no test coverage detected