X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Frect.h;h=9480cffb9d9e2da7006e3a5ae5e0940591e51aa5;hb=334e15ce6c4d9b1f30a168a55e7ef4d31320d568;hp=b6205753c31033ad0b8d6ac1e3fb90fbbf1465c7;hpb=37600b4b217caa5e316984ec0b035c5e8f9698af;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/rect.h b/synfig-core/trunk/src/synfig/rect.h index b620575..9480cff 100644 --- a/synfig-core/trunk/src/synfig/rect.h +++ b/synfig-core/trunk/src/synfig/rect.h @@ -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