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/EditView.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/EditView.h')
-rw-r--r-- | src/EditView.h | 4 |
1 files changed, 3 insertions, 1 deletions
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); |