Added copyright lines for files I've edited this year.
[synfig.git] / synfig-core / trunk / src / synfig / rect.h
index b620575..cc21e1f 100644 (file)
@@ -6,7 +6,7 @@
 **
 **     \legal
 **     Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
-**     Copyright (c) 2007 Chris Moore
+**     Copyright (c) 2007, 2008 Chris Moore
 **
 **     This package is free software; you can redistribute it and/or
 **     modify it under the terms of the GNU General Public License as
@@ -168,6 +168,10 @@ 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 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