From 8a62263409f5d222ac0d0ccf7bf0e7e0261224a8 Mon Sep 17 00:00:00 2001 From: Neil Hodgson Date: Sat, 5 Nov 2016 20:32:17 +1100 Subject: 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. --- src/Editor.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/Editor.h') 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); -- cgit v1.2.3