initial import
[bbkeys.git] / wminterface.hh
blob7e7af522381ac38cbe51a001854103d603f7a176
1 // wminterface.hh for bbtools.
2 //
3 // Copyright (c) 1998-1999 by John Kennis, jkennis@chello.nl
4 //
5 // This program is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation; either version 2 of the License, or
8 // (at your option) any later version.
9 //
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 // (See the included file COPYING / GPL-2.0)
21 #ifndef __WMINTERFACE_HH
22 #define __WMINTERFACE_HH
24 #include "NETInterface.hh"
26 class ToolWindow;
27 struct WindowList;
29 class WMInterface : public NETInterface {
31 public:
32 WMInterface(ToolWindow *);
33 ~WMInterface(void);
34 void sendWindowToDesktop(Window,int);
35 void shadeWindow(Window);
36 void maximizeWindow(Window,bool,bool);
37 void decorateToggleWindow(Window);
38 void stickWindow(Window);
39 void setWindowFocus(Window);
40 int isIconicState(Window);
41 int getAttributes(Window);
42 void sendClientMessage(Atom, XID);
43 void changeDesktop(int);
45 /* Atom getKWMModuleDesktopChange(void) { return kwm_module_desktop_change; }
46 Atom getKWMModuleDesktopNumberChange(void) {
47 return kwm_module_desktop_number_change; }
48 Atom getKWMModuleInit(void) { return kwm_module_init; }
49 Atom getKWMModuleWinAdd(void) { return kwm_module_win_add; }
50 Atom getKWMModuleWinRemove(void) { return kwm_module_win_remove; }
51 Atom getKWMModuleWinChange(void) { return kwm_module_win_change; }
52 Atom getKWMModuleWinActivate(void) { return kwm_module_win_activate; }
53 Atom getKWMModuleWinRaise(void) { return kwm_module_win_raise; }
54 Atom getKWMModuleWinLower(void) { return kwm_module_win_lower; }*/
55 protected:
56 virtual void NETNotifyStartup(void);
57 virtual void NETNotifyWindowAdd(Window,int);
58 virtual void NETNotifyDel(Window);
59 virtual void NETNotifyAttributes(Window);
60 virtual void NETNotifyFocus(Window);
61 virtual void NETNotifyCurrentWorkspace(int);
62 virtual void NETNotifyWorkspaceCount(int);
64 private:
65 ToolWindow *bbtool;
67 /* Atom kwm_module_init;
68 Atom kwm_module_win_add;
69 Atom kwm_module_win_remove;
70 Atom kwm_module_win_change;
71 Atom kwm_module_win_activate;
72 Atom kwm_module_win_iconfied;
73 Atom kwm_module_win_raise;
74 Atom kwm_module_win_lower;
75 Atom kwm_module_desktop_change;
76 Atom kwm_module_desktop_number_change;*/
80 #endif /* __WMINTERFACE_HH */