| 332 | } |
| 333 | |
| 334 | Vec2 TableView::__offsetFromIndex(ssize_t index) |
| 335 | { |
| 336 | Vec2 offset; |
| 337 | Size cellSize; |
| 338 | |
| 339 | switch (this->getDirection()) |
| 340 | { |
| 341 | case Direction::HORIZONTAL: |
| 342 | offset.set(_vCellsPositions[index], 0.0f); |
| 343 | break; |
| 344 | default: |
| 345 | offset.set(0.0f, _vCellsPositions[index]); |
| 346 | break; |
| 347 | } |
| 348 | |
| 349 | return offset; |
| 350 | } |
| 351 | |
| 352 | ssize_t TableView::_indexFromOffset(Vec2 offset) |
| 353 | { |
no test coverage detected