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

Method _setIndexForCell

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

Source from the content-addressed store, hash-verified

435}
436
437void TableView::_setIndexForCell(ssize_t index, TableViewCell* cell)
438{
439 cell->setAnchorPoint(Vec2(0.0f, 0.0f));
440 cell->setPosition(this->_offsetFromIndex(index));
441 cell->setIdx(index);
442}
443
444void TableView::_updateCellPositions()
445{

Callers 3

updateCellAtIndexMethod · 0.95
insertCellAtIndexMethod · 0.95
removeCellAtIndexMethod · 0.95

Calls 5

_offsetFromIndexMethod · 0.95
setIdxMethod · 0.80
Vec2Function · 0.50
setAnchorPointMethod · 0.45
setPositionMethod · 0.45

Tested by

no test coverage detected