diff options
author | nyamatongwe <unknown> | 2001-08-10 02:01:20 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2001-08-10 02:01:20 +0000 |
commit | 349377f2a1f612b39c0f0e8dc6bf17c1154e4e56 (patch) | |
tree | 1d09f9fef0d47a9708da55651dcabb8e6d3e2008 /src/Editor.h | |
parent | 70f5ef78a1635b4425cb6203f01c3e665c597da6 (diff) | |
download | scintilla-mirror-349377f2a1f612b39c0f0e8dc6bf17c1154e4e56.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 'src/Editor.h')
-rw-r--r-- | src/Editor.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Editor.h b/src/Editor.h index 5fdbbfae7..7b2c0e0a9 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -182,9 +182,10 @@ protected: // ScintillaBase subclass needs access to much of Editor int LinesOnScreen(); int LinesToScroll(); int MaxScrollPos(); - Point LocationFromPosition(unsigned int pos); - int XFromPosition(unsigned int pos); + Point LocationFromPosition(int pos); + int XFromPosition(int pos); int PositionFromLocation(Point pt); + int PositionFromLocationClose(Point pt); int PositionFromLineX(int line, int x); int LineFromLocation(Point pt); void SetTopLine(int topLineNew); @@ -308,6 +309,7 @@ protected: // ScintillaBase subclass needs access to much of Editor bool PointInSelection(Point pt); bool PointInSelMargin(Point pt); void LineSelection(int lineCurrent_, int lineAnchor_); + void DwellEnd(); virtual void ButtonDown(Point pt, unsigned int curTime, bool shift, bool ctrl, bool alt); void ButtonMove(Point pt); void ButtonUp(Point pt, unsigned int curTime, bool ctrl); |