diff options
author | crupest <crupest@outlook.com> | 2018-10-02 00:15:52 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2018-10-02 00:15:52 +0800 |
commit | 3b7e3d0ca26b526c8c4e6fc335085ac28d63bbab (patch) | |
tree | 095da7f36e7f4e150080feb753a2995fe2bac8c3 /src/ui/controls/button.h | |
parent | c9a423ef94f684ff21e79526f77f8ddc31a2100d (diff) | |
download | cru-3b7e3d0ca26b526c8c4e6fc335085ac28d63bbab.tar.gz cru-3b7e3d0ca26b526c8c4e6fc335085ac28d63bbab.tar.bz2 cru-3b7e3d0ca26b526c8c4e6fc335085ac28d63bbab.zip |
Make button use border delegate.
Diffstat (limited to 'src/ui/controls/button.h')
-rw-r--r-- | src/ui/controls/button.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ui/controls/button.h b/src/ui/controls/button.h index bd3f6eb3..7a303984 100644 --- a/src/ui/controls/button.h +++ b/src/ui/controls/button.h @@ -3,6 +3,7 @@ #include <initializer_list> #include "ui/control.h" +#include "border_delegate.h" namespace cru::ui::controls { @@ -34,8 +35,9 @@ namespace cru::ui::controls void OnMouseClickEnd(MouseButton button) override final; private: - Microsoft::WRL::ComPtr<ID2D1Brush> normal_border_brush_; - Microsoft::WRL::ComPtr<ID2D1Brush> pressed_border_brush_; - ID2D1Brush* current_border_brush_; + std::unique_ptr<BorderDelegate> border_delegate_; + + BorderProperty::Ptr normal_border_border_; + BorderProperty::Ptr pressed_border_border_; }; } |