12 View(Document & document, const Rect & bounds = Rect(0,0,1,1), const Colour & colour = Colour(0.f,0.f,0.f,1.f))
13 : m_document(document), m_bounds(bounds), m_colour(colour), m_use_gpu_transform(false)
15 Debug("View Created - Bounds => {%s}", m_bounds.Str().c_str());
21 void Translate(Real x, Real y);
22 void ScaleAroundPoint(Real x, Real y, Real scaleAmt);
24 Rect TransformToViewCoords(const Rect& inp) const;
26 const Rect& GetBounds() const { return m_bounds; }
28 const bool UsingGPUTransform() const { return m_use_gpu_transform; }
29 void ToggleGPUTransform() { m_use_gpu_transform = (!m_use_gpu_transform); }
33 bool m_use_gpu_transform;
34 Document & m_document;