1 // wminterface.hh for bbtools.
3 // Copyright (c) 1998-1999 by John Kennis, jkennis@chello.nl
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.
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"
29 class WMInterface
: public NETInterface
{
32 WMInterface(ToolWindow
*);
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; }*/
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);
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 */