Skip to content
Snippets Groups Projects
Select Git revision
  • v0.1
  • master default
  • v0.2
3 results

grid.h

Blame
  • user avatar
    Philipp Erhardt authored
    This is useful for reading documents that have a cover page in a book layout.
    67bb9cef
    History
    grid.h 512 B
    #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