misc/winutils/include/SDL_syswm.h
author unc0rr
Sun, 13 Oct 2013 22:31:51 +0400
changeset 9531 7fcdedc45589
parent 7809 7d4fb2f35f4f
child 10017 de822cd3df3a
permissions -rw-r--r--
Unbreak access to Data dir in profile broken in r8b48c27201af
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6560
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
     1
/*
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
     2
    SDL - Simple DirectMedia Layer
7809
7d4fb2f35f4f update SDL headers for winutils
koda
parents: 6560
diff changeset
     3
    Copyright (C) 1997-2012 Sam Lantinga
6560
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
     4
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
     5
    This library is free software; you can redistribute it and/or
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
     6
    modify it under the terms of the GNU Lesser General Public
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
     7
    License as published by the Free Software Foundation; either
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
     8
    version 2.1 of the License, or (at your option) any later version.
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
     9
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    10
    This library is distributed in the hope that it will be useful,
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    13
    Lesser General Public License for more details.
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    14
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    15
    You should have received a copy of the GNU Lesser General Public
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    16
    License along with this library; if not, write to the Free Software
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    17
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    18
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    19
    Sam Lantinga
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    20
    slouken@libsdl.org
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    21
*/
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    22
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    23
/** @file SDL_syswm.h
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    24
 *  Include file for SDL custom system window manager hooks
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    25
 */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    26
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    27
#ifndef _SDL_syswm_h
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    28
#define _SDL_syswm_h
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    29
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    30
#include "SDL_stdinc.h"
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    31
#include "SDL_error.h"
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    32
#include "SDL_version.h"
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    33
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    34
#include "begin_code.h"
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    35
/* Set up for C function definitions, even when using C++ */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    36
#ifdef __cplusplus
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    37
extern "C" {
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    38
#endif
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    39
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    40
/** @file SDL_syswm.h
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    41
 *  Your application has access to a special type of event 'SDL_SYSWMEVENT',
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    42
 *  which contains window-manager specific information and arrives whenever
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    43
 *  an unhandled window event occurs.  This event is ignored by default, but
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    44
 *  you can enable it with SDL_EventState()
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    45
 */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    46
#ifdef SDL_PROTOTYPES_ONLY
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    47
struct SDL_SysWMinfo;
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    48
typedef struct SDL_SysWMinfo SDL_SysWMinfo;
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    49
#else
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    50
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    51
/* This is the structure for custom window manager events */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    52
#if defined(SDL_VIDEO_DRIVER_X11)
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    53
#if defined(__APPLE__) && defined(__MACH__)
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    54
/* conflicts with Quickdraw.h */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    55
#define Cursor X11Cursor
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    56
#endif
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    57
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    58
#include <X11/Xlib.h>
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    59
#include <X11/Xatom.h>
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    60
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    61
#if defined(__APPLE__) && defined(__MACH__)
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    62
/* matches the re-define above */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    63
#undef Cursor
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    64
#endif
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    65
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    66
/** These are the various supported subsystems under UNIX */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    67
typedef enum {
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    68
	SDL_SYSWM_X11
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    69
} SDL_SYSWM_TYPE;
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    70
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    71
/** The UNIX custom event structure */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    72
struct SDL_SysWMmsg {
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    73
	SDL_version version;
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    74
	SDL_SYSWM_TYPE subsystem;
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    75
	union {
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    76
	    XEvent xevent;
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    77
	} event;
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    78
};
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    79
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    80
/** The UNIX custom window manager information structure.
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    81
 *  When this structure is returned, it holds information about which
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    82
 *  low level system it is using, and will be one of SDL_SYSWM_TYPE.
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    83
 */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    84
typedef struct SDL_SysWMinfo {
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    85
	SDL_version version;
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    86
	SDL_SYSWM_TYPE subsystem;
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    87
	union {
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    88
	    struct {
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    89
	    	Display *display;	/**< The X11 display */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    90
	    	Window window;		/**< The X11 display window */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    91
		/** These locking functions should be called around
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    92
                 *  any X11 functions using the display variable, 
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    93
                 *  but not the gfxdisplay variable.
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    94
                 *  They lock the event thread, so should not be
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    95
		 *  called around event functions or from event filters.
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    96
		 */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    97
                /*@{*/
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    98
		void (*lock_func)(void);
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    99
		void (*unlock_func)(void);
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   100
                /*@}*/
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   101
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   102
		/** @name Introduced in SDL 1.0.2 */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   103
                /*@{*/
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   104
	    	Window fswindow;	/**< The X11 fullscreen window */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   105
	    	Window wmwindow;	/**< The X11 managed input window */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   106
                /*@}*/
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   107
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   108
		/** @name Introduced in SDL 1.2.12 */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   109
                /*@{*/
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   110
		Display *gfxdisplay;	/**< The X11 display to which rendering is done */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   111
                /*@}*/
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   112
	    } x11;
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   113
	} info;
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   114
} SDL_SysWMinfo;
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   115
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   116
#elif defined(SDL_VIDEO_DRIVER_NANOX)
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   117
#include <microwin/nano-X.h>
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   118
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   119
/** The generic custom event structure */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   120
struct SDL_SysWMmsg {
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   121
	SDL_version version;
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   122
	int data;
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   123
};
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   124
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   125
/** The windows custom window manager information structure */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   126
typedef struct SDL_SysWMinfo {
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   127
	SDL_version version ;
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   128
	GR_WINDOW_ID window ;	/* The display window */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   129
} SDL_SysWMinfo;
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   130
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   131
#elif defined(SDL_VIDEO_DRIVER_WINDIB) || defined(SDL_VIDEO_DRIVER_DDRAW) || defined(SDL_VIDEO_DRIVER_GAPI)
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   132
#define WIN32_LEAN_AND_MEAN
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   133
#include <windows.h>
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   134
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   135
/** The windows custom event structure */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   136
struct SDL_SysWMmsg {
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   137
	SDL_version version;
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   138
	HWND hwnd;			/**< The window for the message */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   139
	UINT msg;			/**< The type of message */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   140
	WPARAM wParam;			/**< WORD message parameter */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   141
	LPARAM lParam;			/**< LONG message parameter */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   142
};
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   143
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   144
/** The windows custom window manager information structure */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   145
typedef struct SDL_SysWMinfo {
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   146
	SDL_version version;
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   147
	HWND window;			/**< The Win32 display window */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   148
	HGLRC hglrc;			/**< The OpenGL context, if any */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   149
} SDL_SysWMinfo;
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   150
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   151
#elif defined(SDL_VIDEO_DRIVER_RISCOS)
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   152
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   153
/** RISC OS custom event structure */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   154
struct SDL_SysWMmsg {
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   155
	SDL_version version;
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   156
	int eventCode;		/**< The window for the message */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   157
	int pollBlock[64];
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   158
};
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   159
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   160
/** The RISC OS custom window manager information structure */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   161
typedef struct SDL_SysWMinfo {
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   162
	SDL_version version;
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   163
	int wimpVersion;    /**< Wimp version running under */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   164
	int taskHandle;     /**< The RISC OS task handle */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   165
	int window;		/**< The RISC OS display window */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   166
} SDL_SysWMinfo;
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   167
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   168
#elif defined(SDL_VIDEO_DRIVER_PHOTON)
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   169
#include <sys/neutrino.h>
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   170
#include <Ph.h>
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   171
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   172
/** The QNX custom event structure */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   173
struct SDL_SysWMmsg {
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   174
	SDL_version version;
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   175
	int data;
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   176
};
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   177
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   178
/** The QNX custom window manager information structure */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   179
typedef struct SDL_SysWMinfo {
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   180
	SDL_version version;
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   181
	int data;
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   182
} SDL_SysWMinfo;
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   183
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   184
#else
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   185
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   186
/** The generic custom event structure */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   187
struct SDL_SysWMmsg {
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   188
	SDL_version version;
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   189
	int data;
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   190
};
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   191
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   192
/** The generic custom window manager information structure */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   193
typedef struct SDL_SysWMinfo {
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   194
	SDL_version version;
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   195
	int data;
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   196
} SDL_SysWMinfo;
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   197
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   198
#endif /* video driver type */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   199
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   200
#endif /* SDL_PROTOTYPES_ONLY */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   201
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   202
/* Function prototypes */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   203
/**
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   204
 * This function gives you custom hooks into the window manager information.
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   205
 * It fills the structure pointed to by 'info' with custom information and
7809
7d4fb2f35f4f update SDL headers for winutils
koda
parents: 6560
diff changeset
   206
 * returns 0 if the function is not implemented, 1 if the function is 
7d4fb2f35f4f update SDL headers for winutils
koda
parents: 6560
diff changeset
   207
 * implemented and no error occurred, and -1 if the version member of
7d4fb2f35f4f update SDL headers for winutils
koda
parents: 6560
diff changeset
   208
 * the 'info' structure is not filled in or not supported.
6560
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   209
 *
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   210
 * You typically use this function like this:
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   211
 * @code
7809
7d4fb2f35f4f update SDL headers for winutils
koda
parents: 6560
diff changeset
   212
 * SDL_SysWMinfo info;
6560
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   213
 * SDL_VERSION(&info.version);
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   214
 * if ( SDL_GetWMInfo(&info) ) { ... }
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   215
 * @endcode
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   216
 */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   217
extern DECLSPEC int SDLCALL SDL_GetWMInfo(SDL_SysWMinfo *info);
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   218
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   219
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   220
/* Ends C function definitions when using C++ */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   221
#ifdef __cplusplus
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   222
}
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   223
#endif
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   224
#include "close_code.h"
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   225
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   226
#endif /* _SDL_syswm_h */