summaryrefslogtreecommitdiff
path: root/otk
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-02-01 12:23:55 +0000
committerDana Jansens <danakj@orodu.net>2003-02-01 12:23:55 +0000
commit5802cf6109b720b8f7fa90e2c342b9dc202a6d9b (patch)
tree3268186f1d578bbc9b2bfb067c968545252d6be6 /otk
parenta7c7ae09aa53c90d5dd58eb4246debb3437b86dd (diff)
add operator==
Diffstat (limited to 'otk')
-rw-r--r--otk/strut.hh5
1 files changed, 5 insertions, 0 deletions
diff --git a/otk/strut.hh b/otk/strut.hh
index 365055d4..71553da2 100644
--- a/otk/strut.hh
+++ b/otk/strut.hh
@@ -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;
+ }
};
}