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

Method getWidgetByIndex

MyGUIEngine/src/MyGUI_ItemBox.cpp:519–532  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

517 }
518
519 Widget* ItemBox::getWidgetByIndex(size_t _index)
520 {
521 for (const auto& vectorItem : mVectorItems)
522 {
523 if (vectorItem->getVisible())
524 {
525 size_t index = getIndexByWidget(vectorItem);
526
527 if (index == _index)
528 return vectorItem;
529 }
530 }
531 return nullptr;
532 }
533
534 void ItemBox::onMouseButtonPressed(int _left, int _top, MouseButton _id)
535 {

Callers 10

GetWidgetByIndexFunction · 0.45
notifyClickAddMethod · 0.45
notifyClickAddMethod · 0.45
notifyClickAddMethod · 0.45
OnRenameDataMethod · 0.45
notifyClickAddMethod · 0.45
notifyClickAddMethod · 0.45
notifyClickAddMethod · 0.45

Calls 1

getVisibleMethod · 0.45

Tested by

no test coverage detected