add operator==
This commit is contained in:
parent
a7c7ae09aa
commit
5802cf6109
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue