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

Method _moveCellOutOfSight

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

Source from the content-addressed store, hash-verified

415}
416
417void TableView::_moveCellOutOfSight(TableViewCell* cell)
418{
419 if (_tableViewDelegate != nullptr)
420 {
421 _tableViewDelegate->tableCellWillRecycle(this, cell);
422 }
423
424 _cellsFreed.pushBack(cell);
425 _cellsUsed.eraseObject(cell);
426 _isUsedCellsDirty = true;
427
428 _indices->erase(cell->getIdx());
429 cell->reset();
430
431 if (cell->getParent() == this->getContainer())
432 {
433 this->getContainer()->removeChild(cell, false);
434 }
435}
436
437void TableView::_setIndexForCell(ssize_t index, TableViewCell* cell)
438{

Callers 3

updateCellAtIndexMethod · 0.95
removeCellAtIndexMethod · 0.95
scrollViewDidScrollMethod · 0.95

Calls 9

pushBackMethod · 0.80
eraseObjectMethod · 0.80
getIdxMethod · 0.80
getContainerMethod · 0.80
tableCellWillRecycleMethod · 0.45
eraseMethod · 0.45
resetMethod · 0.45
getParentMethod · 0.45
removeChildMethod · 0.45

Tested by

no test coverage detected