Zoom in and out with the mouse wheel.
[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                         Document & m_document;
22                         Rect m_bounds;
23         };
24 }
25
26 #endif //_VIEW_H

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