Mercurial > mplayer.hg
changeset 35656:f2093dc82b5f
Cosmetic: Rename wsTWindow wsWindow.
author | ib |
---|---|
date | Tue, 15 Jan 2013 12:37:42 +0000 |
parents | 9ea476ced9ab |
children | eadf0731a29a |
files | gui/app/app.h gui/ui/render.c gui/ui/render.h gui/wm/ws.c gui/wm/ws.h gui/wm/wsxdnd.c gui/wm/wsxdnd.h |
diffstat | 7 files changed, 65 insertions(+), 65 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/app/app.h Tue Jan 15 12:30:08 2013 +0000 +++ b/gui/app/app.h Tue Jan 15 12:37:42 2013 +0000 @@ -147,19 +147,19 @@ typedef struct { wItem main; - wsTWindow mainWindow; + wsWindow mainWindow; int mainDecoration; wItem video; - wsTWindow videoWindow; + wsWindow videoWindow; wItem playbar; - wsTWindow playbarWindow; + wsWindow playbarWindow; int playbarIsPresent; wItem menu; wItem menuSelected; - wsTWindow menuWindow; + wsWindow menuWindow; int menuIsPresent; int IndexOfMainItems;
--- a/gui/ui/render.c Tue Jan 15 12:30:08 2013 +0000 +++ b/gui/ui/render.c Tue Jan 15 12:37:42 2013 +0000 @@ -304,7 +304,7 @@ } } -void RenderAll(wsTWindow *window, wItem *Items, int nrItems, char *db) +void RenderAll(wsWindow *window, wItem *Items, int nrItems, char *db) { wItem *item; guiImage *image = NULL;
--- a/gui/ui/render.h Tue Jan 15 12:30:08 2013 +0000 +++ b/gui/ui/render.h Tue Jan 15 12:37:42 2013 +0000 @@ -21,6 +21,6 @@ #include "gui/app/app.h" -void RenderAll(wsTWindow *window, wItem *Items, int nrItems, char *db); +void RenderAll(wsWindow *window, wItem *Items, int nrItems, char *db); #endif /* MPLAYER_GUI_RENDER_H */
--- a/gui/wm/ws.c Tue Jan 15 12:30:08 2013 +0000 +++ b/gui/wm/ws.c Tue Jan 15 12:37:42 2013 +0000 @@ -65,7 +65,7 @@ #define MOUSEHIDE_DELAY 1000 // in milliseconds -static wsTWindow *mouse_win; +static wsWindow *mouse_win; static unsigned int mouse_time; typedef struct { @@ -103,7 +103,7 @@ Bool wsTrue = True; #define wsWLCount 5 -wsTWindow *wsWindowList[wsWLCount] = { NULL, NULL, NULL, NULL, NULL }; +wsWindow *wsWindowList[wsWLCount] = { NULL, NULL, NULL, NULL, NULL }; unsigned long wsKeyTable[512]; @@ -168,7 +168,7 @@ #define MWM_TEAROFF_WINDOW (1L << 0) -void wsWindowDecoration(wsTWindow *win, Bool decor) +void wsWindowDecoration(wsWindow *win, Bool decor) { wsMotifHints = XInternAtom(wsDisplay, "_MOTIF_WM_HINTS", 0); @@ -222,7 +222,7 @@ * * @param win pointer to a ws window structure or NULL */ -static void wsUpdateXineramaInfo(wsTWindow *win) +static void wsUpdateXineramaInfo(wsWindow *win) { if (win) { vo_dx = win->X; @@ -405,7 +405,7 @@ * @param width width of the area to place the window in * @param height height of the area to place the window in */ -static void wsWindowPosition(wsTWindow *win, int x, int y, int width, int height) +static void wsWindowPosition(wsWindow *win, int x, int y, int width, int height) { switch (x) { case -1: @@ -441,7 +441,7 @@ * * @param win pointer to a ws window structure */ -static void wsSizeHint(wsTWindow *win) +static void wsSizeHint(wsWindow *win) { win->SizeHint.flags = 0; @@ -495,7 +495,7 @@ * * @param win pointer to a ws window structure */ -static void wsMapWait(wsTWindow *win) +static void wsMapWait(wsWindow *win) { XEvent xev; @@ -530,7 +530,7 @@ // c : mouse cursor visible // p : properties - "decoration", visible titlebar, etc ... // ---------------------------------------------------------------------------------------------- -void wsCreateWindow(wsTWindow *win, int x, int y, int w, int h, int b, int c, unsigned char p, char *label) +void wsCreateWindow(wsWindow *win, int x, int y, int w, int h, int b, int c, unsigned char p, char *label) { int depth; @@ -687,7 +687,7 @@ mp_msg(MSGT_GPLAYER, MSGL_DBG2, "[ws] window is created. ( %s ).\n", label); } -void wsDestroyWindow(wsTWindow *win) +void wsDestroyWindow(wsWindow *win) { int l; @@ -1063,7 +1063,7 @@ * * @param win pointer to a ws window structure */ -void wsFullScreen(wsTWindow *win) +void wsFullScreen(wsWindow *win) { if (win->isFullScreen) { if (vo_fs_type & vo_wm_FULLSCREEN) @@ -1118,7 +1118,7 @@ // ---------------------------------------------------------------------------------------------- // Redraw screen. // ---------------------------------------------------------------------------------------------- -void wsPostRedisplay(wsTWindow *win) +void wsPostRedisplay(wsWindow *win) { if (win->ReDraw) { win->State = wsWindowExpose; @@ -1139,7 +1139,7 @@ // ---------------------------------------------------------------------------------------------- // Put 'Image' to window. // ---------------------------------------------------------------------------------------------- -void wsConvert(wsTWindow *win, unsigned char *Image) +void wsConvert(wsWindow *win, unsigned char *Image) { const uint8_t *src[4] = { Image, NULL, NULL, NULL }; int src_stride[4] = { 4 * win->xImage->width, 0, 0, 0 }; @@ -1180,7 +1180,7 @@ } } -void wsPutImage(wsTWindow *win) +void wsPutImage(wsWindow *win) { #ifdef HAVE_SHM if (wsUseXShm) { @@ -1201,7 +1201,7 @@ // ---------------------------------------------------------------------------------------------- // Move window to x, y. // ---------------------------------------------------------------------------------------------- -void wsMoveWindow(wsTWindow *win, Bool abs, int x, int y) +void wsMoveWindow(wsWindow *win, Bool abs, int x, int y) { if (abs) { win->X = x; @@ -1225,7 +1225,7 @@ * @param x x position of the window (real/absolute or mock) * @param y y position of the window (real/absolute or mock) */ -void wsMoveWindowWithin(wsTWindow *win, Bool abs, int x, int y) +void wsMoveWindowWithin(wsWindow *win, Bool abs, int x, int y) { Bool fitting = True; @@ -1254,7 +1254,7 @@ // ---------------------------------------------------------------------------------------------- // Resize window to sx, sy. // ---------------------------------------------------------------------------------------------- -void wsResizeWindow(wsTWindow *win, int sx, int sy) +void wsResizeWindow(wsWindow *win, int sx, int sy) { win->Width = sx; win->Height = sy; @@ -1277,7 +1277,7 @@ * * @param win pointer to a ws window structure */ -void wsIconify(wsTWindow *win) +void wsIconify(wsWindow *win) { XIconifyWindow(wsDisplay, win->WindowID, 0); } @@ -1297,12 +1297,12 @@ // ---------------------------------------------------------------------------------------------- // Set window background to 'color'. // ---------------------------------------------------------------------------------------------- -void wsSetBackground(wsTWindow *win, int color) +void wsSetBackground(wsWindow *win, int color) { XSetWindowBackground(wsDisplay, win->WindowID, color); } -void wsSetBackgroundRGB(wsTWindow *win, int r, int g, int b) +void wsSetBackgroundRGB(wsWindow *win, int r, int g, int b) { int color = 0; @@ -1337,7 +1337,7 @@ XSetWindowBackground(wsDisplay, win->WindowID, color); } -void wsSetForegroundRGB(wsTWindow *win, int r, int g, int b) +void wsSetForegroundRGB(wsWindow *win, int r, int g, int b) { int color = 0; @@ -1375,7 +1375,7 @@ // ---------------------------------------------------------------------------------------------- // Show / hide mouse cursor. // ---------------------------------------------------------------------------------------------- -void wsVisibleMouse(wsTWindow *win, int m) +void wsVisibleMouse(wsWindow *win, int m) { switch (m) { case wsShowMouseCursor: @@ -1447,7 +1447,7 @@ XCloseDisplay(wsDisplay); } -void wsVisibleWindow(wsTWindow *win, int show) +void wsVisibleWindow(wsWindow *win, int show) { switch (show) { case wsShowWindow: @@ -1469,7 +1469,7 @@ XFlush(wsDisplay); } -void wsDestroyImage(wsTWindow *win) +void wsDestroyImage(wsWindow *win) { if (win->xImage) { XDestroyImage(win->xImage); @@ -1485,7 +1485,7 @@ win->xImage = NULL; } -void wsCreateImage(wsTWindow *win, int Width, int Height) +void wsCreateImage(wsWindow *win, int Width, int Height) { #ifdef HAVE_SHM if (wsUseXShm) { @@ -1541,7 +1541,7 @@ win->ImageDatadw = (unsigned int *)win->xImage->data; } -void wsResizeImage(wsTWindow *win, int Width, int Height) +void wsResizeImage(wsWindow *win, int Width, int Height) { wsDestroyImage(win); wsCreateImage(win, Width, Height); @@ -1581,22 +1581,22 @@ * * @param win pointer to a ws window structure */ -void wsClearWindow(wsTWindow *win) +void wsClearWindow(wsWindow *win) { XClearWindow(wsDisplay, win->WindowID); } -void wsSetTitle(wsTWindow *win, char *name) +void wsSetTitle(wsWindow *win, char *name) { XStoreName(wsDisplay, win->WindowID, name); } -void wsSetMousePosition(wsTWindow *win, int x, int y) +void wsSetMousePosition(wsWindow *win, int x, int y) { XWarpPointer(wsDisplay, wsRootWin, win->WindowID, 0, 0, 0, 0, x, y); } -void wsSetShape(wsTWindow *win, char *data) +void wsSetShape(wsWindow *win, char *data) { #ifdef CONFIG_XSHAPE if (!wsUseXShape)
--- a/gui/wm/ws.h Tue Jan 15 12:30:08 2013 +0000 +++ b/gui/wm/ws.h Tue Jan 15 12:37:42 2013 +0000 @@ -185,7 +185,7 @@ Pixmap wsCursorPixmap; int wsMouseEventType; XColor wsColor; -} wsTWindow; +} wsWindow; extern int wsMaxX; extern int wsMaxY; @@ -225,40 +225,40 @@ Bool wsEvents(XEvent *event); void wsHandleEvents(void); -void wsCreateWindow(wsTWindow *win, int x, int y, int w, int h, int b, int c, unsigned char p, char *label); -void wsDestroyWindow(wsTWindow *win); -void wsMoveWindow(wsTWindow *win, Bool abs, int x, int y); -void wsMoveWindowWithin(wsTWindow *win, Bool abs, int x, int y); -void wsResizeWindow(wsTWindow *win, int sx, int sy); -void wsIconify(wsTWindow *win); +void wsCreateWindow(wsWindow *win, int x, int y, int w, int h, int b, int c, unsigned char p, char *label); +void wsDestroyWindow(wsWindow *win); +void wsMoveWindow(wsWindow *win, Bool abs, int x, int y); +void wsMoveWindowWithin(wsWindow *win, Bool abs, int x, int y); +void wsResizeWindow(wsWindow *win, int sx, int sy); +void wsIconify(wsWindow *win); void wsRaiseWindowTop(Display *display, Window Win); -void wsSetBackground(wsTWindow *win, int color); -void wsSetForegroundRGB(wsTWindow *win, int r, int g, int b); -void wsSetBackgroundRGB(wsTWindow *win, int r, int g, int b); -void wsClearWindow(wsTWindow *win); -void wsSetTitle(wsTWindow *win, char *name); -void wsVisibleWindow(wsTWindow *win, int show); -void wsWindowDecoration(wsTWindow *win, Bool decor); +void wsSetBackground(wsWindow *win, int color); +void wsSetForegroundRGB(wsWindow *win, int r, int g, int b); +void wsSetBackgroundRGB(wsWindow *win, int r, int g, int b); +void wsClearWindow(wsWindow *win); +void wsSetTitle(wsWindow *win, char *name); +void wsVisibleWindow(wsWindow *win, int show); +void wsWindowDecoration(wsWindow *win, Bool decor); void wsSetLayer(Display *display, Window Win, Bool fullscreen); -void wsFullScreen(wsTWindow *win); -void wsPostRedisplay(wsTWindow *win); -void wsSetShape(wsTWindow *win, char *data); +void wsFullScreen(wsWindow *win); +void wsPostRedisplay(wsWindow *win); +void wsSetShape(wsWindow *win, char *data); void wsSetIcon(Display *display, Window Win, guiIcon_t *icon); // ---------------------------------------------------------------------------------------------- // Show / hide mouse cursor. // ---------------------------------------------------------------------------------------------- -void wsVisibleMouse(wsTWindow *win, int m); -void wsSetMousePosition(wsTWindow *win, int x, int y); +void wsVisibleMouse(wsWindow *win, int m); +void wsSetMousePosition(wsWindow *win, int x, int y); // ---------------------------------------------------------------------------------------------- // Image handling // ---------------------------------------------------------------------------------------------- -void wsCreateImage(wsTWindow *win, int Width, int Height); -void wsConvert(wsTWindow *win, unsigned char *Image); -void wsPutImage(wsTWindow *win); -void wsResizeImage(wsTWindow *win, int Width, int Height); -void wsDestroyImage(wsTWindow *win); +void wsCreateImage(wsWindow *win, int Width, int Height); +void wsConvert(wsWindow *win, unsigned char *Image); +void wsPutImage(wsWindow *win); +void wsResizeImage(wsWindow *win, int Width, int Height); +void wsDestroyImage(wsWindow *win); int wsGetOutMask(void); #define wgIsRect(X, Y, tX, tY, bX, bY) (((X) > (tX)) && ((Y) > (tY)) && ((X) < (bX)) && ((Y) < (bY)))
--- a/gui/wm/wsxdnd.c Tue Jan 15 12:30:08 2013 +0000 +++ b/gui/wm/wsxdnd.c Tue Jan 15 12:37:42 2013 +0000 @@ -61,19 +61,19 @@ XA_XdndTypeList = XInternAtom(wsDisplay, "XdndTypeList", False); } -void wsXDNDMakeAwareness(wsTWindow* win) { +void wsXDNDMakeAwareness(wsWindow* win) { long int xdnd_version = XDND_VERSION; XChangeProperty (wsDisplay, win->WindowID, XA_XdndAware, XA_ATOM, 32, PropModeAppend, (char *)&xdnd_version, 1); } -void wsXDNDClearAwareness(wsTWindow* win) { +void wsXDNDClearAwareness(wsWindow* win) { XDeleteProperty (wsDisplay, win->WindowID, XA_XdndAware); } #define MAX_DND_FILES 64 Bool -wsXDNDProcessSelection(wsTWindow* win, XEvent *event) +wsXDNDProcessSelection(wsWindow* win, XEvent *event) { Atom ret_type; int ret_format;
--- a/gui/wm/wsxdnd.h Tue Jan 15 12:30:08 2013 +0000 +++ b/gui/wm/wsxdnd.h Tue Jan 15 12:37:42 2013 +0000 @@ -22,10 +22,10 @@ #include "ws.h" void wsXDNDInitialize(void); -Bool wsXDNDProcessSelection(wsTWindow* win,XEvent *event); +Bool wsXDNDProcessSelection(wsWindow* win,XEvent *event); Bool wsXDNDProcessClientMessage(XClientMessageEvent *event); -void wsXDNDMakeAwareness(wsTWindow* win); -void wsXDNDClearAwareness(wsTWindow* win); +void wsXDNDMakeAwareness(wsWindow* win); +void wsXDNDClearAwareness(wsWindow* win); /* header was ripped from xdnd's example on its page */