Left Half / Right Half Maximize
[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
27#define MAX_HORIZONTAL 1
28#define MAX_VERTICAL 2
69244548
JH
Johann Haarhoff2009-08-28 21:31:26 +020029#define MAX_LEFTHALF 4
30#define MAX_RIGHTHALF 8
31#define MAX_IGNORE_XINERAMA 16
32#define MAX_KEYBOARD 32
9d2e6ef9 scottc1998-09-29 22:36:29 +000033
34void wSetFocusTo(WScreen *scr, WWindow *wwin);
35
36int wMouseMoveWindow(WWindow *wwin, XEvent *ev);
0261c326 dan1999-01-06 15:22:33 +000037int wKeyboardMoveResizeWindow(WWindow *wwin);
9d2e6ef9 scottc1998-09-29 22:36:29 +000038
39void wMouseResizeWindow(WWindow *wwin, XEvent *ev);
40
41void wShadeWindow(WWindow *wwin);
42void wUnshadeWindow(WWindow *wwin);
43
44void wIconifyWindow(WWindow *wwin);
45void wDeiconifyWindow(WWindow *wwin);
46
47void wSelectWindows(WScreen *scr, XEvent *ev);
0261c326 dan1999-01-06 15:22:33 +000048
59eb9475 dan1998-11-03 12:53:26 +000049void wSelectWindow(WWindow *wwin, Bool flag);
50void wUnselectWindows(WScreen *scr);
9d2e6ef9 scottc1998-09-29 22:36:29 +000051
52void wMaximizeWindow(WWindow *wwin, int directions);
53void wUnmaximizeWindow(WWindow *wwin);
54
55void wHideOtherApplications(WWindow *wwin);
56void wShowAllWindows(WScreen *scr);
57
58void wHideApplication(WApplication *wapp);
6830b057 dan2004-10-12 21:28:27 +000059void wUnhideApplication(WApplication *wapp, Bool miniwindows,
60 Bool bringToCurrentWS);
9d2e6ef9 scottc1998-09-29 22:36:29 +000061
62void wRefreshDesktop(WScreen *scr);
63
64void wArrangeIcons(WScreen *scr, Bool arrangeAll);
65
59eb9475 dan1998-11-03 12:53:26 +000066void wMakeWindowVisible(WWindow *wwin);
9d2e6ef9 scottc1998-09-29 22:36:29 +000067
9aca0d5f dan2004-10-12 01:34:32 +000068void wFullscreenWindow(WWindow *wwin);
69void wUnfullscreenWindow(WWindow *wwin);
70
71
9d2e6ef9 scottc1998-09-29 22:36:29 +000072#endif
6830b057 dan2004-10-12 21:28:27 +000073