mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-28 18:20:14 +01:00
25 lines
895 B
C++
25 lines
895 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/table_view_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 TableViewCell * reusableCell(int index) = 0;
|
|
virtual int reusableCellCount() = 0;
|
|
TableViewCell * reusableCell(int index, int type) override;
|
|
int reusableCellCount(int type) override;
|
|
int typeAtLocation(int i, int j) override;
|
|
};
|
|
|
|
#endif
|