annotate gui/wm/ws.h @ 36045:a6f9525929a4

Remove unnecessary initialization.
author ib
date Wed, 03 Apr 2013 16:25:33 +0000
parents eba3a00b9c92
children 63e8bfb208c6
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
35702
a1d362602a70 Clean up #includes.
ib
parents: 35699
diff changeset
25 #include <X11/Xlib.h>
a1d362602a70 Clean up #includes.
ib
parents: 35699
diff changeset
26 #include <X11/Xutil.h>
a1d362602a70 Clean up #includes.
ib
parents: 35699
diff changeset
27
35529
8ad4d2fb46e8 Rebuild GUI directory structure.
ib
parents: 35499
diff changeset
28 #include "gui/dialog/dialog.h"
35689
411ae24eef28 Remove unnecessary #includes.
ib
parents: 35687
diff changeset
29
35450
31a5320909f7 Don't include config.h if not necessary.
ib
parents: 35357
diff changeset
30 #include "config.h"
33529
276eef06fb3d Store icon data in a struct variable.
ib
parents: 33463
diff changeset
31
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
35499
af72f85b6f44 Define symbolic constant wsNone for "no window state".
ib
parents: 35498
diff changeset
68 #define wsNone 0
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
69 #define wsWindowVisible 1
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
70 #define wsWindowPartialVisible 2
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
71 #define wsWindowNotVisible 4
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
72 #define wsWindowMapped 8
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
73 #define wsWindowUnmapped 16
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
74 #define wsWindowFocusIn 32
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
75 #define wsWindowFocusOut 64
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
76 #define wsWindowExpose 128
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
77 #define wsWindowRolled 256
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
78 #define wsWindowClosed 512
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
79
35498
c505a4aa9582 Rename wsNone wsNo and use it instead of a numeric constant.
ib
parents: 35497
diff changeset
80 #define wsNo 0
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
81 #define wsMapped 1
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
82 #define wsFocused 2
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
83 #define wsVisible 3
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
84 #define wsNotVisible 4
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
85 #define wsPVisible 5
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
86 #define wsRolled 6
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
87
35760
1aedd24c032b Cosmetic: Rename ReDraw DrawHandler.
ib
parents: 35759
diff changeset
88 typedef void (*wsTDrawHandler)(void);
35764
eba3a00b9c92 Cosmetic: Replace declarations.
ib
parents: 35760
diff changeset
89 typedef void (*wsTMouseHandler)(int Button, int X, int Y, int RX, int RY);
33539
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
90 typedef void (*wsTKeyHandler)(int KeyCode, int Type, int Key);
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
91 typedef void (*wsTDNDHandler)(int num, char **str);
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
92
33539
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
93 typedef struct {
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
94 Window WindowID;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
95 Window Parent;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
96 int X, Y, Width, Height;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
97 int OldX, OldY, OldWidth, OldHeight;
35695
f1d1404c3828 Use Bool type.
ib
parents: 35694
diff changeset
98 Bool isFullScreen;
33539
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
99 int Property;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
100 unsigned char *bImage;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
101 XImage *xImage;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
102 Pixmap Mask;
35696
2d3b65e5ae1a Cosmetic: Rename structure member, use singular.
ib
parents: 35695
diff changeset
103 Bool Decoration;
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
104
33539
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
105 int State;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
106 int Visible;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
107 int Mapped;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
108 int Focused;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
109 int Rolled;
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
110
35760
1aedd24c032b Cosmetic: Rename ReDraw DrawHandler.
ib
parents: 35759
diff changeset
111 wsTDrawHandler DrawHandler;
35764
eba3a00b9c92 Cosmetic: Replace declarations.
ib
parents: 35760
diff changeset
112 wsTMouseHandler MouseHandler;
33539
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
113 wsTKeyHandler KeyHandler;
35759
afb55738b1b7 Cosmetic: Replace DandD by DND.
ib
parents: 35744
diff changeset
114 wsTDNDHandler DNDHandler;
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
115
33539
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
116 int Alt;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
117 int Shift;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
118 int Control;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
119 int NumLock;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
120 int CapsLock;
34684
b03481253518 Cosmetic: Prefer C style for single line comments.
ib
parents: 34465
diff changeset
121 /* Misc ------------------------------------------------------------------------------------- */
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
122
33539
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
123 Atom AtomDeleteWindow;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
124 Atom AtomTakeFocus;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
125 Atom AtomRolle;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
126 Atom AtomProtocols;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
127 Atom AtomsProtocols[3];
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
128 Atom AtomLeaderClient;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
129 Atom AtomWMSizeHint;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
130 Atom AtomWMNormalHint;
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
131
34465
3c1a1038bfc7 Properly handle the lack of XShm.
ib
parents: 34408
diff changeset
132 #ifdef HAVE_SHM
33539
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
133 XShmSegmentInfo Shminfo;
34465
3c1a1038bfc7 Properly handle the lack of XShm.
ib
parents: 34408
diff changeset
134 #endif
33539
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
135 unsigned char *ImageData;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
136 unsigned short int *ImageDataw;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
137 unsigned int *ImageDatadw;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
138 GC wGC;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
139 unsigned long WindowMask;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
140 XVisualInfo VisualInfo;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
141 XSetWindowAttributes WindowAttrib;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
142 XWMHints WMHints;
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
143
33539
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
144 Cursor wsCursor;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
145 char wsCursorData[1];
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
146 Pixmap wsCursorPixmap;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
147 int wsMouseEventType;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
148 XColor wsColor;
35656
f2093dc82b5f Cosmetic: Rename wsTWindow wsWindow.
ib
parents: 35655
diff changeset
149 } wsWindow;
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
150
33539
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
151 extern int wsMaxX;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
152 extern int wsMaxY;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
153 extern int wsOrgX;
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
154 extern int wsOrgY;
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
155
33539
5bdc088113f7 Cosmetic: Format to MPlayer coding style.
ib
parents: 33529
diff changeset
156 extern Display *wsDisplay;
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
157
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
158 // ----------------------------------------------------------------------------------------------
35681
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
159 void wsDone(void);
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
160 void wsInit(Display *display);
35636
840e473ba4c0 Restore GUI's X error handler after gtk_init().
ib
parents: 35632
diff changeset
161 void wsSetErrorHandler(void);
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
162
35681
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
163 void wsMouseAutohide(void);
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
164 void wsEvent(XEvent *event);
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
165 void wsEvents(void);
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
166
35687
6996700b8d1f Don't unnecessarily restrict property mask to 8 bits.
ib
parents: 35683
diff changeset
167 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
168 void wsWindowDestroy(wsWindow *win);
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
169 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
170 void wsWindowMoveWithin(wsWindow *win, Bool abs, int x, int y);
35682
fcb8f12cefa7 Cosmetic: Change parameter names.
ib
parents: 35681
diff changeset
171 void wsWindowResize(wsWindow *win, int w, int h);
35681
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
172 void wsWindowIconify(wsWindow *win);
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
173 void wsWindowRaiseTop(Display *display, Window Win);
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
174 void wsWindowBackground(wsWindow *win, int r, int g, int b);
35682
fcb8f12cefa7 Cosmetic: Change parameter names.
ib
parents: 35681
diff changeset
175 void wsWindowVisibility(wsWindow *win, int vis);
35681
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
176 void wsWindowLayer(Display *display, Window Win, Bool fullscreen);
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
177 void wsWindowFullscreen(wsWindow *win);
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
178 void wsWindowRedraw(wsWindow *win);
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
179 void wsWindowShape(wsWindow *win, char *data);
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
180 void wsWindowIcon(Display *display, Window Win, guiIcon_t *icon);
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
181
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
182 // ----------------------------------------------------------------------------------------------
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
183 // Show / hide mouse cursor.
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
184 // ----------------------------------------------------------------------------------------------
35682
fcb8f12cefa7 Cosmetic: Change parameter names.
ib
parents: 35681
diff changeset
185 void wsMouseVisibility(wsWindow *win, int vis);
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
186
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
187 // ----------------------------------------------------------------------------------------------
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
188 // Image handling
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
189 // ----------------------------------------------------------------------------------------------
35682
fcb8f12cefa7 Cosmetic: Change parameter names.
ib
parents: 35681
diff changeset
190 void wsImageCreate(wsWindow *win, int w, int h);
35744
bfe51acc36fb Cosmetic: Rename wsImageConvert() wsImageRender().
ib
parents: 35738
diff changeset
191 void wsImageRender(wsWindow *win, unsigned char *img);
35681
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
192 void wsImageDraw(wsWindow *win);
35682
fcb8f12cefa7 Cosmetic: Change parameter names.
ib
parents: 35681
diff changeset
193 void wsImageResize(wsWindow *win, int w, int h);
35681
80c5c89f77d6 Cosmetic: Rename ws functions for the sake of consistency.
ib
parents: 35679
diff changeset
194 void wsImageDestroy(wsWindow *win);
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
195
26029
4129c8cfa742 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25535
diff changeset
196 #endif /* MPLAYER_GUI_WS_H */