From: dooglus Date: Wed, 23 Jan 2008 14:44:12 +0000 (+0000) Subject: Add operator== for rectangles. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=46f78dba18f9c38fa63ee6c3dca39e73ce5f52ee;p=synfig.git Add operator== for rectangles. git-svn-id: http://svn.voria.com/code@1426 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-core/trunk/src/synfig/rect.h b/synfig-core/trunk/src/synfig/rect.h index b620575..b6894c9 100644 --- a/synfig-core/trunk/src/synfig/rect.h +++ b/synfig-core/trunk/src/synfig/rect.h @@ -168,6 +168,8 @@ public: bool operator&&(const Rect& rhs)const { return etl::intersect(*this, rhs); } + bool operator==(const Rect &rhs)const { return get_min() == rhs.get_min() && get_max() == rhs.get_max(); } + bool is_valid()const { return valid(); } }; // END of class Rect