annotate gui/wm/ws.h @ 37161:6d654ac9201e

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