MCPcopy Create free account
hub / github.com/SOUI2/soui / GetItemPanel

Method GetItemPanel

SOUI/src/control/SMCListView.cpp:1009–1021  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1007}
1008
1009SItemPanel * SMCListView::GetItemPanel(int iItem)
1010{
1011 if(iItem<0 || iItem>=m_adapter->getCount())
1012 return NULL;
1013 SPOSITION pos = m_lstItems.GetHeadPosition();
1014 while(pos)
1015 {
1016 ItemInfo ii = m_lstItems.GetNext(pos);
1017 if((int)ii.pItem->GetItemIndex() == iItem)
1018 return ii.pItem;
1019 }
1020 return NULL;
1021}
1022
1023
1024void SMCListView::SetItemLocator(IListViewItemLocator *pItemLocator)

Callers

nothing calls this directly

Calls 3

GetHeadPositionMethod · 0.80
getCountMethod · 0.45
GetNextMethod · 0.45

Tested by

no test coverage detected