comparison gui/wm/ws.h @ 35656:f2093dc82b5f

Cosmetic: Rename wsTWindow wsWindow.
author ib
date Tue, 15 Jan 2013 12:37:42 +0000
parents 9ea476ced9ab
children eadf0731a29a
comparison
equal deleted inserted replaced
35655:9ea476ced9ab 35656:f2093dc82b5f
183 Cursor wsCursor; 183 Cursor wsCursor;
184 char wsCursorData[1]; 184 char wsCursorData[1];
185 Pixmap wsCursorPixmap; 185 Pixmap wsCursorPixmap;
186 int wsMouseEventType; 186 int wsMouseEventType;
187 XColor wsColor; 187 XColor wsColor;
188 } wsTWindow; 188 } wsWindow;
189 189
190 extern int wsMaxX; 190 extern int wsMaxX;
191 extern int wsMaxY; 191 extern int wsMaxY;
192 extern int wsOrgX; 192 extern int wsOrgX;
193 extern int wsOrgY; 193 extern int wsOrgY;
223 void wsMainLoop(void); 223 void wsMainLoop(void);
224 void wsAutohideCursor(void); 224 void wsAutohideCursor(void);
225 Bool wsEvents(XEvent *event); 225 Bool wsEvents(XEvent *event);
226 void wsHandleEvents(void); 226 void wsHandleEvents(void);
227 227
228 void wsCreateWindow(wsTWindow *win, int x, int y, int w, int h, int b, int c, unsigned char p, char *label); 228 void wsCreateWindow(wsWindow *win, int x, int y, int w, int h, int b, int c, unsigned char p, char *label);
229 void wsDestroyWindow(wsTWindow *win); 229 void wsDestroyWindow(wsWindow *win);
230 void wsMoveWindow(wsTWindow *win, Bool abs, int x, int y); 230 void wsMoveWindow(wsWindow *win, Bool abs, int x, int y);
231 void wsMoveWindowWithin(wsTWindow *win, Bool abs, int x, int y); 231 void wsMoveWindowWithin(wsWindow *win, Bool abs, int x, int y);
232 void wsResizeWindow(wsTWindow *win, int sx, int sy); 232 void wsResizeWindow(wsWindow *win, int sx, int sy);
233 void wsIconify(wsTWindow *win); 233 void wsIconify(wsWindow *win);
234 void wsRaiseWindowTop(Display *display, Window Win); 234 void wsRaiseWindowTop(Display *display, Window Win);
235 void wsSetBackground(wsTWindow *win, int color); 235 void wsSetBackground(wsWindow *win, int color);
236 void wsSetForegroundRGB(wsTWindow *win, int r, int g, int b); 236 void wsSetForegroundRGB(wsWindow *win, int r, int g, int b);
237 void wsSetBackgroundRGB(wsTWindow *win, int r, int g, int b); 237 void wsSetBackgroundRGB(wsWindow *win, int r, int g, int b);
238 void wsClearWindow(wsTWindow *win); 238 void wsClearWindow(wsWindow *win);
239 void wsSetTitle(wsTWindow *win, char *name); 239 void wsSetTitle(wsWindow *win, char *name);
240 void wsVisibleWindow(wsTWindow *win, int show); 240 void wsVisibleWindow(wsWindow *win, int show);
241 void wsWindowDecoration(wsTWindow *win, Bool decor); 241 void wsWindowDecoration(wsWindow *win, Bool decor);
242 void wsSetLayer(Display *display, Window Win, Bool fullscreen); 242 void wsSetLayer(Display *display, Window Win, Bool fullscreen);
243 void wsFullScreen(wsTWindow *win); 243 void wsFullScreen(wsWindow *win);
244 void wsPostRedisplay(wsTWindow *win); 244 void wsPostRedisplay(wsWindow *win);
245 void wsSetShape(wsTWindow *win, char *data); 245 void wsSetShape(wsWindow *win, char *data);
246 void wsSetIcon(Display *display, Window Win, guiIcon_t *icon); 246 void wsSetIcon(Display *display, Window Win, guiIcon_t *icon);
247 247
248 // ---------------------------------------------------------------------------------------------- 248 // ----------------------------------------------------------------------------------------------
249 // Show / hide mouse cursor. 249 // Show / hide mouse cursor.
250 // ---------------------------------------------------------------------------------------------- 250 // ----------------------------------------------------------------------------------------------
251 void wsVisibleMouse(wsTWindow *win, int m); 251 void wsVisibleMouse(wsWindow *win, int m);
252 void wsSetMousePosition(wsTWindow *win, int x, int y); 252 void wsSetMousePosition(wsWindow *win, int x, int y);
253 253
254 // ---------------------------------------------------------------------------------------------- 254 // ----------------------------------------------------------------------------------------------
255 // Image handling 255 // Image handling
256 // ---------------------------------------------------------------------------------------------- 256 // ----------------------------------------------------------------------------------------------
257 void wsCreateImage(wsTWindow *win, int Width, int Height); 257 void wsCreateImage(wsWindow *win, int Width, int Height);
258 void wsConvert(wsTWindow *win, unsigned char *Image); 258 void wsConvert(wsWindow *win, unsigned char *Image);
259 void wsPutImage(wsTWindow *win); 259 void wsPutImage(wsWindow *win);
260 void wsResizeImage(wsTWindow *win, int Width, int Height); 260 void wsResizeImage(wsWindow *win, int Width, int Height);
261 void wsDestroyImage(wsTWindow *win); 261 void wsDestroyImage(wsWindow *win);
262 int wsGetOutMask(void); 262 int wsGetOutMask(void);
263 263
264 #define wgIsRect(X, Y, tX, tY, bX, bY) (((X) > (tX)) && ((Y) > (tY)) && ((X) < (bX)) && ((Y) < (bY))) 264 #define wgIsRect(X, Y, tX, tY, bX, bY) (((X) > (tX)) && ((Y) > (tY)) && ((X) < (bX)) && ((Y) < (bY)))
265 265
266 #endif /* MPLAYER_GUI_WS_H */ 266 #endif /* MPLAYER_GUI_WS_H */