MCPcopy Create free account
hub / github.com/axmolengine/axmol / cellAtIndex

Method cellAtIndex

extensions/GUI/src/GUI/ScrollView/TableView.cpp:147–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147TableViewCell* TableView::cellAtIndex(ssize_t idx)
148{
149 if (_indices->find(idx) != _indices->end())
150 {
151 for (const auto& cell : _cellsUsed)
152 {
153 if (cell->getIdx() == idx)
154 {
155 return cell;
156 }
157 }
158 }
159
160 return nullptr;
161}
162
163void TableView::updateCellAtIndex(ssize_t idx)
164{

Callers 4

updateCellAtIndexMethod · 0.95
removeCellAtIndexMethod · 0.95
onTouchBeganMethod · 0.95

Calls 3

getIdxMethod · 0.80
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected