aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/XLayerItem.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/XLayerItem.hh')
-rw-r--r--src/FbTk/XLayerItem.hh57
1 files changed, 57 insertions, 0 deletions
diff --git a/src/FbTk/XLayerItem.hh b/src/FbTk/XLayerItem.hh
new file mode 100644
index 0000000..e61b596
--- /dev/null
+++ b/src/FbTk/XLayerItem.hh
@@ -0,0 +1,57 @@
1// XLayerItem.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: XLayerItem.hh,v 1.1 2003/01/16 12:41:27 rathnor Exp $
24
25#ifndef FBTK_XLAYERITEM_HH
26#define FBTK_XLAYERITEM_HH
27
28#include "LayerItem.hh"
29#include "XLayer.hh"
30#include <X11/Xlib.h>
31
32
33namespace FbTk {
34
35class XLayerItem : public LayerItem {
36public:
37 XLayerItem();
38 ~XLayerItem();
39 void setLayer(XLayer &layer);
40 XLayer *getLayer() const { return m_layer; }
41 void raise();
42 void lower();
43 void stepUp();
44 void stepDown();
45 XLayer::iterator getLayerIterator() const { return m_layeriterator; };
46 void setLayerIterator(XLayer::iterator it) { m_layeriterator = it; };
47 virtual Window window() const = 0;
48 virtual bool visible() const = 0 ;
49
50private:
51 XLayer *m_layer;
52 XLayer::iterator m_layeriterator;
53};
54
55};
56
57#endif // FBTK_XLAYERITEM_HH