Numworks Epsilon  1.4.1
Graphing Calculator Operating System
simple_list_view_data_source.cpp
Go to the documentation of this file.
2 #include <assert.h>
3 
5  return cellHeight();
6 }
7 
9  return cellHeight() * j;
10 }
11 
13  KDCoordinate height = cellHeight();
14  if (height == 0) {
15  return 0;
16  }
17  return (offsetY - 1) / height;
18 }
19 
21  assert(type == 0);
22  return reusableCell(index);
23 }
24 
26  assert(type == 0);
27  return reusableCellCount();
28 }
29 
31  return 0;
32 }
int typeAtLocation(int i, int j) override
KDCoordinate cumulatedHeightFromIndex(int j) override
#define assert(e)
Definition: assert.h:9
int indexFromCumulatedHeight(KDCoordinate offsetY) override
int16_t KDCoordinate
Definition: coordinate.h:6
virtual int reusableCellCount()=0
virtual KDCoordinate cellHeight()=0
virtual HighlightCell * reusableCell(int index)=0
KDCoordinate rowHeight(int j) override