src/video/windows/SDL_windowswindow.h
author Sam Lantinga <slouken@libsdl.org>
Thu, 20 Jan 2011 18:04:05 -0800
changeset 5062 e8916fe9cfc8
parent 4569 src/video/win32/SDL_win32window.h@e1664f94f026
child 5175 9b2e99ebd099
permissions -rw-r--r--
Fixed bug #925

Changed "win32" to "windows"
slouken@1895
     1
/*
slouken@1895
     2
    SDL - Simple DirectMedia Layer
slouken@3697
     3
    Copyright (C) 1997-2010 Sam Lantinga
slouken@1895
     4
slouken@1895
     5
    This library is free software; you can redistribute it and/or
slouken@1895
     6
    modify it under the terms of the GNU Lesser General Public
slouken@1895
     7
    License as published by the Free Software Foundation; either
slouken@1895
     8
    version 2.1 of the License, or (at your option) any later version.
slouken@1895
     9
slouken@1895
    10
    This library is distributed in the hope that it will be useful,
slouken@1895
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
slouken@1895
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
slouken@1895
    13
    Lesser General Public License for more details.
slouken@1895
    14
slouken@1895
    15
    You should have received a copy of the GNU Lesser General Public
slouken@1895
    16
    License along with this library; if not, write to the Free Software
slouken@1895
    17
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
slouken@1895
    18
slouken@1895
    19
    Sam Lantinga
slouken@1895
    20
    slouken@libsdl.org
slouken@1895
    21
*/
slouken@1895
    22
#include "SDL_config.h"
slouken@1895
    23
slouken@5062
    24
#ifndef _SDL_windowswindow_h
slouken@5062
    25
#define _SDL_windowswindow_h
slouken@1895
    26
slouken@4569
    27
#ifdef _WIN32_WCE
slouken@4569
    28
#define SHFS_SHOWTASKBAR        0x0001
slouken@4569
    29
#define SHFS_HIDETASKBAR        0x0002
slouken@4569
    30
#define SHFS_SHOWSIPBUTTON      0x0004
slouken@4569
    31
#define SHFS_HIDESIPBUTTON      0x0008
slouken@4569
    32
#define SHFS_SHOWSTARTICON      0x0010
slouken@4569
    33
#define SHFS_HIDESTARTICON      0x0020
slouken@4569
    34
#endif
slouken@4569
    35
slouken@1895
    36
typedef struct
slouken@1895
    37
{
slouken@3685
    38
    SDL_Window *window;
slouken@1895
    39
    HWND hwnd;
slouken@1913
    40
    HDC hdc;
slouken@1895
    41
    WNDPROC wndproc;
slouken@1951
    42
    SDL_bool created;
slouken@1895
    43
    int mouse_pressed;
slouken@1895
    44
    struct SDL_VideoData *videodata;
slouken@1895
    45
} SDL_WindowData;
slouken@1895
    46
slouken@1895
    47
extern int WIN_CreateWindow(_THIS, SDL_Window * window);
slouken@1895
    48
extern int WIN_CreateWindowFrom(_THIS, SDL_Window * window, const void *data);
slouken@1895
    49
extern void WIN_SetWindowTitle(_THIS, SDL_Window * window);
slouken@2970
    50
extern void WIN_SetWindowIcon(_THIS, SDL_Window * window, SDL_Surface * icon);
slouken@1895
    51
extern void WIN_SetWindowPosition(_THIS, SDL_Window * window);
slouken@1895
    52
extern void WIN_SetWindowSize(_THIS, SDL_Window * window);
slouken@1895
    53
extern void WIN_ShowWindow(_THIS, SDL_Window * window);
slouken@1895
    54
extern void WIN_HideWindow(_THIS, SDL_Window * window);
slouken@1895
    55
extern void WIN_RaiseWindow(_THIS, SDL_Window * window);
slouken@1895
    56
extern void WIN_MaximizeWindow(_THIS, SDL_Window * window);
slouken@1895
    57
extern void WIN_MinimizeWindow(_THIS, SDL_Window * window);
slouken@1895
    58
extern void WIN_RestoreWindow(_THIS, SDL_Window * window);
slouken@1895
    59
extern void WIN_SetWindowGrab(_THIS, SDL_Window * window);
slouken@1895
    60
extern void WIN_DestroyWindow(_THIS, SDL_Window * window);
slouken@1895
    61
extern SDL_bool WIN_GetWindowWMInfo(_THIS, SDL_Window * window,
slouken@1895
    62
                                    struct SDL_SysWMinfo *info);
slouken@1895
    63
slouken@5062
    64
#endif /* _SDL_windowswindow_h */
slouken@1895
    65
slouken@1895
    66
/* vi: set ts=4 sw=4 expandtab: */