src/video/windows/SDL_windowswindow.h
changeset 5062 e8916fe9cfc8
parent 4569 e1664f94f026
child 5175 9b2e99ebd099
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/video/windows/SDL_windowswindow.h	Thu Jan 20 18:04:05 2011 -0800
     1.3 @@ -0,0 +1,66 @@
     1.4 +/*
     1.5 +    SDL - Simple DirectMedia Layer
     1.6 +    Copyright (C) 1997-2010 Sam Lantinga
     1.7 +
     1.8 +    This library is free software; you can redistribute it and/or
     1.9 +    modify it under the terms of the GNU Lesser General Public
    1.10 +    License as published by the Free Software Foundation; either
    1.11 +    version 2.1 of the License, or (at your option) any later version.
    1.12 +
    1.13 +    This library is distributed in the hope that it will be useful,
    1.14 +    but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.15 +    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    1.16 +    Lesser General Public License for more details.
    1.17 +
    1.18 +    You should have received a copy of the GNU Lesser General Public
    1.19 +    License along with this library; if not, write to the Free Software
    1.20 +    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    1.21 +
    1.22 +    Sam Lantinga
    1.23 +    slouken@libsdl.org
    1.24 +*/
    1.25 +#include "SDL_config.h"
    1.26 +
    1.27 +#ifndef _SDL_windowswindow_h
    1.28 +#define _SDL_windowswindow_h
    1.29 +
    1.30 +#ifdef _WIN32_WCE
    1.31 +#define SHFS_SHOWTASKBAR        0x0001
    1.32 +#define SHFS_HIDETASKBAR        0x0002
    1.33 +#define SHFS_SHOWSIPBUTTON      0x0004
    1.34 +#define SHFS_HIDESIPBUTTON      0x0008
    1.35 +#define SHFS_SHOWSTARTICON      0x0010
    1.36 +#define SHFS_HIDESTARTICON      0x0020
    1.37 +#endif
    1.38 +
    1.39 +typedef struct
    1.40 +{
    1.41 +    SDL_Window *window;
    1.42 +    HWND hwnd;
    1.43 +    HDC hdc;
    1.44 +    WNDPROC wndproc;
    1.45 +    SDL_bool created;
    1.46 +    int mouse_pressed;
    1.47 +    struct SDL_VideoData *videodata;
    1.48 +} SDL_WindowData;
    1.49 +
    1.50 +extern int WIN_CreateWindow(_THIS, SDL_Window * window);
    1.51 +extern int WIN_CreateWindowFrom(_THIS, SDL_Window * window, const void *data);
    1.52 +extern void WIN_SetWindowTitle(_THIS, SDL_Window * window);
    1.53 +extern void WIN_SetWindowIcon(_THIS, SDL_Window * window, SDL_Surface * icon);
    1.54 +extern void WIN_SetWindowPosition(_THIS, SDL_Window * window);
    1.55 +extern void WIN_SetWindowSize(_THIS, SDL_Window * window);
    1.56 +extern void WIN_ShowWindow(_THIS, SDL_Window * window);
    1.57 +extern void WIN_HideWindow(_THIS, SDL_Window * window);
    1.58 +extern void WIN_RaiseWindow(_THIS, SDL_Window * window);
    1.59 +extern void WIN_MaximizeWindow(_THIS, SDL_Window * window);
    1.60 +extern void WIN_MinimizeWindow(_THIS, SDL_Window * window);
    1.61 +extern void WIN_RestoreWindow(_THIS, SDL_Window * window);
    1.62 +extern void WIN_SetWindowGrab(_THIS, SDL_Window * window);
    1.63 +extern void WIN_DestroyWindow(_THIS, SDL_Window * window);
    1.64 +extern SDL_bool WIN_GetWindowWMInfo(_THIS, SDL_Window * window,
    1.65 +                                    struct SDL_SysWMinfo *info);
    1.66 +
    1.67 +#endif /* _SDL_windowswindow_h */
    1.68 +
    1.69 +/* vi: set ts=4 sw=4 expandtab: */