From af2e38b320905bf3b1e5d0969d0811c47289bbfe Mon Sep 17 00:00:00 2001 From: crupest Date: Wed, 17 Mar 2021 15:04:16 +0800 Subject: ... --- include/cru/platform/GraphBase.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/cru/platform/GraphBase.hpp') diff --git a/include/cru/platform/GraphBase.hpp b/include/cru/platform/GraphBase.hpp index 6bf2736f..4d3c8f83 100644 --- a/include/cru/platform/GraphBase.hpp +++ b/include/cru/platform/GraphBase.hpp @@ -129,6 +129,11 @@ constexpr Size operator+(const Thickness& thickness, const Size& size) { return operator+(size, thickness); } +constexpr Thickness operator+(const Thickness& left, const Thickness& right) { + return {left.left + right.left, left.top + right.top, + left.right + right.right, left.bottom + right.bottom}; +} + constexpr bool operator==(const Thickness& left, const Thickness& right) { return left.left == right.left && left.top == right.top && left.right == right.right && left.bottom == right.bottom; -- cgit v1.2.3