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

Method GetItemPanel

SOUI/src/control/SListView.cpp:718–730  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

716 }
717
718 SItemPanel * SListView::GetItemPanel(int iItem)
719 {
720 if(iItem<0 || iItem>=m_adapter->getCount())
721 return NULL;
722 SPOSITION pos = m_lstItems.GetHeadPosition();
723 while(pos)
724 {
725 ItemInfo ii = m_lstItems.GetNext(pos);
726 if((int)ii.pItem->GetItemIndex() == iItem)
727 return ii.pItem;
728 }
729 return NULL;
730 }
731
732
733 BOOL SListView::CreateChildren(pugi::xml_node xmlNode)

Callers

nothing calls this directly

Calls 3

GetHeadPositionMethod · 0.80
getCountMethod · 0.45
GetNextMethod · 0.45

Tested by

no test coverage detected