From 7f12d35ec024bca1dea42067678dfd8ead0d1b67 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 3 May 2009 08:45:26 +0000 Subject: Added CharPositionFromPoint and CharPositionFromPointClose and merged the implementation for these and PositionFromPoint and PositionFromPointClose into a single function with flags for the different modes. --- src/Editor.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/Editor.h') diff --git a/src/Editor.h b/src/Editor.h index 3b15920ff..d37606d5a 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -260,8 +260,7 @@ protected: // ScintillaBase subclass needs access to much of Editor int MaxScrollPos(); Point LocationFromPosition(int pos); int XFromPosition(int pos); - int PositionFromLocation(Point pt); - int PositionFromLocationClose(Point pt); + int PositionFromLocation(Point pt, bool canReturnInvalid=false, bool charPosition=false); int PositionFromLineX(int line, int x); int LineFromLocation(Point pt); void SetTopLine(int topLineNew); -- cgit v1.2.3