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/EditView.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/EditView.h') diff --git a/src/EditView.h b/src/EditView.h index 79a88657a..dcfa352f4 100644 --- a/src/EditView.h +++ b/src/EditView.h @@ -111,7 +111,9 @@ public: void LayoutLine(const EditModel &model, int line, Surface *surface, const ViewStyle &vstyle, LineLayout *ll, int width = LineLayout::wrapWidthInfinite); - Point LocationFromPosition(Surface *surface, const EditModel &model, SelectionPosition pos, int topLine, const ViewStyle &vs); + Point LocationFromPosition(Surface *surface, const EditModel &model, SelectionPosition pos, int topLine, + const ViewStyle &vs, PointEnd pe); + Range RangeDisplayLine(Surface *surface, const EditModel &model, int lineVisible, const ViewStyle &vs); SelectionPosition SPositionFromLocation(Surface *surface, const EditModel &model, Point pt, bool canReturnInvalid, bool charPosition, bool virtualSpace, const ViewStyle &vs); SelectionPosition SPositionFromLineX(Surface *surface, const EditModel &model, int lineDoc, int x, const ViewStyle &vs); -- cgit v1.2.3