Files
Upsilon/escher/include/escher/simple_table_view_data_source.h
Émilie Feral 2e16365100 [escher] Reorganize all cells'name and factorize their layouts
Change-Id: I69900ee98ff6a6868f96d70a0e335a589ef16c3f
2017-02-20 10:54:02 +01:00

25 lines
894 B
C++

#ifndef ESCHER_SIMPLE_TABLE_VIEW_DATA_SOURCE_H
#define ESCHER_SIMPLE_TABLE_VIEW_DATA_SOURCE_H
#include <escher/table_view.h>
#include <escher/highlight_cell.h>
class SimpleTableViewDataSource : public TableViewDataSource {
public:
virtual KDCoordinate cellHeight() = 0;
virtual KDCoordinate cellWidth() = 0;
KDCoordinate columnWidth(int i) override;
KDCoordinate rowHeight(int j) override;
KDCoordinate cumulatedWidthFromIndex(int i) override;
KDCoordinate cumulatedHeightFromIndex(int j) override;
int indexFromCumulatedWidth(KDCoordinate offsetX) override;
int indexFromCumulatedHeight(KDCoordinate offsetY) override;
virtual HighlightCell * reusableCell(int index) = 0;
virtual int reusableCellCount() = 0;
HighlightCell * reusableCell(int index, int type) override;
int reusableCellCount(int type) override;
int typeAtLocation(int i, int j) override;
};
#endif