mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-22 23:30:37 +01:00
25 lines
900 B
C++
25 lines
900 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() const = 0;
|
|
HighlightCell * reusableCell(int index, int type) override;
|
|
int reusableCellCount(int type) override;
|
|
int typeAtLocation(int i, int j) override;
|
|
};
|
|
|
|
#endif
|