aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2001-08-10 02:01:20 +0000
committernyamatongwe <devnull@localhost>2001-08-10 02:01:20 +0000
commit7c33542c6be6d25b133a4c560d14cb590b5178cb (patch)
tree1d09f9fef0d47a9708da55651dcabb8e6d3e2008 /include
parentcd08b8e2c98ca4063d272644d15aa2c1e24228ba (diff)
downloadscintilla-mirror-7c33542c6be6d25b133a4c560d14cb590b5178cb.tar.gz
Added PositionFromLocationClose which returns the position in the document
of a pixel location in the window but returns INVALID_POSITION if the location is outside the text area or not near text. Improvements to mouse dwell to make it only trigger when the mouse is up, use PositionFromLocationClose to calculate the position parameter, and send a dwell end if the user types.
Diffstat (limited to 'include')
-rw-r--r--include/Scintilla.h1
-rw-r--r--include/Scintilla.iface4
2 files changed, 5 insertions, 0 deletions
diff --git a/include/Scintilla.h b/include/Scintilla.h
index 664d11879..dcfa4303d 100644
--- a/include/Scintilla.h
+++ b/include/Scintilla.h
@@ -58,6 +58,7 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam,
#define SCI_GETVIEWWS 2020
#define SCI_SETVIEWWS 2021
#define SCI_POSITIONFROMPOINT 2022
+#define SCI_POSITIONFROMPOINTCLOSE 2023
#define SCI_GOTOLINE 2024
#define SCI_GOTOPOS 2025
#define SCI_SETANCHOR 2026
diff --git a/include/Scintilla.iface b/include/Scintilla.iface
index 5baee89fc..0b0177291 100644
--- a/include/Scintilla.iface
+++ b/include/Scintilla.iface
@@ -134,6 +134,10 @@ set void SetViewWS=2021(int viewWS,)
# Find the position from a point within the window.
fun int PositionFromPoint=2022(int x, int y)
+# Find the position from a point within the window but return
+# INVALID_POSITION if not close to text.
+fun int PositionFromPointClose=2023(int x, int y)
+
# Set caret to start of a line and ensure it is visible.
fun void GotoLine=2024(int line,)