src/video/windows/SDL_windowswindow.h
author Sam Lantinga <slouken@libsdl.org>
Tue, 15 Feb 2011 23:07:14 -0800
changeset 5305 75f5ff92ad08
parent 5262 b530ef003506
child 5398 83816c8a2b58
permissions -rw-r--r--
Fixed a host of issues with Windows fullscreen modes. Toggling fullscreen OpenGL works now in my test environment.
slouken@1895
     1
/*
slouken@1895
     2
    SDL - Simple DirectMedia Layer
slouken@5262
     3
    Copyright (C) 1997-2011 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@5175
    41
    HDC mdc;
slouken@5175
    42
    HBITMAP hbm;
slouken@1895
    43
    WNDPROC wndproc;
slouken@1951
    44
    SDL_bool created;
slouken@1895
    45
    int mouse_pressed;
slouken@5305
    46
    int windowed_x;
slouken@5305
    47
    int windowed_y;
slouken@1895
    48
    struct SDL_VideoData *videodata;
slouken@1895
    49
} SDL_WindowData;
slouken@1895
    50
slouken@1895
    51
extern int WIN_CreateWindow(_THIS, SDL_Window * window);
slouken@1895
    52
extern int WIN_CreateWindowFrom(_THIS, SDL_Window * window, const void *data);
slouken@1895
    53
extern void WIN_SetWindowTitle(_THIS, SDL_Window * window);
slouken@2970
    54
extern void WIN_SetWindowIcon(_THIS, SDL_Window * window, SDL_Surface * icon);
slouken@1895
    55
extern void WIN_SetWindowPosition(_THIS, SDL_Window * window);
slouken@1895
    56
extern void WIN_SetWindowSize(_THIS, SDL_Window * window);
slouken@1895
    57
extern void WIN_ShowWindow(_THIS, SDL_Window * window);
slouken@1895
    58
extern void WIN_HideWindow(_THIS, SDL_Window * window);
slouken@1895
    59
extern void WIN_RaiseWindow(_THIS, SDL_Window * window);
slouken@1895
    60
extern void WIN_MaximizeWindow(_THIS, SDL_Window * window);
slouken@1895
    61
extern void WIN_MinimizeWindow(_THIS, SDL_Window * window);
slouken@1895
    62
extern void WIN_RestoreWindow(_THIS, SDL_Window * window);
slouken@5305
    63
extern void WIN_SetWindowFullscreen(_THIS, SDL_Window * window, SDL_VideoDisplay * display, SDL_bool fullscreen);
slouken@1895
    64
extern void WIN_SetWindowGrab(_THIS, SDL_Window * window);
slouken@1895
    65
extern void WIN_DestroyWindow(_THIS, SDL_Window * window);
slouken@1895
    66
extern SDL_bool WIN_GetWindowWMInfo(_THIS, SDL_Window * window,
slouken@1895
    67
                                    struct SDL_SysWMinfo *info);
slouken@1895
    68
slouken@5062
    69
#endif /* _SDL_windowswindow_h */
slouken@1895
    70
slouken@1895
    71
/* vi: set ts=4 sw=4 expandtab: */