diff options
author | Neil <nyamatongwe@gmail.com> | 2014-07-08 13:22:40 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2014-07-08 13:22:40 +1000 |
commit | e34a993a93ef59b13eb32b6fd5b53d8e95b75f0e (patch) | |
tree | a31eab84831b34da75a2dc99bb1e5eb25dcc4bc2 /src/Editor.h | |
parent | 0e655d49868553951a036a203b7407d9d2afc532 (diff) | |
download | scintilla-mirror-e34a993a93ef59b13eb32b6fd5b53d8e95b75f0e.tar.gz |
Changing further non-virtual methods to const where made possible by previous
change.
Diffstat (limited to 'src/Editor.h')
-rw-r--r-- | src/Editor.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Editor.h b/src/Editor.h index 103891e71..64e46f83d 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -334,15 +334,15 @@ 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() const; - Point DocumentPointFromView(Point ptView); // Convert a point from view space to document + Point DocumentPointFromView(Point ptView) const; // Convert a point from view space to document int TopLineOfMain() const; // Return the line at Main's y coordinate 0 virtual PRectangle GetClientRectangle() const; virtual PRectangle GetClientDrawingRectangle(); - PRectangle GetTextRectangle(); + PRectangle GetTextRectangle() const; int LinesOnScreen() const; - int LinesToScroll(); - int MaxScrollPos(); + int LinesToScroll() const; + int MaxScrollPos() const; SelectionPosition ClampPositionIntoDocument(SelectionPosition sp) const; Point LocationFromPosition(SelectionPosition pos); Point LocationFromPosition(int pos); @@ -569,7 +569,7 @@ protected: // ScintillaBase subclass needs access to much of Editor /** PositionInSelection returns true if position in selection. */ bool PositionInSelection(int pos); bool PointInSelection(Point pt); - bool PointInSelMargin(Point pt); + bool PointInSelMargin(Point pt) const; Window::Cursor GetMarginCursor(Point pt) const; void TrimAndSetSelection(int currentPos_, int anchor_); void LineSelection(int lineCurrentPos_, int lineAnchorPos_, bool wholeLine); |