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 | 27a277fe4bfeff302b3ad4752e59311ef6426193 (patch) | |
tree | 1568f0c4c1a3bea1e8364ad9d18e8e1c3fb32d3b /src/EditView.cxx | |
parent | 3c3a5dba7a21d03d133566f116953cff527e2167 (diff) | |
download | scintilla-mirror-27a277fe4bfeff302b3ad4752e59311ef6426193.tar.gz |
Backport: Cache client rectangle on EditView so it can be used easily inside EditView.
Backport of changeset 6669:7402342dc7a3.
Diffstat (limited to 'src/EditView.cxx')
-rw-r--r-- | src/EditView.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
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; |