X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fview.h;h=fe93e6ce85ed37db2b9de4c1c9ba8d9d8f0a4c5a;hp=ff34415d165bf3e35f1164b7bd487b077743246a;hb=16f404f3edf222c467639f3e898eeb505075cde8;hpb=6dd539966821debd18e0b86ed126742cd81d7fc9 diff --git a/src/view.h b/src/view.h index ff34415..fe93e6c 100644 --- a/src/view.h +++ b/src/view.h @@ -27,11 +27,13 @@ namespace IPDF void Translate(Real x, Real y); void ScaleAroundPoint(Real x, Real y, Real scale_amount); + void SetBounds(const Rect & new_bounds); Rect TransformToViewCoords(const Rect& inp) const; const Rect& GetBounds() const { return m_bounds; } + const bool UsingGPUTransform() const { return m_use_gpu_transform; } // whether view transform calculated on CPU or GPU const bool UsingGPURendering() const { return m_use_gpu_rendering; } // whether GPU shaders are used or CPU rendering void ToggleGPUTransform() { m_use_gpu_transform = (!m_use_gpu_transform); m_bounds_dirty = true; m_buffer_dirty = true; }