1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
#ifndef GRID_H
#define GRID_H
class ResourceManager;
class Grid {
public:
Grid(ResourceManager *_res, int columns, int offset);
~Grid();
bool set_columns(int columns);
bool set_offset(int offset);
float get_width(int col) const;
float get_height(int row) const;
int get_column_count() const;
int get_row_count() const;
int get_offset() const;
private:
void rebuild_cells();
ResourceManager *res;
int column_count;
int row_count;
float *width;
float *height;
int page_offset;
};
#endif
|