File: grid.h

package info (click to toggle)
katarakt 0.1-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 392 kB
  • ctags: 580
  • sloc: cpp: 4,894; python: 125; lisp: 93; makefile: 13
file content (35 lines) | stat: -rw-r--r-- 512 bytes parent folder | download | duplicates (3)
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