diff options
| author | Neil <nyamatongwe@gmail.com> | 2014-07-08 13:08:02 +1000 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2014-07-08 13:08:02 +1000 |
| commit | 0e655d49868553951a036a203b7407d9d2afc532 (patch) | |
| tree | 5978f0a1f036cdf273de14eb5b940ed03bb056ef /src/Editor.h | |
| parent | 126d13674fa63256b6576e5317791b6f77ebefb3 (diff) | |
| download | scintilla-mirror-0e655d49868553951a036a203b7407d9d2afc532.tar.gz | |
Specifying some methods as const as they are used from display and measurement
code that will be changed to have read-only access.
Diffstat (limited to 'src/Editor.h')
| -rw-r--r-- | src/Editor.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Editor.h b/src/Editor.h index c7d44c16d..103891e71 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -333,14 +333,14 @@ protected: // ScintillaBase subclass needs access to much of Editor // The top left visible point in main window coordinates. Will be 0,0 except for // scroll views where it will be equivalent to the current scroll position. - virtual Point GetVisibleOriginInMain(); + virtual Point GetVisibleOriginInMain() const; Point DocumentPointFromView(Point ptView); // Convert a point from view space to document int TopLineOfMain() const; // Return the line at Main's y coordinate 0 - virtual PRectangle GetClientRectangle(); + virtual PRectangle GetClientRectangle() const; virtual PRectangle GetClientDrawingRectangle(); PRectangle GetTextRectangle(); - int LinesOnScreen(); + int LinesOnScreen() const; int LinesToScroll(); int MaxScrollPos(); SelectionPosition ClampPositionIntoDocument(SelectionPosition sp) const; |
