You can move around a document with Click+Drag!
[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                 
19                 private:
20                         Document & m_document;
21                         Rect m_bounds;
22         };
23 }
24
25 #endif //_VIEW_H

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