diff options
author | Neil Hodgson <nyamatongwe@gmail.com> | 2023-02-28 16:42:55 +1100 |
---|---|---|
committer | Neil Hodgson <nyamatongwe@gmail.com> | 2023-02-28 16:42:55 +1100 |
commit | a55079bdcea7f3bbaae726166890841eb1ad1c2f (patch) | |
tree | 92f1fb8e05e87bfec6cfafbb1a7c12c932b60308 /gtk/ScintillaGTK.h | |
parent | 0af575240f85b65e2a80eac8baddc38cd45eaf31 (diff) | |
download | scintilla-mirror-a55079bdcea7f3bbaae726166890841eb1ad1c2f.tar.gz |
Cache client rectangle when view resized. That makes it safer to access from
secondary threads.
Diffstat (limited to 'gtk/ScintillaGTK.h')
-rwxr-xr-x | gtk/ScintillaGTK.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/ScintillaGTK.h b/gtk/ScintillaGTK.h index a1ce05969..7c9b165cb 100755 --- a/gtk/ScintillaGTK.h +++ b/gtk/ScintillaGTK.h @@ -33,6 +33,8 @@ class ScintillaGTK : public ScintillaBase { int verticalScrollBarWidth; int horizontalScrollBarHeight; + PRectangle rectangleClient; + SelectionText primary; SelectionPosition posPrimary; @@ -128,6 +130,7 @@ private: bool HaveMouseCapture() override; bool PaintContains(PRectangle rc) override; void FullPaint(); + void SetClientRectangle(); PRectangle GetClientRectangle() const override; void ScrollText(Sci::Line linesToMove) override; void SetVerticalScrollPos() override; |