Numworks Epsilon  1.4.1
Graphing Calculator Operating System
table_view_data_source.h
Go to the documentation of this file.
1 #ifndef ESCHER_TABLE_VIEW_DATA_SOURCE_H
2 #define ESCHER_TABLE_VIEW_DATA_SOURCE_H
3 
4 #include <escher/view.h>
6 
8 public:
9  virtual int numberOfRows() = 0;
10  virtual int numberOfColumns() = 0;
11  virtual void willDisplayCellAtLocation(HighlightCell * cell, int i, int j);
12  virtual KDCoordinate columnWidth(int i) = 0;
13  virtual KDCoordinate rowHeight(int j) = 0;
14  /* return the number of pixels to include in offset to display the column i at
15  the top */
16  virtual KDCoordinate cumulatedWidthFromIndex(int i) = 0;
17  virtual KDCoordinate cumulatedHeightFromIndex(int j) = 0;
18  /* return the number of columns (starting with first ones) that can be fully
19  * displayed in offsetX pixels.
20  * Caution: if the offset is exactly the size of n columns, the function
21  * returns n-1. */
22  virtual int indexFromCumulatedWidth(KDCoordinate offsetX) = 0;
23  virtual int indexFromCumulatedHeight(KDCoordinate offsetY) = 0;
24  virtual HighlightCell * reusableCell(int index, int type) = 0;
25  virtual int reusableCellCount(int type) = 0;
26  virtual int typeAtLocation(int i, int j) = 0;
27 };
28 
29 #endif
virtual int numberOfColumns()=0
virtual void willDisplayCellAtLocation(HighlightCell *cell, int i, int j)
int16_t KDCoordinate
Definition: coordinate.h:6
virtual int indexFromCumulatedWidth(KDCoordinate offsetX)=0
virtual KDCoordinate cumulatedWidthFromIndex(int i)=0
virtual int reusableCellCount(int type)=0
virtual KDCoordinate cumulatedHeightFromIndex(int j)=0
virtual KDCoordinate columnWidth(int i)=0
virtual int numberOfRows()=0
virtual KDCoordinate rowHeight(int j)=0
virtual int indexFromCumulatedHeight(KDCoordinate offsetY)=0
virtual int typeAtLocation(int i, int j)=0
virtual HighlightCell * reusableCell(int index, int type)=0