X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Fstrut.hh;h=71553da2e74a09845d8f928948803caf25af4212;hb=3dfe9f4ebeb7abd8446c52db0232b9f610a78846;hp=494cc4f13a77342cf123f2f2e7d498855ae736bc;hpb=d3b7c84d4c640face48dfb54d70de2bff1551429;p=chaz%2Fopenbox diff --git a/otk/strut.hh b/otk/strut.hh index 494cc4f1..71553da2 100644 --- a/otk/strut.hh +++ b/otk/strut.hh @@ -21,6 +21,13 @@ struct Strut { //! Constructs a new Strut with no margins 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; + } }; }