]> git.sesse.net Git - vlc/commitdiff
skins2: add comparison for two rect
authorErwan Tulou <erwan10@videolan.org>
Fri, 5 Apr 2013 12:59:04 +0000 (14:59 +0200)
committerErwan Tulou <erwan10@videolan.org>
Fri, 5 Apr 2013 17:14:33 +0000 (19:14 +0200)
modules/gui/skins2/utils/position.hpp

index ec5b761b8b96ca58020179346ca361f713870ea4..a02b3d9c2d48491bd0930e2cdbd9f8122653ce07 100644 (file)
@@ -263,6 +263,13 @@ public:
     static int min( int x, int y ) { return x < y ? x : y; }
     static int max( int x, int y ) { return x < y ? y : x; }
 
+    bool operator==( const rect& other ) const
+    {
+        return x == other.x &&
+               y == other.y &&
+               width == other.width &&
+               height == other.height;
+    }
 };
 
 #endif