summaryrefslogtreecommitdiff
path: root/src/FbTk/XLayerItem.hh
diff options
context:
space:
mode:
authorrathnor <rathnor>2003-02-18 15:08:12 (GMT)
committerrathnor <rathnor>2003-02-18 15:08:12 (GMT)
commitaa602770fbbd4e84154028d3181d275b81ea914d (patch)
treea626f85fa25292ba6293bfac0f0c44117a04830c /src/FbTk/XLayerItem.hh
parent9de08b90e82681d8b49b4b17251d83fd05a413cc (diff)
downloadfluxbox_lack-aa602770fbbd4e84154028d3181d275b81ea914d.zip
fluxbox_lack-aa602770fbbd4e84154028d3181d275b81ea914d.tar.bz2
change XLayerItem to hold FbWindows instead of X Window IDs (Window)
Diffstat (limited to 'src/FbTk/XLayerItem.hh')
-rw-r--r--src/FbTk/XLayerItem.hh13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/FbTk/XLayerItem.hh b/src/FbTk/XLayerItem.hh
index b3fa9ca..1998382 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.5 2003/02/09 14:11:14 rathnor Exp $ 23// $Id: XLayerItem.hh,v 1.6 2003/02/18 15:08:12 rathnor Exp $
24 24
25#ifndef FBTK_XLAYERITEM_HH 25#ifndef FBTK_XLAYERITEM_HH
26#define FBTK_XLAYERITEM_HH 26#define FBTK_XLAYERITEM_HH
@@ -28,6 +28,7 @@
28#include "LayerItem.hh" 28#include "LayerItem.hh"
29#include "XLayer.hh" 29#include "XLayer.hh"
30#include "NotCopyable.hh" 30#include "NotCopyable.hh"
31#include "FbWindow.hh"
31 32
32#include <X11/Xlib.h> 33#include <X11/Xlib.h>
33 34
@@ -36,9 +37,9 @@ namespace FbTk {
36 37
37class XLayerItem : public LayerItem, private NotCopyable { 38class XLayerItem : public LayerItem, private NotCopyable {
38public: 39public:
39 typedef std::list<Window> Windows; 40 typedef std::list<FbWindow *> Windows;
40 41
41 XLayerItem(Window win, XLayer &layer); 42 XLayerItem(FbWindow &win, XLayer &layer);
42 ~XLayerItem(); 43 ~XLayerItem();
43 44
44 void setLayer(XLayer &layer); 45 void setLayer(XLayer &layer);
@@ -65,11 +66,11 @@ public:
65 66
66 // an XLayerItem holds several windows that are equivalent in a layer 67 // an XLayerItem holds several windows that are equivalent in a layer
67 // (i.e. if one is raised, then they should all be). 68 // (i.e. if one is raised, then they should all be).
68 void addWindow(Window win); 69 void addWindow(FbWindow &win);
69 void removeWindow(Window win); 70 void removeWindow(FbWindow &win);
70 71
71 // using this you can bring one window to the top of this item (equivalent to add then remove) 72 // using this you can bring one window to the top of this item (equivalent to add then remove)
72 void bringToTop(Window win); 73 void bringToTop(FbWindow &win);
73 74
74 Windows &getWindows() { return m_windows; } 75 Windows &getWindows() { return m_windows; }
75 size_t numWindows() const { return m_windows.size(); } 76 size_t numWindows() const { return m_windows.size(); }