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