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

Method _offsetFromIndex

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

Source from the content-addressed store, hash-verified

320}
321
322Vec2 TableView::_offsetFromIndex(ssize_t index)
323{
324 Vec2 offset = this->__offsetFromIndex(index);
325
326 const Size cellSize = _dataSource->tableCellSizeForIndex(this, index);
327 if (_vordering == VerticalFillOrder::TOP_DOWN)
328 {
329 offset.y = this->getContainer()->getContentSize().height - offset.y - cellSize.height;
330 }
331 return offset;
332}
333
334Vec2 TableView::__offsetFromIndex(ssize_t index)
335{

Callers 1

_setIndexForCellMethod · 0.95

Calls 4

__offsetFromIndexMethod · 0.95
getContainerMethod · 0.80
tableCellSizeForIndexMethod · 0.45
getContentSizeMethod · 0.45

Tested by

no test coverage detected