aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2012-05-26 15:15:07 +1000
committernyamatongwe <devnull@localhost>2012-05-26 15:15:07 +1000
commit1596a6d6b4540980cd6a8249460d881d6d190c1f (patch)
tree498aeab1fe1cf973892c069753d8d06ea5420785 /include
parent25e91c5a5870ea1138684dbd2d67888bccce5876 (diff)
downloadscintilla-mirror-1596a6d6b4540980cd6a8249460d881d6d190c1f.tar.gz
Add GetRangePointer and GetGapPosition methods.
Diffstat (limited to 'include')
-rw-r--r--include/Scintilla.h2
-rw-r--r--include/Scintilla.iface9
2 files changed, 11 insertions, 0 deletions
diff --git a/include/Scintilla.h b/include/Scintilla.h
index d4da54a9d..e5d545349 100644
--- a/include/Scintilla.h
+++ b/include/Scintilla.h
@@ -728,6 +728,8 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam,
#define SCI_GETPOSITIONCACHE 2515
#define SCI_COPYALLOWLINE 2519
#define SCI_GETCHARACTERPOINTER 2520
+#define SCI_GETRANGEPOINTER 2643
+#define SCI_GETGAPPOSITION 2644
#define SCI_SETKEYSUNICODE 2521
#define SCI_GETKEYSUNICODE 2522
#define SCI_INDICSETALPHA 2523
diff --git a/include/Scintilla.iface b/include/Scintilla.iface
index ac496dba3..e133be69d 100644
--- a/include/Scintilla.iface
+++ b/include/Scintilla.iface
@@ -1924,6 +1924,15 @@ fun void CopyAllowLine=2519(,)
# characters in the document.
get int GetCharacterPointer=2520(,)
+# Return a read-only pointer to a range of characters in the document.
+# May move the gap so that the range is contiguous, but will only move up
+# to rangeLength bytes.
+get int GetRangePointer=2643(int position, int rangeLength)
+
+# Return a position which, to avoid performance costs, should not be within
+# the range of a call to GetRangePointer.
+get position GetGapPosition=2644(,)
+
# Always interpret keyboard input as Unicode
set void SetKeysUnicode=2521(bool keysUnicode,)