aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/XLayerItem.hh
diff options
context:
space:
mode:
authorrathnor <rathnor>2003-02-09 14:11:14 (GMT)
committerrathnor <rathnor>2003-02-09 14:11:14 (GMT)
commite3b99d4e485591df52b2398fce9adbcece2b9917 (patch)
tree44c14c5160e07e1af0671e141ae99cc1f2e66609 /src/FbTk/XLayerItem.hh
parent1a04cf1ce2649400d41c43024bd163a059cc426d (diff)
downloadfluxbox_pavel-e3b99d4e485591df52b2398fce9adbcece2b9917.zip
fluxbox_pavel-e3b99d4e485591df52b2398fce9adbcece2b9917.tar.bz2
fixing up of layer code
Diffstat (limited to 'src/FbTk/XLayerItem.hh')
-rw-r--r--src/FbTk/XLayerItem.hh28
1 files changed, 24 insertions, 4 deletions
diff --git a/src/FbTk/XLayerItem.hh b/src/FbTk/XLayerItem.hh
index 4706e2b..b3fa9ca 100644
--- a/src/FbTk/XLayerItem.hh
+++ b/src/FbTk/XLayerItem.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: XLayerItem.hh,v 1.4 2003/02/03 13:42:47 fluxgen Exp $ 23// $Id: XLayerItem.hh,v 1.5 2003/02/09 14:11:14 rathnor Exp $
24 24
25#ifndef FBTK_XLAYERITEM_HH 25#ifndef FBTK_XLAYERITEM_HH
26#define FBTK_XLAYERITEM_HH 26#define FBTK_XLAYERITEM_HH
@@ -45,19 +45,39 @@ public:
45 45
46 void raise(); 46 void raise();
47 void lower(); 47 void lower();
48 // go above the next item visible in this layer
48 void stepUp(); 49 void stepUp();
49 void stepDown(); 50 void stepDown();
50 //!! we don't need this? 51
52 // send to next layer up
53 void raiseLayer();
54 void lowerLayer();
55 void moveToLayer(int layernum);
56
57 // this is needed for step and cycle functions
58 // (you need to know the next one visible, otherwise nothing may appear to happen)
59 // not yet implemented
51 bool visible() const { return true; } 60 bool visible() const { return true; }
52 61
53 const XLayer &getLayer() const { return *m_layer; } 62 const XLayer &getLayer() const { return *m_layer; }
54 XLayer &getLayer() { return *m_layer; } 63 XLayer &getLayer() { return *m_layer; }
55 Window window() const { return m_window; } 64 int getLayerNum() { return m_layer->getLayerNum(); }
65
66 // an XLayerItem holds several windows that are equivalent in a layer
67 // (i.e. if one is raised, then they should all be).
68 void addWindow(Window win);
69 void removeWindow(Window win);
70
71 // using this you can bring one window to the top of this item (equivalent to add then remove)
72 void bringToTop(Window win);
73
74 Windows &getWindows() { return m_windows; }
75 size_t numWindows() const { return m_windows.size(); }
56 76
57private: 77private:
58 XLayer *m_layer; 78 XLayer *m_layer;
59 XLayer::iterator m_layeriterator; 79 XLayer::iterator m_layeriterator;
60 Window m_window; 80 Windows m_windows;
61}; 81};
62 82
63}; 83};