src/video/win32/SDL_win32window.h
author Sam Lantinga <slouken@libsdl.org>
Thu, 27 Jul 2006 06:53:23 +0000
changeset 1951 7177581dc9fa
parent 1933 7ee5297340f7
child 2859 99210400e8b9
permissions -rw-r--r--
Initial work on X11 window code in.
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
typedef struct
slouken@1895
    28
{
slouken@1895
    29
    SDL_WindowID windowID;
slouken@1895
    30
    HWND hwnd;
slouken@1913
    31
    HDC hdc;
slouken@1895
    32
    WNDPROC wndproc;
slouken@1951
    33
    SDL_bool created;
slouken@1895
    34
    int mouse_pressed;
slouken@1895
    35
    struct SDL_VideoData *videodata;
slouken@1895
    36
} SDL_WindowData;
slouken@1895
    37
slouken@1895
    38
extern int WIN_CreateWindow(_THIS, SDL_Window * window);
slouken@1895
    39
extern int WIN_CreateWindowFrom(_THIS, SDL_Window * window, const void *data);
slouken@1895
    40
extern void WIN_SetWindowTitle(_THIS, SDL_Window * window);
slouken@1895
    41
extern void WIN_SetWindowPosition(_THIS, SDL_Window * window);
slouken@1895
    42
extern void WIN_SetWindowSize(_THIS, SDL_Window * window);
slouken@1895
    43
extern void WIN_ShowWindow(_THIS, SDL_Window * window);
slouken@1895
    44
extern void WIN_HideWindow(_THIS, SDL_Window * window);
slouken@1895
    45
extern void WIN_RaiseWindow(_THIS, SDL_Window * window);
slouken@1895
    46
extern void WIN_MaximizeWindow(_THIS, SDL_Window * window);
slouken@1895
    47
extern void WIN_MinimizeWindow(_THIS, SDL_Window * window);
slouken@1895
    48
extern void WIN_RestoreWindow(_THIS, SDL_Window * window);
slouken@1895
    49
extern void WIN_SetWindowGrab(_THIS, SDL_Window * window);
slouken@1895
    50
extern void WIN_DestroyWindow(_THIS, SDL_Window * window);
slouken@1895
    51
extern SDL_bool WIN_GetWindowWMInfo(_THIS, SDL_Window * window,
slouken@1895
    52
                                    struct SDL_SysWMinfo *info);
slouken@1895
    53
slouken@1895
    54
#endif /* _SDL_win32window_h */
slouken@1895
    55
slouken@1895
    56
/* vi: set ts=4 sw=4 expandtab: */