From d4658bfd97e1770e7ab4de356b3fd8c0d1999493 Mon Sep 17 00:00:00 2001 From: crupest Date: Sat, 24 Nov 2018 00:41:38 +0800 Subject: Improve hit test for clip. --- src/ui/control.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ui/control.hpp') 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 *************** -- cgit v1.2.3