aboutsummaryrefslogtreecommitdiff
path: root/src/Strut.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/Strut.hh')
-rw-r--r--src/Strut.hh41
1 files changed, 41 insertions, 0 deletions
diff --git a/src/Strut.hh b/src/Strut.hh
new file mode 100644
index 0000000..a0e8dfc
--- /dev/null
+++ b/src/Strut.hh
@@ -0,0 +1,41 @@
1// Strut.hh for Fluxbox Window Manager
2// Copyright (c) 2003 Henrik Kinnunen (fluxgen at users.sourceforge.net)
3// and Simon Bowden (rathnor at users.sourceforge.net)
4//
5// Permission is hereby granted, free of charge, to any person obtaining a
6// copy of this software and associated documentation files (the "Software"),
7// to deal in the Software without restriction, including without limitation
8// the rights to use, copy, modify, merge, publish, distribute, sublicense,
9// and/or sell copies of the Software, and to permit persons to whom the
10// Software is furnished to do so, subject to the following conditions:
11//
12// The above copyright notice and this permission notice shall be included in
13// all copies or substantial portions of the Software.
14//
15// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21// DEALINGS IN THE SOFTWARE.
22
23// $Id: Strut.hh,v 1.2 2003/06/20 01:30:41 fluxgen Exp $
24
25#ifndef STRUT_HH
26#define STRUT_HH
27
28class Strut {
29public:
30 Strut(int left, int right,
31 int top, int bottom):m_left(left), m_right(right),
32 m_top(top), m_bottom(bottom) { }
33 int left() const { return m_left; }
34 int right() const { return m_right; }
35 int bottom() const { return m_bottom; }
36 int top() const { return m_top; }
37private:
38 int m_left, m_right, m_top, m_bottom;
39};
40
41#endif // STRUT_HH