From abc776a9ea02a564dfe44141e51e4cbc87a7a3a1 Mon Sep 17 00:00:00 2001 From: crupest Date: Sat, 24 Nov 2018 22:39:50 +0800 Subject: Develop layout for ScrollView --- src/ui/control.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/ui/control.hpp') diff --git a/src/ui/control.hpp b/src/ui/control.hpp index 6de7f450..44c98728 100644 --- a/src/ui/control.hpp +++ b/src/ui/control.hpp @@ -122,7 +122,7 @@ namespace cru::ui virtual bool IsPointInside(const Point& point); // Get the top control among all descendants (including self) in local coordinate. - Control* HitTest(const Point& point); + virtual Control* HitTest(const Point& point); //*************** region: graphic *************** @@ -406,7 +406,8 @@ namespace cru::ui bool clip_to_padding_ = false; Microsoft::WRL::ComPtr border_geometry_ = nullptr; - Microsoft::WRL::ComPtr in_border_geometry_ = nullptr; //used for foreground and background brush. + // used for foreground and background brush and clip. + Microsoft::WRL::ComPtr in_border_geometry_ = nullptr; Microsoft::WRL::ComPtr foreground_brush_ = nullptr; Microsoft::WRL::ComPtr background_brush_ = nullptr; -- cgit v1.2.3