projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7c7ae0
)
add operator==
author
Dana Jansens
<danakj@orodu.net>
Sat, 1 Feb 2003 12:23:55 +0000
(12:23 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Sat, 1 Feb 2003 12:23:55 +0000
(12:23 +0000)
otk/strut.hh
patch
|
blob
|
history
diff --git
a/otk/strut.hh
b/otk/strut.hh
index 365055d4a1e8818afc16200d7245f34778cd2a7d..71553da2e74a09845d8f928948803caf25af4212 100644
(file)
--- 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;
+ }
};
}