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

Method findItemIndexWith

MyGUIEngine/src/MyGUI_ListBox.cpp:853–861  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

851 }
852
853 size_t ListBox::findItemIndexWith(const UString& _name)
854 {
855 for (size_t pos = 0; pos < mItemsInfo.size(); pos++)
856 {
857 if (mItemsInfo[pos].first == _name)
858 return pos;
859 }
860 return ITEM_NONE;
861 }
862
863 int ListBox::getOptimalHeight() const
864 {

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected