diff options
author | crupest <crupest@outlook.com> | 2018-09-08 23:31:20 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2018-09-08 23:31:20 +0800 |
commit | 74031db4b8c366531db5be8fa8d765483ab377b0 (patch) | |
tree | 558ed98f22eb182b7d7017e5a51bdb14d5e92268 /CruUI/ui/ui_base.h | |
parent | 7cbe80c19170c8c742fd280c555eafbd2a51b4da (diff) | |
download | cru-74031db4b8c366531db5be8fa8d765483ab377b0.tar.gz cru-74031db4b8c366531db5be8fa8d765483ab377b0.tar.bz2 cru-74031db4b8c366531db5be8fa8d765483ab377b0.zip |
...
Diffstat (limited to 'CruUI/ui/ui_base.h')
-rw-r--r-- | CruUI/ui/ui_base.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/CruUI/ui/ui_base.h b/CruUI/ui/ui_base.h index 43b4a6dc..15847c1d 100644 --- a/CruUI/ui/ui_base.h +++ b/CruUI/ui/ui_base.h @@ -36,6 +36,11 @@ namespace cru float height; }; + inline Size operator - (const Size& left, const Size& right) + { + return Size(left.width - right.width, left.height - right.height); + } + struct Rect { Rect() = default; |