aboutsummaryrefslogtreecommitdiff
path: root/src/ui/control.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/control.hpp')
-rw-r--r--src/ui/control.hpp5
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;