diff options
author | Neil Hodgson <nyamatongwe@gmail.com> | 2016-11-05 20:32:17 +1100 |
---|---|---|
committer | Neil Hodgson <nyamatongwe@gmail.com> | 2016-11-05 20:32:17 +1100 |
commit | 8a62263409f5d222ac0d0ccf7bf0e7e0261224a8 (patch) | |
tree | 2fa3fea045c228d40e8a812b8553afd21f7f168a /src/Editor.h | |
parent | 1e36c7e89248cf5f9e4353673918e79cfcaeb857 (diff) | |
download | scintilla-mirror-8a62263409f5d222ac0d0ccf7bf0e7e0261224a8.tar.gz |
Add options to choose between the locations of a position when there
are multiple locations for one position.
The main current use is to find the location at the end of a line or display
line when the commonly used location is at the start of the next line.
Diffstat (limited to 'src/Editor.h')
-rw-r--r-- | src/Editor.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Editor.h b/src/Editor.h index d907a2d0b..9eec7a38a 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -285,8 +285,8 @@ protected: // ScintillaBase subclass needs access to much of Editor int LinesToScroll() const; int MaxScrollPos() const; SelectionPosition ClampPositionIntoDocument(SelectionPosition sp) const; - Point LocationFromPosition(SelectionPosition pos); - Point LocationFromPosition(int pos); + Point LocationFromPosition(SelectionPosition pos, PointEnd pe=peDefault); + Point LocationFromPosition(int pos, PointEnd pe=peDefault); int XFromPosition(int pos); int XFromPosition(SelectionPosition sp); SelectionPosition SPositionFromLocation(Point pt, bool canReturnInvalid=false, bool charPosition=false, bool virtualSpace=true); @@ -465,6 +465,7 @@ protected: // ScintillaBase subclass needs access to much of Editor SelectionPosition PositionUpOrDown(SelectionPosition spStart, int direction, int lastX); void CursorUpOrDown(int direction, Selection::selTypes selt); void ParaUpOrDown(int direction, Selection::selTypes selt); + Range RangeDisplayLine(int lineVisible); int StartEndDisplayLine(int pos, bool start); int VCHomeDisplayPosition(int position); int VCHomeWrapPosition(int position); |