aboutsummaryrefslogtreecommitdiff
path: root/src/ui/control.hpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2018-11-24 00:41:38 +0800
committercrupest <crupest@outlook.com>2018-11-24 00:41:38 +0800
commitd4658bfd97e1770e7ab4de356b3fd8c0d1999493 (patch)
treeaa91d04d7abfe776625ed2980bcae82fbfd516d0 /src/ui/control.hpp
parente8589550140d20b675fa7736441d7cdd1daee4d7 (diff)
downloadcru-d4658bfd97e1770e7ab4de356b3fd8c0d1999493.tar.gz
cru-d4658bfd97e1770e7ab4de356b3fd8c0d1999493.tar.bz2
cru-d4658bfd97e1770e7ab4de356b3fd8c0d1999493.zip
Improve hit test for clip.
Diffstat (limited to 'src/ui/control.hpp')
-rw-r--r--src/ui/control.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/control.hpp b/src/ui/control.hpp
index 4374983b..6de7f450 100644
--- a/src/ui/control.hpp
+++ b/src/ui/control.hpp
@@ -121,6 +121,8 @@ namespace cru::ui
// fill and stroke with width of border.
virtual bool IsPointInside(const Point& point);
+ // Get the top control among all descendants (including self) in local coordinate.
+ Control* HitTest(const Point& point);
//*************** region: graphic ***************