Maximus: Tiled Maximization
[wmaker-crm.git] / src / actions.h
1 /*
2  *  Window Maker window manager
3  *
4  *  Copyright (c) 1997-2003 Alfredo K. Kojima
5  *
6  *  This program is free software; you can redistribute it and/or modify
7  *  it under the terms of the GNU General Public License as published by
8  *  the Free Software Foundation; either version 2 of the License, or
9  *  (at your option) any later version.
10  *
11  *  This program is distributed in the hope that it will be useful,
12  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  *  GNU General Public License for more details.
15  *
16  *  You should have received a copy of the GNU General Public License
17  *  along with this program; if not, write to the Free Software
18  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
19  *  USA.
20  */
21
22 #ifndef WMACTIONS_H_
23 #define WMACTIONS_H_
24
25 #include "window.h"
26
27 #define MAX_HORIZONTAL         (1 << 0)
28 #define MAX_VERTICAL           (1 << 1)
29 #define MAX_LEFTHALF           (1 << 2)
30 #define MAX_RIGHTHALF          (1 << 3)
31 #define MAX_MAXIMUS            (1 << 4)
32 #define MAX_IGNORE_XINERAMA    (1 << 5)
33 #define MAX_KEYBOARD           (1 << 6)
34
35 void wSetFocusTo(WScreen *scr, WWindow *wwin);
36
37 int wMouseMoveWindow(WWindow *wwin, XEvent *ev);
38 int wKeyboardMoveResizeWindow(WWindow *wwin);
39
40 void wMouseResizeWindow(WWindow *wwin, XEvent *ev);
41
42 static void shade_animate(WWindow *wwin, Bool what);
43 void wShadeWindow(WWindow *wwin);
44 void wUnshadeWindow(WWindow *wwin);
45
46 void wIconifyWindow(WWindow *wwin);
47 void wDeiconifyWindow(WWindow *wwin);
48
49 void wSelectWindows(WScreen *scr, XEvent *ev);
50
51 void wSelectWindow(WWindow *wwin, Bool flag);
52 void wUnselectWindows(WScreen *scr);
53
54 void wMaximizeWindow(WWindow *wwin, int directions);
55 void wUnmaximizeWindow(WWindow *wwin);
56
57 void wHideOtherApplications(WWindow *wwin);
58 void wShowAllWindows(WScreen *scr);
59
60 void wHideApplication(WApplication *wapp);
61 void wUnhideApplication(WApplication *wapp, Bool miniwindows,
62                         Bool bringToCurrentWS);
63
64 void wRefreshDesktop(WScreen *scr);
65
66 void wArrangeIcons(WScreen *scr, Bool arrangeAll);
67
68 void wMakeWindowVisible(WWindow *wwin);
69
70 void wFullscreenWindow(WWindow *wwin);
71 void wUnfullscreenWindow(WWindow *wwin);
72
73
74 #endif
75