Files
Upsilon/apps/shared/regular_table_view_data_source.h
Émilie Feral 7a54fa0ea0 [apps/shared] Divide tab table controller in 2 classes
Change-Id: I7bd9f7395c000ad69198ab123ffcfe1b661350aa
2017-03-16 15:12:13 +01:00

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