aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/XLayer.hh
diff options
context:
space:
mode:
authorrathnor <rathnor>2003-02-02 16:32:41 (GMT)
committerrathnor <rathnor>2003-02-02 16:32:41 (GMT)
commit1b063dcea92e0a7ac5008518fc5c13f03c055f54 (patch)
tree29d5b622c0870f06a94086ed463ab90e23bc673e /src/FbTk/XLayer.hh
parent5244fc32447d2649a52a06dc84d96da94e9fd715 (diff)
downloadfluxbox-1b063dcea92e0a7ac5008518fc5c13f03c055f54.zip
fluxbox-1b063dcea92e0a7ac5008518fc5c13f03c055f54.tar.bz2
Integration of new Layering code, plus updates to the layering code itself
- new KeyActions: Raise/LowerLayer, AlwaysOnTop/Bottom, Top/BottomLayer Added a "Quit" KeyAction
Diffstat (limited to 'src/FbTk/XLayer.hh')
-rw-r--r--src/FbTk/XLayer.hh15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/FbTk/XLayer.hh b/src/FbTk/XLayer.hh
index 94f30c8..739b818 100644
--- a/src/FbTk/XLayer.hh
+++ b/src/FbTk/XLayer.hh
@@ -20,7 +20,7 @@
20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21// DEALINGS IN THE SOFTWARE. 21// DEALINGS IN THE SOFTWARE.
22 22
23// $Id: XLayer.hh,v 1.1 2003/01/16 12:41:27 rathnor Exp $ 23// $Id: XLayer.hh,v 1.2 2003/02/02 16:32:41 rathnor Exp $
24 24
25 25
26#ifndef FBTK_XLAYER_HH 26#ifndef FBTK_XLAYER_HH
@@ -36,18 +36,27 @@ class XLayerItem;
36 36
37class XLayer : public FbTk::Layer<XLayerItem, std::list<XLayerItem *> > { 37class XLayer : public FbTk::Layer<XLayerItem, std::list<XLayerItem *> > {
38public: 38public:
39
39 XLayer(MultLayers &manager, int layernum); 40 XLayer(MultLayers &manager, int layernum);
40 ~XLayer(); 41 ~XLayer();
41 42
42 //typedef std::list<XLayerItem *>::iterator iterator; 43 typedef std::list<XLayerItem *> ItemList;
44 typedef std::list<XLayerItem *>::iterator iterator;
45
43 //typedef std::list<XLayerItem *>::reverse_iterator reverse_iterator; 46 //typedef std::list<XLayerItem *>::reverse_iterator reverse_iterator;
44 47
45 void setLayerNum(int layernum) { m_layernum = layernum; }; 48 void setLayerNum(int layernum) { m_layernum = layernum; };
46 int getLayerNum() { return m_layernum; }; 49 int getLayerNum() { return m_layernum; };
47 void restack(); 50 void restack();
51 int countWindows();
48 void stackBelowItem(XLayerItem *item, XLayerItem *above); 52 void stackBelowItem(XLayerItem *item, XLayerItem *above);
49 XLayerItem *getLowestItem(); 53 XLayerItem *getLowestItem();
50 54 XLayerItem *getItemBelow(XLayerItem &item);
55 XLayerItem *getItemAbove(XLayerItem &item);
56
57 const ItemList &getItemList() const { return itemList(); }
58 ItemList &getItemList() { return itemList(); }
59
51 // we redefine these as XLayer has special optimisations, and X restacking needs 60 // we redefine these as XLayer has special optimisations, and X restacking needs
52 iterator insert(XLayerItem &item, unsigned int pos=0); 61 iterator insert(XLayerItem &item, unsigned int pos=0);
53 void remove(XLayerItem &item); 62 void remove(XLayerItem &item);