1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
6 @brief The Strut struct defines a margin on 4 sides
11 //! Defines a margin on 4 sides
13 //! The margin on the top of the Strut
15 //! The margin on the bottom of the Strut
17 //! The margin on the left of the Strut
19 //! The margin on the right of the Strut
22 //! Constructs a new Strut with no margins
23 Strut(void): top(0), bottom(0), left(0), right(0) {}
24 //! Constructs a new Strut with margins
25 Strut(int l, int t, int r, int b): top(t), bottom(b), left(l), right(r) {}
27 bool operator==(const Strut &o) const {
28 return top == o.top && bottom == o.bottom && left == o.left &&