src/video/windows/SDL_windowswindow.h
author Sam Lantinga <slouken@libsdl.org>
Fri, 08 Apr 2011 13:03:26 -0700
changeset 5535 96594ac5fd1a
parent 5466 006883d5fa51
child 6138 4c64952a58fb
permissions -rw-r--r--
SDL 1.3 is now under the zlib license.
slouken@1895
     1
/*
slouken@5535
     2
  Simple DirectMedia Layer
slouken@5535
     3
  Copyright (C) 1997-2011 Sam Lantinga <slouken@libsdl.org>
slouken@1895
     4
slouken@5535
     5
  This software is provided 'as-is', without any express or implied
slouken@5535
     6
  warranty.  In no event will the authors be held liable for any damages
slouken@5535
     7
  arising from the use of this software.
slouken@1895
     8
slouken@5535
     9
  Permission is granted to anyone to use this software for any purpose,
slouken@5535
    10
  including commercial applications, and to alter it and redistribute it
slouken@5535
    11
  freely, subject to the following restrictions:
slouken@1895
    12
slouken@5535
    13
  1. The origin of this software must not be misrepresented; you must not
slouken@5535
    14
     claim that you wrote the original software. If you use this software
slouken@5535
    15
     in a product, an acknowledgment in the product documentation would be
slouken@5535
    16
     appreciated but is not required.
slouken@5535
    17
  2. Altered source versions must be plainly marked as such, and must not be
slouken@5535
    18
     misrepresented as being the original software.
slouken@5535
    19
  3. This notice may not be removed or altered from any source distribution.
slouken@1895
    20
*/
slouken@1895
    21
#include "SDL_config.h"
slouken@1895
    22
slouken@5062
    23
#ifndef _SDL_windowswindow_h
slouken@5062
    24
#define _SDL_windowswindow_h
slouken@1895
    25
slouken@4569
    26
#ifdef _WIN32_WCE
slouken@4569
    27
#define SHFS_SHOWTASKBAR        0x0001
slouken@4569
    28
#define SHFS_HIDETASKBAR        0x0002
slouken@4569
    29
#define SHFS_SHOWSIPBUTTON      0x0004
slouken@4569
    30
#define SHFS_HIDESIPBUTTON      0x0008
slouken@4569
    31
#define SHFS_SHOWSTARTICON      0x0010
slouken@4569
    32
#define SHFS_HIDESTARTICON      0x0020
slouken@4569
    33
#endif
slouken@4569
    34
slouken@1895
    35
typedef struct
slouken@1895
    36
{
slouken@3685
    37
    SDL_Window *window;
slouken@1895
    38
    HWND hwnd;
slouken@1913
    39
    HDC hdc;
slouken@5175
    40
    HDC mdc;
slouken@5175
    41
    HBITMAP hbm;
slouken@1895
    42
    WNDPROC wndproc;
slouken@1951
    43
    SDL_bool created;
slouken@1895
    44
    int mouse_pressed;
slouken@1895
    45
    struct SDL_VideoData *videodata;
slouken@1895
    46
} SDL_WindowData;
slouken@1895
    47
slouken@1895
    48
extern int WIN_CreateWindow(_THIS, SDL_Window * window);
slouken@1895
    49
extern int WIN_CreateWindowFrom(_THIS, SDL_Window * window, const void *data);
slouken@1895
    50
extern void WIN_SetWindowTitle(_THIS, SDL_Window * window);
slouken@2970
    51
extern void WIN_SetWindowIcon(_THIS, SDL_Window * window, SDL_Surface * icon);
slouken@1895
    52
extern void WIN_SetWindowPosition(_THIS, SDL_Window * window);
slouken@1895
    53
extern void WIN_SetWindowSize(_THIS, SDL_Window * window);
slouken@1895
    54
extern void WIN_ShowWindow(_THIS, SDL_Window * window);
slouken@1895
    55
extern void WIN_HideWindow(_THIS, SDL_Window * window);
slouken@1895
    56
extern void WIN_RaiseWindow(_THIS, SDL_Window * window);
slouken@1895
    57
extern void WIN_MaximizeWindow(_THIS, SDL_Window * window);
slouken@1895
    58
extern void WIN_MinimizeWindow(_THIS, SDL_Window * window);
slouken@1895
    59
extern void WIN_RestoreWindow(_THIS, SDL_Window * window);
slouken@5305
    60
extern void WIN_SetWindowFullscreen(_THIS, SDL_Window * window, SDL_VideoDisplay * display, SDL_bool fullscreen);
slouken@5466
    61
extern int WIN_SetWindowGammaRamp(_THIS, SDL_Window * window, const Uint16 * ramp);
slouken@5466
    62
extern int WIN_GetWindowGammaRamp(_THIS, SDL_Window * window, Uint16 * ramp);
slouken@1895
    63
extern void WIN_SetWindowGrab(_THIS, SDL_Window * window);
slouken@1895
    64
extern void WIN_DestroyWindow(_THIS, SDL_Window * window);
slouken@1895
    65
extern SDL_bool WIN_GetWindowWMInfo(_THIS, SDL_Window * window,
slouken@1895
    66
                                    struct SDL_SysWMinfo *info);
slouken@1895
    67
slouken@5062
    68
#endif /* _SDL_windowswindow_h */
slouken@1895
    69
slouken@1895
    70
/* vi: set ts=4 sw=4 expandtab: */