src/video/win32/SDL_win32window.h
author Sam Lantinga <slouken@libsdl.org>
Mon, 10 Jul 2006 21:04:37 +0000
changeset 1895 c121d94672cb
child 1913 83420da906a5
permissions -rw-r--r--
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
slouken@1895
     1
/*
slouken@1895
     2
    SDL - Simple DirectMedia Layer
slouken@1895
     3
    Copyright (C) 1997-2006 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@1895
    24
#ifndef _SDL_win32window_h
slouken@1895
    25
#define _SDL_win32window_h
slouken@1895
    26
slouken@1895
    27
#include "../SDL_sysvideo.h"
slouken@1895
    28
#include "SDL_win32video.h"
slouken@1895
    29
slouken@1895
    30
typedef struct
slouken@1895
    31
{
slouken@1895
    32
    SDL_WindowID windowID;
slouken@1895
    33
    HWND hwnd;
slouken@1895
    34
    WNDPROC wndproc;
slouken@1895
    35
    BOOL created;
slouken@1895
    36
    int mouse_pressed;
slouken@1895
    37
    struct SDL_VideoData *videodata;
slouken@1895
    38
} SDL_WindowData;
slouken@1895
    39
slouken@1895
    40
extern int WIN_CreateWindow(_THIS, SDL_Window * window);
slouken@1895
    41
extern int WIN_CreateWindowFrom(_THIS, SDL_Window * window, const void *data);
slouken@1895
    42
extern void WIN_SetWindowTitle(_THIS, SDL_Window * window);
slouken@1895
    43
extern void WIN_SetWindowPosition(_THIS, SDL_Window * window);
slouken@1895
    44
extern void WIN_SetWindowSize(_THIS, SDL_Window * window);
slouken@1895
    45
extern void WIN_ShowWindow(_THIS, SDL_Window * window);
slouken@1895
    46
extern void WIN_HideWindow(_THIS, SDL_Window * window);
slouken@1895
    47
extern void WIN_RaiseWindow(_THIS, SDL_Window * window);
slouken@1895
    48
extern void WIN_MaximizeWindow(_THIS, SDL_Window * window);
slouken@1895
    49
extern void WIN_MinimizeWindow(_THIS, SDL_Window * window);
slouken@1895
    50
extern void WIN_RestoreWindow(_THIS, SDL_Window * window);
slouken@1895
    51
extern void WIN_SetWindowGrab(_THIS, SDL_Window * window);
slouken@1895
    52
extern void WIN_DestroyWindow(_THIS, SDL_Window * window);
slouken@1895
    53
extern SDL_bool WIN_GetWindowWMInfo(_THIS, SDL_Window * window,
slouken@1895
    54
                                    struct SDL_SysWMinfo *info);
slouken@1895
    55
slouken@1895
    56
#endif /* _SDL_win32window_h */
slouken@1895
    57
slouken@1895
    58
/* vi: set ts=4 sw=4 expandtab: */