summaryrefslogtreecommitdiff
path: root/src/lib/rect.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-01-01 21:20:51 +0000
committerCarl Hetherington <cth@carlh.net>2022-01-16 00:38:53 +0100
commit7b66e9c9de6df12f49b358d9496a9e64b68db550 (patch)
treea7174cc9c15afb6ee7c8a462b4899d4e86ab4e82 /src/lib/rect.h
parent348c4507bc8d37de6da9f4b2ecd1ae1b180c47d2 (diff)
Primitive auto-crop (#1477).
Diffstat (limited to 'src/lib/rect.h')
-rw-r--r--src/lib/rect.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/rect.h b/src/lib/rect.h
index 5f807f499..a01e0f885 100644
--- a/src/lib/rect.h
+++ b/src/lib/rect.h
@@ -119,6 +119,13 @@ public:
};
+template <class T>
+bool operator== (Rect<T> const& a, Rect<T> const& b)
+{
+ return a.x == b.x && a.y == b.y && a.width == b.width && a.height == b.height;
+}
+
+
}