Numworks Epsilon  1.4.1
Graphing Calculator Operating System
regular_table_view_data_source.cpp
Go to the documentation of this file.
2 
3 namespace Shared {
4 
6  return i*columnWidth(0);
7 }
8 
10  return j*rowHeight(0);
11 }
12 
14  return (offsetX-1) / columnWidth(0);
15 }
16 
18  return (offsetY-1) / rowHeight(0);
19 }
20 
21 }
22 
int16_t KDCoordinate
Definition: coordinate.h:6
int indexFromCumulatedWidth(KDCoordinate offsetX) override
KDCoordinate cumulatedHeightFromIndex(int j) override
KDCoordinate cumulatedWidthFromIndex(int i) override
virtual KDCoordinate columnWidth(int i)=0
virtual KDCoordinate rowHeight(int j)=0
int indexFromCumulatedHeight(KDCoordinate offsetY) override