diff options
author | crupest <crupest@outlook.com> | 2018-11-13 22:24:17 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2018-11-13 22:24:17 +0800 |
commit | 38a523be0085a9b529043bddc61e4aee04a6768d (patch) | |
tree | 4003c4795f111631f1df07e0b1fdd1c2b626b608 /src/ui/window.hpp | |
parent | 91dda866a0919f9e6cfb5e7857ac0466572d96d8 (diff) | |
download | cru-38a523be0085a9b529043bddc61e4aee04a6768d.tar.gz cru-38a523be0085a9b529043bddc61e4aee04a6768d.tar.bz2 cru-38a523be0085a9b529043bddc61e4aee04a6768d.zip |
Add enhanced bound check.
Diffstat (limited to 'src/ui/window.hpp')
-rw-r--r-- | src/ui/window.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ui/window.hpp b/src/ui/window.hpp index b2b8cde0..2955cd32 100644 --- a/src/ui/window.hpp +++ b/src/ui/window.hpp @@ -197,6 +197,9 @@ namespace cru::ui //This method has no effect for a window. Use SetClientSize instead. void SetSize(const Size& size) override final; + //Override. If point is in client area, it is in window. + bool IsPointInside(const Point& point) override final; + //*************** region: layout *************** void WindowInvalidateLayout(); |