]> Dogcows Code - chaz/openbox/blob - otk/strut.hh
rm the python api docs
[chaz/openbox] / otk / strut.hh
1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
2 #ifndef __strut_hh
3 #define __strut_hh
4
5 /*! @file strut.hh
6 @brief The Strut struct defines a margin on 4 sides
7 */
8
9 namespace otk {
10
11 //! Defines a margin on 4 sides
12 struct Strut {
13 //! The margin on the top of the Strut
14 unsigned int top;
15 //! The margin on the bottom of the Strut
16 unsigned int bottom;
17 //! The margin on the left of the Strut
18 unsigned int left;
19 //! The margin on the right of the Strut
20 unsigned int right;
21
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) {}
26
27 bool operator==(const Strut &o) const {
28 return top == o.top && bottom == o.bottom && left == o.left &&
29 right == o.right;
30 }
31 };
32
33 }
34
35 #endif // __strut_hh
This page took 0.034672 seconds and 4 git commands to generate.