aboutsummaryrefslogtreecommitdiff
path: root/src/HeadArea.hh
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2004-09-11 13:27:10 (GMT)
committerfluxgen <fluxgen>2004-09-11 13:27:10 (GMT)
commitad63de0281bc32180b8f4e70f2570fbae4a0487a (patch)
treea049ca1b1bd5b34541b651417d68b207304aef87 /src/HeadArea.hh
parent7d793fc6a8d7aa07a7636df2e96054c4a8e2c6a8 (diff)
downloadfluxbox_pavel-ad63de0281bc32180b8f4e70f2570fbae4a0487a.zip
fluxbox_pavel-ad63de0281bc32180b8f4e70f2570fbae4a0487a.tar.bz2
head specific strut
Diffstat (limited to 'src/HeadArea.hh')
-rw-r--r--src/HeadArea.hh48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/HeadArea.hh b/src/HeadArea.hh
new file mode 100644
index 0000000..116acf2
--- /dev/null
+++ b/src/HeadArea.hh
@@ -0,0 +1,48 @@
1// HeadArea.hh for Fluxbox Window Manager
2// Copyright (c) 2004 Mathieu De Zutter (mathieu at dezutter.org)
3//
4// Permission is hereby granted, free of charge, to any person obtaining a
5// copy of this software and associated documentation files (the "Software"),
6// to deal in the Software without restriction, including without limitation
7// the rights to use, copy, modify, merge, publish, distribute, sublicense,
8// and/or sell copies of the Software, and to permit persons to whom the
9// Software is furnished to do so, subject to the following conditions:
10//
11// The above copyright notice and this permission notice shall be included in
12// all copies or substantial portions of the Software.
13//
14// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE.
21
22#ifndef HEADAREA_HH
23#define HEADAREA_HH
24
25#include <memory>
26#include <list>
27
28#include "FbTk/NotCopyable.hh"
29
30class Strut;
31
32class HeadArea: private FbTk::NotCopyable {
33public:
34 HeadArea();
35
36 Strut *requestStrut(int head, int left, int right, int top, int bottom, Strut* next = 0);
37 void clearStrut(Strut *str);
38 bool updateAvailableWorkspaceArea();
39 const Strut *availableWorkspaceArea() const {
40 return m_available_workspace_area.get();
41 }
42
43private:
44 std::auto_ptr<Strut> m_available_workspace_area;
45 std::list<Strut*> m_strutlist;
46};
47
48#endif // HEADAREA_HH