From 27a277fe4bfeff302b3ad4752e59311ef6426193 Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 4 Apr 2018 15:46:53 +1000 Subject: Backport: Cache client rectangle on EditView so it can be used easily inside EditView. Backport of changeset 6669:7402342dc7a3. --- src/EditView.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/EditView.cxx') diff --git a/src/EditView.cxx b/src/EditView.cxx index d9ca751a0..23c4663ee 100644 --- a/src/EditView.cxx +++ b/src/EditView.cxx @@ -190,6 +190,14 @@ EditView::EditView() { EditView::~EditView() { } +PRectangle EditView::ViewRectangle() const { + return rectangleView; +} + +void EditView::SetViewRectangle(PRectangle rectangle) { + rectangleView = rectangle; +} + bool EditView::SetTwoPhaseDraw(bool twoPhaseDraw) { const PhasesDraw phasesDrawNew = twoPhaseDraw ? phasesTwo : phasesOne; const bool redraw = phasesDraw != phasesDrawNew; -- cgit v1.2.3