diff options
author | Neil <nyamatongwe@gmail.com> | 2015-01-16 09:48:30 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2015-01-16 09:48:30 +1100 |
commit | e8b4d6d131055b045d22c14e4cb3ec1698ce0941 (patch) | |
tree | 3d014f967242826dfd909fa0ed2defcbcc5d264a /include/Platform.h | |
parent | 19f38f82e0a959b7e7235547b9bcecc16d89b3db (diff) | |
download | scintilla-mirror-e8b4d6d131055b045d22c14e4cb3ec1698ce0941.tar.gz |
When the mouse is on the line between margin and text changed to treat as within
text. Helps on PLAT_CURSES.
Diffstat (limited to 'include/Platform.h')
-rw-r--r-- | include/Platform.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/Platform.h b/include/Platform.h index 4bba252f2..c4a1a0b40 100644 --- a/include/Platform.h +++ b/include/Platform.h @@ -144,6 +144,11 @@ public: return (pt.x >= left) && (pt.x <= right) && (pt.y >= top) && (pt.y <= bottom); } + bool ContainsWholePixel(Point pt) const { + // Does the rectangle contain all of the pixel to left/below the point + return (pt.x >= left) && ((pt.x+1) <= right) && + (pt.y >= top) && ((pt.y+1) <= bottom); + } bool Contains(PRectangle rc) const { return (rc.left >= left) && (rc.right <= right) && (rc.top >= top) && (rc.bottom <= bottom); |