diff options
author | Neil <nyamatongwe@gmail.com> | 2018-04-04 15:46:53 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2018-04-04 15:46:53 +1000 |
commit | c1886dc599e9d985abef06d8779cfc90478c9ebd (patch) | |
tree | 9d488478bc5045ee9d665e9cb8bae773c296dd08 /src/EditView.h | |
parent | c66be88299d82de789c265025120a3dd7df1aa6c (diff) | |
download | scintilla-mirror-c1886dc599e9d985abef06d8779cfc90478c9ebd.tar.gz |
Cache client rectangle on EditView so it can be used easily inside EditView.
Diffstat (limited to 'src/EditView.h')
-rw-r--r-- | src/EditView.h | 4 |
1 files changed, 4 insertions, 0 deletions
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<PerLine> 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; |