aboutsummaryrefslogtreecommitdiff
path: root/CruUI/ui/ui_base.h
diff options
context:
space:
mode:
Diffstat (limited to 'CruUI/ui/ui_base.h')
-rw-r--r--CruUI/ui/ui_base.h5
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;