diff options
author | crupest <crupest@outlook.com> | 2018-10-02 00:32:21 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2018-10-02 00:32:21 +0800 |
commit | f55a20fd3bad952481339d47ff844ad816192f50 (patch) | |
tree | f06fef6ae60052ada11e41650b443565eeb5447e /src/ui/controls/button.h | |
parent | 3b7e3d0ca26b526c8c4e6fc335085ac28d63bbab (diff) | |
download | cru-f55a20fd3bad952481339d47ff844ad816192f50.tar.gz cru-f55a20fd3bad952481339d47ff844ad816192f50.tar.bz2 cru-f55a20fd3bad952481339d47ff844ad816192f50.zip |
Fix measure system of border.
Diffstat (limited to 'src/ui/controls/button.h')
-rw-r--r-- | src/ui/controls/button.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ui/controls/button.h b/src/ui/controls/button.h index 7a303984..4b57a5a3 100644 --- a/src/ui/controls/button.h +++ b/src/ui/controls/button.h @@ -31,6 +31,9 @@ namespace cru::ui::controls protected: void OnDraw(ID2D1DeviceContext* device_context) override; + Size OnMeasure(const Size& available_size) override; + void OnLayout(const Rect& rect) override; + void OnMouseClickBegin(MouseButton button) override final; void OnMouseClickEnd(MouseButton button) override final; |