diff options
author | rathnor <rathnor> | 2003-01-16 12:41:27 (GMT) |
---|---|---|
committer | rathnor <rathnor> | 2003-01-16 12:41:27 (GMT) |
commit | 000fe76aae9c19c0c799da7bfdfc377f4bd59793 (patch) | |
tree | 17896b42de7f1cbbbc636dc8af2e3264a22dd5a9 /src/FbTk/XLayerItem.cc | |
parent | 00e10146668a4a04f13838d6df651870589b19e2 (diff) | |
download | fluxbox_lack-000fe76aae9c19c0c799da7bfdfc377f4bd59793.zip fluxbox_lack-000fe76aae9c19c0c799da7bfdfc377f4bd59793.tar.bz2 |
New Layer System
Diffstat (limited to 'src/FbTk/XLayerItem.cc')
-rw-r--r-- | src/FbTk/XLayerItem.cc | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/src/FbTk/XLayerItem.cc b/src/FbTk/XLayerItem.cc new file mode 100644 index 0000000..1c44638 --- /dev/null +++ b/src/FbTk/XLayerItem.cc | |||
@@ -0,0 +1,62 @@ | |||
1 | // XLayerItem.cc 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: XLayerItem.cc,v 1.1 2003/01/16 12:41:27 rathnor Exp $ | ||
24 | |||
25 | #include "XLayerItem.hh" | ||
26 | #include "XLayer.hh" | ||
27 | |||
28 | using namespace FbTk; | ||
29 | |||
30 | XLayerItem::XLayerItem() : | ||
31 | m_layer(0), m_layeriterator(0) {} | ||
32 | |||
33 | /* | ||
34 | XLayerItem::XLayerItem(XLayer &layer): | ||
35 | m_layer(&layer) { | ||
36 | m_layeriterator = layer.insert(*this); | ||
37 | }*/ | ||
38 | |||
39 | XLayerItem::~XLayerItem() { | ||
40 | m_layer->remove(*this); | ||
41 | } | ||
42 | |||
43 | void XLayerItem::setLayer(XLayer &layer) { | ||
44 | // make sure we don't try to set the same layer | ||
45 | m_layer = &layer; | ||
46 | } | ||
47 | |||
48 | void XLayerItem::raise() { | ||
49 | m_layer->raise(*this); | ||
50 | } | ||
51 | |||
52 | void XLayerItem::lower() { | ||
53 | m_layer->lower(*this); | ||
54 | } | ||
55 | |||
56 | void XLayerItem::stepUp() { | ||
57 | m_layer->stepUp(*this); | ||
58 | } | ||
59 | |||
60 | void XLayerItem::stepDown() { | ||
61 | m_layer->stepDown(*this); | ||
62 | } | ||