aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/XLayerItem.hh
diff options
context:
space:
mode:
authorMathias Gumz <akira at fluxbox dot org>2011-02-23 21:49:27 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2011-02-23 21:49:27 (GMT)
commit9616a676d869b8f67742da99d55e9327ea867166 (patch)
tree32d8daf4d851b4038e7098f88570891c0727bd7b /src/FbTk/XLayerItem.hh
parent813e6c4402b7d13a9e7b1ce3e391bc4c8d894ea3 (diff)
downloadfluxbox_pavel-9616a676d869b8f67742da99d55e9327ea867166.zip
fluxbox_pavel-9616a676d869b8f67742da99d55e9327ea867166.tar.bz2
renamed FbTk::XLayer to FbTk::Layer and FbTk::XLayerItem to FbTk::LayerItem
Diffstat (limited to 'src/FbTk/XLayerItem.hh')
-rw-r--r--src/FbTk/XLayerItem.hh79
1 files changed, 0 insertions, 79 deletions
diff --git a/src/FbTk/XLayerItem.hh b/src/FbTk/XLayerItem.hh
deleted file mode 100644
index 67da511..0000000
--- a/src/FbTk/XLayerItem.hh
+++ /dev/null
@@ -1,79 +0,0 @@
1// XLayerItem.hh for FbTk - fluxbox toolkit
2// Copyright (c) 2003 Henrik Kinnunen (fluxgen at fluxbox dot org)
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#ifndef FBTK_XLAYERITEM_HH
24#define FBTK_XLAYERITEM_HH
25
26#include "XLayer.hh"
27#include "NotCopyable.hh"
28#include <vector>
29
30namespace FbTk {
31
32class FbWindow;
33
34class XLayerItem : private NotCopyable {
35public:
36 typedef std::vector<FbWindow *> Windows;
37
38 XLayerItem(FbWindow &win, XLayer &layer);
39 ~XLayerItem();
40
41 void setLayer(XLayer &layer);
42
43 void raise();
44 void lower();
45 void tempRaise(); // this raise gets reverted by a restack()
46
47 // send to next layer up
48 void raiseLayer();
49 void lowerLayer();
50 void moveToLayer(int layernum);
51
52 // this is needed for step and cycle functions
53 // (you need to know the next one visible, otherwise nothing may appear to happen)
54 // not yet implemented
55 bool visible() const { return true; }
56
57 const XLayer &getLayer() const { return *m_layer; }
58 XLayer &getLayer() { return *m_layer; }
59 int getLayerNum() { return m_layer->getLayerNum(); }
60
61 // an XLayerItem holds several windows that are equivalent in a layer
62 // (i.e. if one is raised, then they should all be).
63 void addWindow(FbWindow &win);
64 void removeWindow(FbWindow &win);
65
66 // using this you can bring one window to the top of this item (equivalent to add then remove)
67 void bringToTop(FbWindow &win);
68
69 Windows &getWindows() { return m_windows; }
70 size_t numWindows() const { return m_windows.size(); }
71
72private:
73 XLayer *m_layer;
74 Windows m_windows;
75};
76
77}
78
79#endif // FBTK_XLAYERITEM_HH