mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
23 lines
578 B
C++
23 lines
578 B
C++
#ifndef SHARED_REGULAR_TABLE_VIEW_DATA_SOURCE_H
|
|
#define SHARED_REGULAR_TABLE_VIEW_DATA_SOURCE_H
|
|
|
|
#include <escher.h>
|
|
|
|
namespace Shared {
|
|
|
|
/* Regular table view data source is a table view data source with equal sized
|
|
* columns and equal sized rows */
|
|
|
|
class RegularTableViewDataSource : public TableViewDataSource {
|
|
public:
|
|
KDCoordinate cumulatedHeightFromIndex(int j) override;
|
|
int indexFromCumulatedHeight(KDCoordinate offsetY) override;
|
|
KDCoordinate cumulatedWidthFromIndex(int i) override;
|
|
int indexFromCumulatedWidth(KDCoordinate offsetX) override;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|
|
|