add operator==
authorDana Jansens <danakj@orodu.net>
Sat, 1 Feb 2003 12:23:55 +0000 (12:23 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 1 Feb 2003 12:23:55 +0000 (12:23 +0000)
otk/strut.hh

index 365055d4a1e8818afc16200d7245f34778cd2a7d..71553da2e74a09845d8f928948803caf25af4212 100644 (file)
@@ -23,6 +23,11 @@ struct Strut {
   Strut(void): top(0), bottom(0), left(0), right(0) {}
   //! Constructs a new Strut with margins
   Strut(int l, int t, int r, int b): top(t), bottom(b), left(l), right(r) {}
+
+  bool operator==(const Strut &o) const {
+    return top == o.top && bottom == o.bottom && left == o.left &&
+      right == o.right;
+  }
 };
 
 }