Update Serbian translation from master branch
[wmaker-crm.git] / src / actions.h
blob16e5e3f6956cf15f8f00455781e67d4754bf0c68
1 /*
2 * Window Maker window manager
4 * Copyright (c) 1997-2003 Alfredo K. Kojima
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.
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.
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 #ifndef WMACTIONS_H_
22 #define WMACTIONS_H_
24 #include "window.h"
26 #define MAX_HORIZONTAL (1 << 0)
27 #define MAX_VERTICAL (1 << 1)
28 #define MAX_LEFTHALF (1 << 2)
29 #define MAX_RIGHTHALF (1 << 3)
30 #define MAX_TOPHALF (1 << 4)
31 #define MAX_BOTTOMHALF (1 << 5)
32 #define MAX_MAXIMUS (1 << 6)
33 #define MAX_CENTRAL (1 << 7)
34 #define MAX_IGNORE_XINERAMA (1 << 8)
35 #define MAX_KEYBOARD (1 << 9)
37 #define SAVE_GEOMETRY_X (1 << 0)
38 #define SAVE_GEOMETRY_Y (1 << 1)
39 #define SAVE_GEOMETRY_WIDTH (1 << 2)
40 #define SAVE_GEOMETRY_HEIGHT (1 << 3)
41 #define SAVE_GEOMETRY_ALL SAVE_GEOMETRY_X | SAVE_GEOMETRY_Y | SAVE_GEOMETRY_WIDTH | SAVE_GEOMETRY_HEIGHT
43 void wSetFocusTo(WScreen *scr, WWindow *wwin);
45 int wMouseMoveWindow(WWindow *wwin, XEvent *ev);
46 int wKeyboardMoveResizeWindow(WWindow *wwin);
48 void wMouseResizeWindow(WWindow *wwin, XEvent *ev);
50 void wShadeWindow(WWindow *wwin);
51 void wUnshadeWindow(WWindow *wwin);
53 void wIconifyWindow(WWindow *wwin);
54 void wDeiconifyWindow(WWindow *wwin);
56 void wSelectWindows(WScreen *scr, XEvent *ev);
58 void wSelectWindow(WWindow *wwin, Bool flag);
59 void wUnselectWindows(WScreen *scr);
61 void wMaximizeWindow(WWindow *wwin, int directions, int head);
62 void wUnmaximizeWindow(WWindow *wwin);
63 void handleMaximize(WWindow *wwin, int directions);
65 void wHideAll(WScreen *src);
66 void wHideOtherApplications(WWindow *wwin);
67 void wShowAllWindows(WScreen *scr);
69 void wHideApplication(WApplication *wapp);
70 void wUnhideApplication(WApplication *wapp, Bool miniwindows,
71 Bool bringToCurrentWS);
73 void wRefreshDesktop(WScreen *scr);
75 void wArrangeIcons(WScreen *scr, Bool arrangeAll);
77 void wMakeWindowVisible(WWindow *wwin);
79 void wFullscreenMonitorsWindow(WWindow *wwin, unsigned long top, unsigned long bottom,
80 unsigned long left, unsigned long right);
82 void wFullscreenWindow(WWindow *wwin);
83 void wUnfullscreenWindow(WWindow *wwin);
85 void animateResize(WScreen *scr, int x, int y, int w, int h, int fx, int fy, int fw, int fh);
86 void update_saved_geometry(WWindow *wwin);
88 void movePointerToWindowCenter(WWindow *wwin);
89 void moveBetweenHeads(WWindow *wwin, int direction);
91 #endif