annotate gui/wm/ws.h @ 35681:80c5c89f77d6

Cosmetic: Rename ws functions for the sake of consistency. wsXInit -> wsInit wsXDone -> wsDone wsEvents -> wsEvent wsHandleEvents -> wsEvents wsSetBackgroundRGB -> wsWindowBackground wsClearWindow -> wsWindowClear wsCreateWindow -> wsWindowCreate wsDestroyWindow -> wsWindowDestroy wsFullScreen -> wsWindowFullscreen wsSetIcon -> wsWindowIcon wsIconify -> wsWindowIconify wsSetLayer -> wsWindowLayer wsSearch -> wsWindowListSearch wsMoveWindow -> wsWindowMove wsMoveWindowWithin -> wsWindowMoveWithin wsRaiseWindowTop -> wsWindowRaiseTop wsPostRedisplay -> wsWindowRedraw wsResizeWindow -> wsWindowResize wsSetShape -> wsWindowShape wsWindowPosition -> wsWindowUpdatePosition wsUpdateXineramaInfo -> wsWindowUpdateXinerama wsVisibleWindow -> wsWindowVisibility wsConvert -> wsImageConvert wsCreateImage -> wsImageCreate wsDestroyImage -> wsImageDestroy wsPutImage -> wsImageDraw wsResizeImage -> wsImageResize wsAutohideCursor -> wsMouseAutohide wsVisibleMouse -> wsMouseVisibility
author ib
date Fri, 18 Jan 2013 00:35:38 +0000
parents 23183b261ca9
children fcb8f12cefa7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
26458
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26029
diff changeset
1 /*
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26029
diff changeset
2 * This file is part of MPlayer.
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26029
diff changeset
3 *
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26029
diff changeset
4 * MPlayer is free software; you can redistribute it and/or modify
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26029
diff changeset
5 * it under the terms of the GNU General Public License as published by
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26029
diff changeset
6 * the Free Software Foundation; either version 2 of the License, or
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26029
diff changeset
7 * (at your option) any later version.
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26029
diff changeset
8 *
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26029
diff changeset
9 * MPlayer is distributed in the hope that it will be useful,
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26029
diff changeset
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26029
diff changeset
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26029
diff changeset
12 * GNU General Public License for more details.
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26029
diff changeset
13 *
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26029
diff changeset
14 * You should have received a copy of the GNU General Public License along
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26029
diff changeset
15 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26029
diff changeset
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
35666
01ac3cd2f101 Cosmetic: Relocate and revise comments on code origin.
ib
parents: 35665
diff changeset
17 *
01ac3cd2f101 Cosmetic: Relocate and revise comments on code origin.
ib
parents: 35665
diff changeset
18 * based on: AutoSpace Window System for Linux/Win32,
01ac3cd2f101 Cosmetic: Relocate and revise comments on code origin.
ib
parents: 35665
diff changeset
19 * written by pontscho/fresh!mindworkz
26458
b0a7b35b78d2 Add standard GPL header to individual files.
diego
parents: 26029
diff changeset
20 */
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
21
26029
4129c8cfa742 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25535
diff changeset
22 #ifndef MPLAYER_GUI_WS_H
4129c8cfa742 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25535
diff changeset
23 #define MPLAYER_GUI_WS_H
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
24
35529
8ad4d2fb46e8 Rebuild GUI directory structure.
ib
parents: 35499
diff changeset
25 #include "gui/dialog/dialog.h"
35450
31a5320909f7 Don't include config.h if not necessary.
ib
parents: 35357
diff changeset
26 #include "config.h"
33529
276eef06fb3d Store icon data in a struct variable.
ib
parents: 33463
diff changeset
27
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
28 #include <X11/Xlib.h>
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
29 #include <X11/Xutil.h>
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
30 #include <X11/keysym.h>
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
31 #include <X11/Xatom.h>
34465
3c1a1038bfc7 Properly handle the lack of XShm.
ib
parents: 34408
diff changeset
32 #ifdef HAVE_SHM
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
33 #include <X11/extensions/XShm.h>
34465
3c1a1038bfc7 Properly handle the lack of XShm.
ib
parents: 34408
diff changeset
34 #endif
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
35
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
36 #define wsKeyReleased 0
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
37 #define wsKeyPressed 1
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
38
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
39 #define wsPLMouseButton 1
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
40 #define wsPMMouseButton 2
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
41 #define wsPRMouseButton 3
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
42 #define wsP4MouseButton 4
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
43 #define wsP5MouseButton 5
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
44 #define wsRLMouseButton (1 + 128)
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
45 #define wsRMMouseButton (2 + 128)
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
46 #define wsRRMouseButton (3 + 128)
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
47 #define wsR4MouseButton (4 + 128)
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
48 #define wsR5MouseButton (5 + 128)
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
49 #define wsEnterWindow 253
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
50 #define wsLeaveWindow 254
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
51 #define wsMoveMouse 255
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
52
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
53 #define wsShowMouseCursor 1
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
54 #define wsHideMouseCursor 0
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
55 #define wsHandleMouseButton 2
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
56 #define wsHandleMouseMove 4
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
57
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
58 #define wsHideFrame 0
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
59 #define wsShowFrame 1
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
60 #define wsMaxSize 2
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
61 #define wsMinSize 4
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
62 #define wsShowWindow 8
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
63 #define wsHideWindow 16
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
64 #define wsOverredirect 32
35652
f6c00eacd816 Add wsMapWait().
ib
parents: 35642
diff changeset
65 #define wsWaitMap 64
35657
eadf0731a29a Add property wsAspect.
ib
parents: 35656
diff changeset
66 #define wsAspect 128
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
67
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
68 #define wsRGB32 1
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
69 #define wsBGR32 2
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
70 #define wsRGB24 3
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
71 #define wsBGR24 4
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
72 #define wsRGB16 5
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
73 #define wsBGR16 6
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
74 #define wsRGB15 7
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
75 #define wsBGR15 8
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
76
35499
af72f85b6f44 Define symbolic constant wsNone for "no window state".
ib
parents: 35498
diff changeset
77 #define wsNone 0
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
78 #define wsWindowVisible 1
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
79 #define wsWindowPartialVisible 2
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
80 #define wsWindowNotVisible 4
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
81 #define wsWindowMapped 8
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
82 #define wsWindowUnmapped 16
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
83 #define wsWindowFocusIn 32
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
84 #define wsWindowFocusOut 64
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
85 #define wsWindowExpose 128
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
86 #define wsWindowRolled 256
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
87 #define wsWindowClosed 512
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
88
35498
c505a4aa9582 Rename wsNone wsNo and use it instead of a numeric constant.
ib
parents: 35497
diff changeset
89 #define wsNo 0
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
90 #define wsMapped 1
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
91 #define wsFocused 2
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
92 #define wsVisible 3
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
93 #define wsNotVisible 4
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
94 #define wsPVisible 5
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
95 #define wsRolled 6
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
96
33539
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
97 typedef void (*wsTReDraw)(void);
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
98 typedef void (*wsTKeyHandler)(int KeyCode, int Type, int Key);
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
99 typedef void (*wsTMouseHandler)(int Button, int X, int Y, int RX, int RY);
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
100 typedef void (*wsTDNDHandler)(int num, char **str);
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
101
33539
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
102 typedef struct {
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
103 Window WindowID;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
104 Window Parent;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
105 int X, Y, Width, Height;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
106 int OldX, OldY, OldWidth, OldHeight;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
107 int MaxX, MaxY;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
108 int isFullScreen;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
109 int BorderWidth;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
110 int Property;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
111 unsigned char *bImage;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
112 XImage *xImage;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
113 Pixmap Mask;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
114 int Decorations;
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
115
33539
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
116 int State;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
117 int Visible;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
118 int Mapped;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
119 int Focused;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
120 int Rolled;
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
121
33539
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
122 wsTReDraw ReDraw;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
123 wsTKeyHandler KeyHandler;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
124 wsTMouseHandler MouseHandler;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
125 wsTDNDHandler DandDHandler;
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
126
33539
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
127 int Alt;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
128 int Shift;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
129 int Control;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
130 int NumLock;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
131 int CapsLock;
34684
b03481253518 Cosmetic: Prefer C style for single line comments.
ib
parents: 34465
diff changeset
132 /* Misc ------------------------------------------------------------------------------------- */
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
133
33539
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
134 Atom AtomDeleteWindow;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
135 Atom AtomTakeFocus;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
136 Atom AtomRolle;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
137 Atom AtomProtocols;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
138 Atom AtomsProtocols[3];
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
139 Atom AtomLeaderClient;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
140 Atom AtomRemote;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
141 Atom AtomWMSizeHint;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
142 Atom AtomWMNormalHint;
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
143
34465
3c1a1038bfc7 Properly handle the lack of XShm.
ib
parents: 34408
diff changeset
144 #ifdef HAVE_SHM
33539
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
145 XShmSegmentInfo Shminfo;
34465
3c1a1038bfc7 Properly handle the lack of XShm.
ib
parents: 34408
diff changeset
146 #endif
33539
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
147 unsigned char *ImageData;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
148 unsigned short int *ImageDataw;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
149 unsigned int *ImageDatadw;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
150 GC wGC;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
151 unsigned long WindowMask;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
152 XVisualInfo VisualInfo;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
153 XSetWindowAttributes WindowAttrib;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
154 XWMHints WMHints;
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
155
33539
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
156 XFontStruct *Font;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
157 int FontHeight;
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
158
33539
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
159 Cursor wsCursor;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
160 char wsCursorData[1];
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
161 Pixmap wsCursorPixmap;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
162 int wsMouseEventType;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
163 XColor wsColor;
35656
f2093dc82b5f Cosmetic: Rename wsTWindow wsWindow.
ib
parents: 35655
diff changeset
164 } wsWindow;
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
165
33539
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
166 extern int wsMaxX;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
167 extern int wsMaxY;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
168 extern int wsOrgX;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
169 extern int wsOrgY;
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
170
33539
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
171 extern Display *wsDisplay;
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
172
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
173 // ----------------------------------------------------------------------------------------------
35681
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
174 void wsDone(void);
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
175 void wsInit(Display *display);
35636
840e473ba4c0 Restore GUI's X error handler after gtk_init().
ib
parents: 35632
diff changeset
176 void wsSetErrorHandler(void);
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
177
35681
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
178 void wsMouseAutohide(void);
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
179 void wsEvent(XEvent *event);
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
180 void wsEvents(void);
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
181
35681
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
182 void wsWindowCreate(wsWindow *win, int x, int y, int w, int h, int b, int c, unsigned char p, char *label);
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
183 void wsWindowDestroy(wsWindow *win);
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
184 void wsWindowMove(wsWindow *win, Bool abs, int x, int y);
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
185 void wsWindowMoveWithin(wsWindow *win, Bool abs, int x, int y);
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
186 void wsWindowResize(wsWindow *win, int sx, int sy);
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
187 void wsWindowIconify(wsWindow *win);
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
188 void wsWindowRaiseTop(Display *display, Window Win);
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
189 void wsWindowBackground(wsWindow *win, int r, int g, int b);
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
190 void wsWindowClear(wsWindow *win);
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
191 void wsWindowVisibility(wsWindow *win, int show);
35656
f2093dc82b5f Cosmetic: Rename wsTWindow wsWindow.
ib
parents: 35655
diff changeset
192 void wsWindowDecoration(wsWindow *win, Bool decor);
35681
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
193 void wsWindowLayer(Display *display, Window Win, Bool fullscreen);
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
194 void wsWindowFullscreen(wsWindow *win);
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
195 void wsWindowRedraw(wsWindow *win);
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
196 void wsWindowShape(wsWindow *win, char *data);
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
197 void wsWindowIcon(Display *display, Window Win, guiIcon_t *icon);
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
198
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
199 // ----------------------------------------------------------------------------------------------
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
200 // Show / hide mouse cursor.
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
201 // ----------------------------------------------------------------------------------------------
35681
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
202 void wsMouseVisibility(wsWindow *win, int m);
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
203
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
204 // ----------------------------------------------------------------------------------------------
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
205 // Image handling
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
206 // ----------------------------------------------------------------------------------------------
35681
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
207 void wsImageCreate(wsWindow *win, int Width, int Height);
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
208 void wsImageConvert(wsWindow *win, unsigned char *Image);
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
209 void wsImageDraw(wsWindow *win);
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
210 void wsImageResize(wsWindow *win, int Width, int Height);
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
211 void wsImageDestroy(wsWindow *win);
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
212
26029
4129c8cfa742 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25535
diff changeset
213 #endif /* MPLAYER_GUI_WS_H */