annotate gui/wm/ws.h @ 35699:36527758158b

Make wsWindowDecoration() static. It now has only file scope.
author ib
date Sat, 19 Jan 2013 12:55:26 +0000
parents 13f8a04c5524
children a1d362602a70
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"
35689
411ae24eef28 Remove unnecessary #includes.
ib
parents: 35687
diff changeset
26
35450
31a5320909f7 Don't include config.h if not necessary.
ib
parents: 35357
diff changeset
27 #include "config.h"
33529
276eef06fb3d Store icon data in a struct variable.
ib
parents: 33463
diff changeset
28
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
29 #include <X11/Xlib.h>
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
30 #include <X11/Xutil.h>
34465
3c1a1038bfc7 Properly handle the lack of XShm.
ib
parents: 34408
diff changeset
31 #ifdef HAVE_SHM
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
32 #include <X11/extensions/XShm.h>
34465
3c1a1038bfc7 Properly handle the lack of XShm.
ib
parents: 34408
diff changeset
33 #endif
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
34
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
35 #define wsKeyReleased 0
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
36 #define wsKeyPressed 1
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
37
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
38 #define wsPLMouseButton 1
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
39 #define wsPMMouseButton 2
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
40 #define wsPRMouseButton 3
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
41 #define wsP4MouseButton 4
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
42 #define wsP5MouseButton 5
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
43 #define wsRLMouseButton (1 + 128)
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
44 #define wsRMMouseButton (2 + 128)
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
45 #define wsRRMouseButton (3 + 128)
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
46 #define wsR4MouseButton (4 + 128)
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
47 #define wsR5MouseButton (5 + 128)
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
48 #define wsEnterWindow 253
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
49 #define wsLeaveWindow 254
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
50 #define wsMoveMouse 255
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
51
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
52 #define wsShowMouseCursor 1
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
53 #define wsHideMouseCursor 0
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
54 #define wsHandleMouseButton 2
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
55 #define wsHandleMouseMove 4
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
56
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
57 #define wsHideFrame 0
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
58 #define wsShowFrame 1
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
59 #define wsMaxSize 2
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
60 #define wsMinSize 4
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
61 #define wsShowWindow 8
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
62 #define wsHideWindow 16
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
63 #define wsOverredirect 32
35652
f6c00eacd816 Add wsMapWait().
ib
parents: 35642
diff changeset
64 #define wsWaitMap 64
35657
eadf0731a29a Add property wsAspect.
ib
parents: 35656
diff changeset
65 #define wsAspect 128
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
66
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
67 #define wsRGB32 1
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
68 #define wsBGR32 2
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
69 #define wsRGB24 3
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
70 #define wsBGR24 4
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
71 #define wsRGB16 5
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
72 #define wsBGR16 6
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
73 #define wsRGB15 7
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
74 #define wsBGR15 8
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
75
35499
af72f85b6f44 Define symbolic constant wsNone for "no window state".
ib
parents: 35498
diff changeset
76 #define wsNone 0
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
77 #define wsWindowVisible 1
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
78 #define wsWindowPartialVisible 2
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
79 #define wsWindowNotVisible 4
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
80 #define wsWindowMapped 8
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
81 #define wsWindowUnmapped 16
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
82 #define wsWindowFocusIn 32
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
83 #define wsWindowFocusOut 64
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
84 #define wsWindowExpose 128
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
85 #define wsWindowRolled 256
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
86 #define wsWindowClosed 512
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
87
35498
c505a4aa9582 Rename wsNone wsNo and use it instead of a numeric constant.
ib
parents: 35497
diff changeset
88 #define wsNo 0
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
89 #define wsMapped 1
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
90 #define wsFocused 2
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
91 #define wsVisible 3
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
92 #define wsNotVisible 4
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
93 #define wsPVisible 5
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
94 #define wsRolled 6
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
95
33539
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
96 typedef void (*wsTReDraw)(void);
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
97 typedef void (*wsTKeyHandler)(int KeyCode, int Type, int Key);
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
98 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
99 typedef void (*wsTDNDHandler)(int num, char **str);
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
100
33539
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
101 typedef struct {
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
102 Window WindowID;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
103 Window Parent;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
104 int X, Y, Width, Height;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
105 int OldX, OldY, OldWidth, OldHeight;
35695
f1d1404c3828 Use Bool type.
ib
parents: 35694
diff changeset
106 Bool isFullScreen;
33539
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
107 int Property;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
108 unsigned char *bImage;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
109 XImage *xImage;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
110 Pixmap Mask;
35696
2d3b65e5ae1a Cosmetic: Rename structure member, use singular.
ib
parents: 35695
diff changeset
111 Bool Decoration;
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
112
33539
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
113 int State;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
114 int Visible;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
115 int Mapped;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
116 int Focused;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
117 int Rolled;
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
118
33539
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
119 wsTReDraw ReDraw;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
120 wsTKeyHandler KeyHandler;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
121 wsTMouseHandler MouseHandler;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
122 wsTDNDHandler DandDHandler;
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
123
33539
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
124 int Alt;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
125 int Shift;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
126 int Control;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
127 int NumLock;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
128 int CapsLock;
34684
b03481253518 Cosmetic: Prefer C style for single line comments.
ib
parents: 34465
diff changeset
129 /* Misc ------------------------------------------------------------------------------------- */
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
130
33539
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
131 Atom AtomDeleteWindow;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
132 Atom AtomTakeFocus;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
133 Atom AtomRolle;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
134 Atom AtomProtocols;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
135 Atom AtomsProtocols[3];
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
136 Atom AtomLeaderClient;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
137 Atom AtomWMSizeHint;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
138 Atom AtomWMNormalHint;
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
139
34465
3c1a1038bfc7 Properly handle the lack of XShm.
ib
parents: 34408
diff changeset
140 #ifdef HAVE_SHM
33539
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
141 XShmSegmentInfo Shminfo;
34465
3c1a1038bfc7 Properly handle the lack of XShm.
ib
parents: 34408
diff changeset
142 #endif
33539
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
143 unsigned char *ImageData;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
144 unsigned short int *ImageDataw;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
145 unsigned int *ImageDatadw;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
146 GC wGC;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
147 unsigned long WindowMask;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
148 XVisualInfo VisualInfo;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
149 XSetWindowAttributes WindowAttrib;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
150 XWMHints WMHints;
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
151
33539
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
152 Cursor wsCursor;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
153 char wsCursorData[1];
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
154 Pixmap wsCursorPixmap;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
155 int wsMouseEventType;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
156 XColor wsColor;
35656
f2093dc82b5f Cosmetic: Rename wsTWindow wsWindow.
ib
parents: 35655
diff changeset
157 } wsWindow;
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
158
33539
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
159 extern int wsMaxX;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
160 extern int wsMaxY;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
161 extern int wsOrgX;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
162 extern int wsOrgY;
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
163
33539
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
164 extern Display *wsDisplay;
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
165
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
166 // ----------------------------------------------------------------------------------------------
35681
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
167 void wsDone(void);
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
168 void wsInit(Display *display);
35636
840e473ba4c0 Restore GUI's X error handler after gtk_init().
ib
parents: 35632
diff changeset
169 void wsSetErrorHandler(void);
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
170
35681
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
171 void wsMouseAutohide(void);
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
172 void wsEvent(XEvent *event);
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
173 void wsEvents(void);
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
174
35687
6996700b8d1f Don't unnecessarily restrict property mask to 8 bits.
ib
parents: 35683
diff changeset
175 void wsWindowCreate(wsWindow *win, int x, int y, int w, int h, int p, int c, char *label);
35681
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
176 void wsWindowDestroy(wsWindow *win);
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
177 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
178 void wsWindowMoveWithin(wsWindow *win, Bool abs, int x, int y);
35682
fcb8f12cefa7 Cosmetic: Change parameter names.
ib
parents: 35681
diff changeset
179 void wsWindowResize(wsWindow *win, int w, int h);
35681
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
180 void wsWindowIconify(wsWindow *win);
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
181 void wsWindowRaiseTop(Display *display, Window Win);
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
182 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
183 void wsWindowClear(wsWindow *win);
35682
fcb8f12cefa7 Cosmetic: Change parameter names.
ib
parents: 35681
diff changeset
184 void wsWindowVisibility(wsWindow *win, int vis);
35681
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
185 void wsWindowLayer(Display *display, Window Win, Bool fullscreen);
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
186 void wsWindowFullscreen(wsWindow *win);
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
187 void wsWindowRedraw(wsWindow *win);
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
188 void wsWindowShape(wsWindow *win, char *data);
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
189 void wsWindowIcon(Display *display, Window Win, guiIcon_t *icon);
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
190
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
191 // ----------------------------------------------------------------------------------------------
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
192 // Show / hide mouse cursor.
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
193 // ----------------------------------------------------------------------------------------------
35682
fcb8f12cefa7 Cosmetic: Change parameter names.
ib
parents: 35681
diff changeset
194 void wsMouseVisibility(wsWindow *win, int vis);
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
195
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
196 // ----------------------------------------------------------------------------------------------
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
197 // Image handling
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
198 // ----------------------------------------------------------------------------------------------
35682
fcb8f12cefa7 Cosmetic: Change parameter names.
ib
parents: 35681
diff changeset
199 void wsImageCreate(wsWindow *win, int w, int h);
fcb8f12cefa7 Cosmetic: Change parameter names.
ib
parents: 35681
diff changeset
200 void wsImageConvert(wsWindow *win, unsigned char *img);
35681
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
201 void wsImageDraw(wsWindow *win);
35682
fcb8f12cefa7 Cosmetic: Change parameter names.
ib
parents: 35681
diff changeset
202 void wsImageResize(wsWindow *win, int w, int h);
35681
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
203 void wsImageDestroy(wsWindow *win);
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
204
26029
4129c8cfa742 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25535
diff changeset
205 #endif /* MPLAYER_GUI_WS_H */