4e2306a51718d53b8708239ae7b78f50c76f0546
[ipdf/code.git] / src / view.h
1 #ifndef _VIEW_H
2 #define _VIEW_H
3
4 #include "ipdf.h"
5 #include "document.h"
6
7 namespace IPDF
8 {
9         class View
10         {
11                 public:
12                         View(Document & document) : m_document(document), m_bounds(0,0,1,1) {}
13                         virtual ~View() {}
14
15                         void Render();
16                         
17                         void Translate(Real x, Real y);
18                         void ScaleAroundPoint(Real x, Real y, Real scaleAmt);
19                 
20                 private:
21                         void DrawGrid();
22                         Document & m_document;
23                         Rect m_bounds;
24         };
25 }
26
27 #endif //_VIEW_H

UCC git Repository :: git.ucc.asn.au