aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authornyamatongwe <unknown>2009-05-03 08:45:26 +0000
committernyamatongwe <unknown>2009-05-03 08:45:26 +0000
commitfcd6000ae9db0766a65cc0ab1b7da2cfa2b2f30f (patch)
treed0ba622e6ceb3efaa9cecb5c094e7e84379e1cd4 /include
parent3337bd8eeec8eec42e9f6900cc74c7068c07be71 (diff)
downloadscintilla-mirror-fcd6000ae9db0766a65cc0ab1b7da2cfa2b2f30f.tar.gz
Added CharPositionFromPoint and CharPositionFromPointClose and merged the
implementation for these and PositionFromPoint and PositionFromPointClose into a single function with flags for the different modes.
Diffstat (limited to 'include')
-rw-r--r--include/Scintilla.h2
-rw-r--r--include/Scintilla.iface7
2 files changed, 9 insertions, 0 deletions
diff --git a/include/Scintilla.h b/include/Scintilla.h
index 677cd0325..b31e81831 100644
--- a/include/Scintilla.h
+++ b/include/Scintilla.h
@@ -705,6 +705,8 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam,
#define SCI_ANNOTATIONGETSTYLEOFFSET 2551
#define UNDO_MAY_COALESCE 1
#define SCI_ADDUNDOACTION 2560
+#define SCI_CHARPOSITIONFROMPOINT 2561
+#define SCI_CHARPOSITIONFROMPOINTCLOSE 2562
#define SCI_STARTRECORD 3001
#define SCI_STOPRECORD 3002
#define SCI_SETLEXER 4001
diff --git a/include/Scintilla.iface b/include/Scintilla.iface
index a2c905fb7..9c9eeb1be 100644
--- a/include/Scintilla.iface
+++ b/include/Scintilla.iface
@@ -1907,6 +1907,13 @@ val UNDO_MAY_COALESCE=1
# Add a container action to the undo stack
fun void AddUndoAction=2560(int token, int flags)
+# Find the position of a character from a point within the window.
+fun position CharPositionFromPoint=2561(int x, int y)
+
+# Find the position of a character from a point within the window.
+# Return INVALID_POSITION if not close to text.
+fun position CharPositionFromPointClose=2562(int x, int y)
+
# Start notifying the container of all key presses and commands.
fun void StartRecord=3001(,)