aboutsummaryrefslogtreecommitdiff
path: root/src/Strut.hh
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2004-09-11 13:45:16 (GMT)
committerfluxgen <fluxgen>2004-09-11 13:45:16 (GMT)
commit768d98a39d3640f24ebe13e2c304fac3436a0a0d (patch)
tree3a5a60b06c4c2f3ba2e98e59c288c99ae93527b9 /src/Strut.hh
parent37757769634c836895d205b0a5149ffffaae9bfb (diff)
downloadfluxbox-768d98a39d3640f24ebe13e2c304fac3436a0a0d.zip
fluxbox-768d98a39d3640f24ebe13e2c304fac3436a0a0d.tar.bz2
head specific strut, patch from Mathieu De Zutter
Diffstat (limited to 'src/Strut.hh')
-rw-r--r--src/Strut.hh17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/Strut.hh b/src/Strut.hh
index 70930fb..bb4595c 100644
--- a/src/Strut.hh
+++ b/src/Strut.hh
@@ -20,28 +20,35 @@
20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21// DEALINGS IN THE SOFTWARE. 21// DEALINGS IN THE SOFTWARE.
22 22
23// $Id: Strut.hh,v 1.3 2004/01/19 18:30:59 fluxgen Exp $ 23// $Id: Strut.hh,v 1.4 2004/09/11 13:36:03 fluxgen Exp $
24 24
25#ifndef STRUT_HH 25#ifndef STRUT_HH
26#define STRUT_HH 26#define STRUT_HH
27 27
28class Strut { 28class Strut {
29public: 29public:
30 Strut(int left, int right, 30 Strut(int head, int left, int right,
31 int top, int bottom):m_left(left), m_right(right), 31 int top, int bottom, Strut* next = 0)
32 m_top(top), m_bottom(bottom) { } 32 :m_head(head), m_left(left), m_right(right),
33 m_top(top), m_bottom(bottom), m_next(next) { }
34 inline int head() const { return m_head; }
33 inline int left() const { return m_left; } 35 inline int left() const { return m_left; }
34 inline int right() const { return m_right; } 36 inline int right() const { return m_right; }
35 inline int bottom() const { return m_bottom; } 37 inline int bottom() const { return m_bottom; }
36 inline int top() const { return m_top; } 38 inline int top() const { return m_top; }
39 inline Strut* next() const { return m_next; }
37 bool operator == (const Strut &test) const { 40 bool operator == (const Strut &test) const {
38 return (left() == test.left() && 41 return (head() == test.head() &&
42 left() == test.left() &&
39 right() == test.right() && 43 right() == test.right() &&
40 top() == test.top() && 44 top() == test.top() &&
41 bottom() == test.bottom()); 45 bottom() == test.bottom());
42 } 46 }
43private: 47private:
48 Strut():m_head(0), m_left(0), m_right(0), m_top(0), m_bottom(0), m_next(0) {}
49 int m_head;
44 int m_left, m_right, m_top, m_bottom; 50 int m_left, m_right, m_top, m_bottom;
51 Strut *m_next; ///< link to struts on all heads
45}; 52};
46 53
47#endif // STRUT_HH 54#endif // STRUT_HH