aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/MultLayers.hh
diff options
context:
space:
mode:
authorrathnor <rathnor>2003-01-16 12:41:27 (GMT)
committerrathnor <rathnor>2003-01-16 12:41:27 (GMT)
commit000fe76aae9c19c0c799da7bfdfc377f4bd59793 (patch)
tree17896b42de7f1cbbbc636dc8af2e3264a22dd5a9 /src/FbTk/MultLayers.hh
parent00e10146668a4a04f13838d6df651870589b19e2 (diff)
downloadfluxbox_pavel-000fe76aae9c19c0c799da7bfdfc377f4bd59793.zip
fluxbox_pavel-000fe76aae9c19c0c799da7bfdfc377f4bd59793.tar.bz2
New Layer System
Diffstat (limited to 'src/FbTk/MultLayers.hh')
-rw-r--r--src/FbTk/MultLayers.hh54
1 files changed, 54 insertions, 0 deletions
diff --git a/src/FbTk/MultLayers.hh b/src/FbTk/MultLayers.hh
new file mode 100644
index 0000000..bb9f134
--- /dev/null
+++ b/src/FbTk/MultLayers.hh
@@ -0,0 +1,54 @@
1// MultLayers.hh for FbTk - fluxbox toolkit
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: MultLayers.hh,v 1.1 2003/01/16 12:41:27 rathnor Exp $
24
25#ifndef FBTK_MULTLAYERS_HH
26#define FBTK_MULTLAYERS_HH
27
28#include <vector>
29
30namespace FbTk {
31
32class XLayerItem;
33class XLayer;
34
35class MultLayers {
36public:
37 MultLayers(int numlayers);
38 ~MultLayers();
39 XLayerItem *getLowestItemAboveLayer(int layernum);
40 void addToTop(XLayerItem &item, int layernum);
41 //void move(XLayerItem &item, int layernum);
42 void raise(XLayerItem &item);
43 void lower(XLayerItem &item);
44 //void moveToTop(XLayerItem &item);
45 //void moveToBottom(XLayerItem &item);
46
47private:
48 int m_numlayers;
49 std::vector<XLayer *> m_layers;
50
51};
52
53};
54#endif // FBTK_MULTLAYERS_HH