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 | 59a2c47ed03ac40ec5a612cb74667dc70900dff5 (patch) | |
tree | d7852fd450d8e3b7d9a15b7a31056c04393459d1 /include | |
parent | 61b4fe924b11fecf2e14c337a06376860a85173d (diff) | |
download | scintilla-mirror-rel-3-5-3.tar.gz |
When the mouse is on the line between margin and text changed to treat as withinrel-3-5-3
text. Helps on PLAT_CURSES.
Diffstat (limited to 'include')
-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); |