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/border_delegate.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/border_delegate.h')
| -rw-r--r-- | src/ui/controls/border_delegate.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ui/controls/border_delegate.h b/src/ui/controls/border_delegate.h index 5a7dfbed..6d3b31db 100644 --- a/src/ui/controls/border_delegate.h +++ b/src/ui/controls/border_delegate.h @@ -90,8 +90,10 @@ namespace cru::ui::controls void Draw(ID2D1DeviceContext* device_context, const Size& size) const; - Size GetBorderSize() const; - Rect CoerceLayoutRect(const Rect& rect) const; + Thickness GetBorderThickness() const + { + return Thickness(border_property_->GetWidth()); + } private: Control* control_; |
