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.cxx | |
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.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 37a6a9f9e..2bb107e0b 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; |