aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.h
diff options
context:
space:
mode:
authorNeil Hodgson <nyamatongwe@gmail.com>2023-03-02 16:46:14 +1100
committerNeil Hodgson <nyamatongwe@gmail.com>2023-03-02 16:46:14 +1100
commitc61df8742a4865ac9c67f8ed017248b82fe5574e (patch)
treed6872e88601bb6dcdcc0e7b93de125fd33312ca7 /src/Editor.h
parente18633f14c36732d007e8c5bb742cc7d3e69d22d (diff)
downloadscintilla-mirror-c61df8742a4865ac9c67f8ed017248b82fe5574e.tar.gz
Cache client size when view moved or sized. That allows access to it from
secondary threads which otherwise shows warnings. Earlier approach of caching client rectangle failed to handle scrolling.
Diffstat (limited to 'src/Editor.h')
-rw-r--r--src/Editor.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Editor.h b/src/Editor.h
index d757dd4c4..61e0dd5b0 100644
--- a/src/Editor.h
+++ b/src/Editor.h
@@ -308,6 +308,7 @@ protected: // ScintillaBase subclass needs access to much of Editor
Point GetVisibleOriginInMain() const override;
PointDocument DocumentPointFromView(Point ptView) const; // Convert a point from view space to document
Sci::Line TopLineOfMain() const noexcept final; // Return the line at Main's y coordinate 0
+ virtual Point ClientSize() const;
virtual PRectangle GetClientRectangle() const;
virtual PRectangle GetClientDrawingRectangle();
PRectangle GetTextRectangle() const;