Maximus: Tiled Maximization
[wmaker-crm.git] / src / actions.h
Commit [+]AuthorDateLineData
9d2e6ef9 scottc1998-09-29 22:36:29 +00001/*
9af1c6c4 dan1998-10-21 14:43:47 +00002 * Window Maker window manager
6830b057 dan2004-10-12 21:28:27 +00003 *
4153e2fd dan2003-01-16 23:30:45 +00004 * Copyright (c) 1997-2003 Alfredo K. Kojima
6830b057 dan2004-10-12 21:28:27 +00005 *
9d2e6ef9 scottc1998-09-29 22:36:29 +00006 * 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
6830b057 dan2004-10-12 21:28:27 +000018 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
9d2e6ef9 scottc1998-09-29 22:36:29 +000019 * USA.
20 */
21
22#ifndef WMACTIONS_H_
23#define WMACTIONS_H_
24
25#include "window.h"
26
cf62d159
CM
Carlos R. Mafra2009-09-02 01:37:47 +020027#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)
9d2e6ef9 scottc1998-09-29 22:36:29 +000034
35void wSetFocusTo(WScreen *scr, WWindow *wwin);
36
37int wMouseMoveWindow(WWindow *wwin, XEvent *ev);
0261c326 dan1999-01-06 15:22:33 +000038int wKeyboardMoveResizeWindow(WWindow *wwin);
9d2e6ef9 scottc1998-09-29 22:36:29 +000039
40void wMouseResizeWindow(WWindow *wwin, XEvent *ev);
41
a1f35d7f Carlos R. Mafra2009-08-29 20:02:04 +020042static void shade_animate(WWindow *wwin, Bool what);
9d2e6ef9 scottc1998-09-29 22:36:29 +000043void wShadeWindow(WWindow *wwin);
44void wUnshadeWindow(WWindow *wwin);
45
46void wIconifyWindow(WWindow *wwin);
47void wDeiconifyWindow(WWindow *wwin);
48
49void wSelectWindows(WScreen *scr, XEvent *ev);
0261c326 dan1999-01-06 15:22:33 +000050
59eb9475 dan1998-11-03 12:53:26 +000051void wSelectWindow(WWindow *wwin, Bool flag);
52void wUnselectWindows(WScreen *scr);
9d2e6ef9 scottc1998-09-29 22:36:29 +000053
54void wMaximizeWindow(WWindow *wwin, int directions);
55void wUnmaximizeWindow(WWindow *wwin);
56
57void wHideOtherApplications(WWindow *wwin);
58void wShowAllWindows(WScreen *scr);
59
60void wHideApplication(WApplication *wapp);
6830b057 dan2004-10-12 21:28:27 +000061void wUnhideApplication(WApplication *wapp, Bool miniwindows,
62 Bool bringToCurrentWS);
9d2e6ef9 scottc1998-09-29 22:36:29 +000063
64void wRefreshDesktop(WScreen *scr);
65
66void wArrangeIcons(WScreen *scr, Bool arrangeAll);
67
59eb9475 dan1998-11-03 12:53:26 +000068void wMakeWindowVisible(WWindow *wwin);
9d2e6ef9 scottc1998-09-29 22:36:29 +000069
9aca0d5f dan2004-10-12 01:34:32 +000070void wFullscreenWindow(WWindow *wwin);
71void wUnfullscreenWindow(WWindow *wwin);
72
73
9d2e6ef9 scottc1998-09-29 22:36:29 +000074#endif
6830b057 dan2004-10-12 21:28:27 +000075