diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-01-01 21:20:51 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-01-16 00:38:53 +0100 |
| commit | 7b66e9c9de6df12f49b358d9496a9e64b68db550 (patch) | |
| tree | a7174cc9c15afb6ee7c8a462b4899d4e86ab4e82 /src/lib/rect.h | |
| parent | 348c4507bc8d37de6da9f4b2ecd1ae1b180c47d2 (diff) | |
Primitive auto-crop (#1477).
Diffstat (limited to 'src/lib/rect.h')
| -rw-r--r-- | src/lib/rect.h | 7 |
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; +} + + } |
