aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/XLayer.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/XLayer.hh
parent813e6c4402b7d13a9e7b1ce3e391bc4c8d894ea3 (diff)
downloadfluxbox-9616a676d869b8f67742da99d55e9327ea867166.zip
fluxbox-9616a676d869b8f67742da99d55e9327ea867166.tar.bz2
renamed FbTk::XLayer to FbTk::Layer and FbTk::XLayerItem to FbTk::LayerItem
Diffstat (limited to 'src/FbTk/XLayer.hh')
-rw-r--r--src/FbTk/XLayer.hh85
1 files changed, 0 insertions, 85 deletions
diff --git a/src/FbTk/XLayer.hh b/src/FbTk/XLayer.hh
deleted file mode 100644
index 6255950..0000000
--- a/src/FbTk/XLayer.hh
+++ /dev/null
@@ -1,85 +0,0 @@
1// XLayer.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_XLAYER_HH
24#define FBTK_XLAYER_HH
25
26#include <vector>
27#include <list>
28
29namespace FbTk {
30
31class MultLayers;
32class XLayerItem;
33
34class XLayer {
35public:
36
37 XLayer(MultLayers &manager, int layernum);
38 ~XLayer();
39
40 typedef std::list<XLayerItem *> ItemList;
41 typedef std::list<XLayerItem *>::iterator iterator;
42
43 //typedef std::list<XLayerItem *>::reverse_iterator reverse_iterator;
44
45 void setLayerNum(int layernum) { m_layernum = layernum; };
46 int getLayerNum() { return m_layernum; };
47 // Put all items on the same layer (called when layer item added to)
48 void alignItem(XLayerItem &item);
49 int countWindows();
50 void stackBelowItem(XLayerItem &item, XLayerItem *above);
51 XLayerItem *getLowestItem();
52 const ItemList &itemList() const { return m_items; }
53 ItemList &itemList() { return m_items; }
54
55 // we redefine these as XLayer has special optimisations, and X restacking needs
56 iterator insert(XLayerItem &item, unsigned int pos=0);
57 void remove(XLayerItem &item);
58
59 // bring to top of layer
60 void raise(XLayerItem &item);
61 void lower(XLayerItem &item);
62
63 // raise it, but don't make it permanent (i.e. restack will revert)
64 void tempRaise(XLayerItem &item);
65
66 // send to next layer up
67 void raiseLayer(XLayerItem &item);
68 void lowerLayer(XLayerItem &item);
69 void moveToLayer(XLayerItem &item, int layernum);
70
71 static void restack(const std::vector<XLayer*>& layers);
72
73private:
74 void restack();
75 void restackAndTempRaise(XLayerItem &item);
76
77 MultLayers &m_manager;
78 int m_layernum;
79 bool m_needs_restack;
80 ItemList m_items;
81};
82
83} // namespace FbTk
84
85#endif // FBTK_XLAYER_HH