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.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/EditView.h') diff --git a/src/EditView.h b/src/EditView.h index 8a194236d..5e7a6d29a 100644 --- a/src/EditView.h +++ b/src/EditView.h @@ -47,6 +47,7 @@ typedef void (*DrawTabArrowFn)(Surface *surface, PRectangle rcTab, int ymid); */ class EditView { public: + PRectangle rectangleView; PrintParameters printParameters; std::unique_ptr ldTabstops; int tabWidthMinimumPixels; @@ -93,6 +94,9 @@ public: void operator=(const EditView &) = delete; virtual ~EditView(); + PRectangle ViewRectangle() const; + void SetViewRectangle(PRectangle rectangle); + bool SetTwoPhaseDraw(bool twoPhaseDraw); bool SetPhasesDraw(int phases); bool LinesOverlap() const; -- cgit v1.2.3