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/control.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/control.h')
-rw-r--r-- | src/ui/control.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ui/control.h b/src/ui/control.h index 98d41d0d..964b61c4 100644 --- a/src/ui/control.h +++ b/src/ui/control.h @@ -309,6 +309,9 @@ namespace cru virtual Size OnMeasure(const Size& available_size); virtual void OnLayout(const Rect& rect); + Size DefaultMeasureWithPadding(const Size& available_size, const Thickness& padding); + void DefaultLayoutWithPadding(const Rect& rect, const Thickness& padding); + private: // Only for layout manager to use. // Check if the old position is updated to current position. |