diff options
author | crupest <crupest@outlook.com> | 2018-11-24 22:39:50 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2018-11-24 22:39:50 +0800 |
commit | abc776a9ea02a564dfe44141e51e4cbc87a7a3a1 (patch) | |
tree | 67c11e09856799b8fa40a3f2e124a37e7538115f /src/ui/control.hpp | |
parent | d4658bfd97e1770e7ab4de356b3fd8c0d1999493 (diff) | |
download | cru-abc776a9ea02a564dfe44141e51e4cbc87a7a3a1.tar.gz cru-abc776a9ea02a564dfe44141e51e4cbc87a7a3a1.tar.bz2 cru-abc776a9ea02a564dfe44141e51e4cbc87a7a3a1.zip |
Develop layout for ScrollView
Diffstat (limited to 'src/ui/control.hpp')
-rw-r--r-- | src/ui/control.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
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<ID2D1Geometry> border_geometry_ = nullptr; - Microsoft::WRL::ComPtr<ID2D1Geometry> in_border_geometry_ = nullptr; //used for foreground and background brush. + // used for foreground and background brush and clip. + Microsoft::WRL::ComPtr<ID2D1Geometry> in_border_geometry_ = nullptr; Microsoft::WRL::ComPtr<ID2D1Brush> foreground_brush_ = nullptr; Microsoft::WRL::ComPtr<ID2D1Brush> background_brush_ = nullptr; |