Mercurial > sdl-ios-xcode
comparison include/SDL_syswm.h @ 1361:19418e4422cb
New configure-based build system. Still work in progress, but much improved
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 16 Feb 2006 10:11:48 +0000 |
parents | c71e05b4dc2e |
children | bb6839704ed6 |
comparison
equal
deleted
inserted
replaced
1360:70a9cfb4cf1b | 1361:19418e4422cb |
---|---|
43 #ifdef SDL_PROTOTYPES_ONLY | 43 #ifdef SDL_PROTOTYPES_ONLY |
44 struct SDL_SysWMinfo; | 44 struct SDL_SysWMinfo; |
45 typedef struct SDL_SysWMinfo SDL_SysWMinfo; | 45 typedef struct SDL_SysWMinfo SDL_SysWMinfo; |
46 #else | 46 #else |
47 | 47 |
48 /* This is the structure for custom window manager events */ | |
49 #if SDL_VIDEO_DRIVER_X11 | |
48 #if defined(__APPLE__) && defined(__MACH__) | 50 #if defined(__APPLE__) && defined(__MACH__) |
49 // conflicts with Quickdraw.h | 51 // conflicts with Quickdraw.h |
50 #define Cursor X11Cursor | 52 #define Cursor X11Cursor |
51 #endif | 53 #endif |
52 | 54 |
53 /* This is the structure for custom window manager events */ | |
54 #if (defined(unix) || defined(__unix__) || defined(_AIX) || \ | |
55 defined(__OpenBSD__) || defined(__NetBSD__) || \ | |
56 (defined(__APPLE__) && defined(__MACH__))) && \ | |
57 (!defined(DISABLE_X11) && !defined(__CYGWIN32__) && !defined(ENABLE_NANOX) && \ | |
58 !defined(__QNXNTO__)) | |
59 /* AIX is unix, of course, but the native compiler CSet doesn't define unix */ | |
60 #include <X11/Xlib.h> | 55 #include <X11/Xlib.h> |
61 #include <X11/Xatom.h> | 56 #include <X11/Xatom.h> |
62 | 57 |
63 #if defined(__APPLE__) && defined(__MACH__) | 58 #if defined(__APPLE__) && defined(__MACH__) |
64 // matches the re-define above | 59 // matches the re-define above |
103 Window wmwindow; /* The X11 managed input window */ | 98 Window wmwindow; /* The X11 managed input window */ |
104 } x11; | 99 } x11; |
105 } info; | 100 } info; |
106 } SDL_SysWMinfo; | 101 } SDL_SysWMinfo; |
107 | 102 |
108 #elif defined(ENABLE_NANOX) | 103 #elif SDL_VIDEO_DRIVER_NANOX |
109 #include <microwin/nano-X.h> | 104 #include <microwin/nano-X.h> |
110 | 105 |
111 /* The generic custom event structure */ | 106 /* The generic custom event structure */ |
112 struct SDL_SysWMmsg { | 107 struct SDL_SysWMmsg { |
113 SDL_version version; | 108 SDL_version version; |
118 typedef struct SDL_SysWMinfo { | 113 typedef struct SDL_SysWMinfo { |
119 SDL_version version ; | 114 SDL_version version ; |
120 GR_WINDOW_ID window ; /* The display window */ | 115 GR_WINDOW_ID window ; /* The display window */ |
121 } SDL_SysWMinfo; | 116 } SDL_SysWMinfo; |
122 | 117 |
123 #elif defined(WIN32) | 118 #elif SDL_VIDEO_DRIVER_WINDIB || SDL_VIDEO_DRIVER_DDRAW |
124 #include "SDL_windows.h" | 119 #include "SDL_windows.h" |
125 | 120 |
126 /* The windows custom event structure */ | 121 /* The windows custom event structure */ |
127 struct SDL_SysWMmsg { | 122 struct SDL_SysWMmsg { |
128 SDL_version version; | 123 SDL_version version; |
137 SDL_version version; | 132 SDL_version version; |
138 HWND window; /* The Win32 display window */ | 133 HWND window; /* The Win32 display window */ |
139 HGLRC hglrc; /* The OpenGL context, if any */ | 134 HGLRC hglrc; /* The OpenGL context, if any */ |
140 } SDL_SysWMinfo; | 135 } SDL_SysWMinfo; |
141 | 136 |
142 #elif defined(__riscos__) | 137 #elif SDL_VIDEO_DRIVER_RISCOS |
143 | 138 |
144 /* RISC OS custom event structure */ | 139 /* RISC OS custom event structure */ |
145 struct SDL_SysWMmsg { | 140 struct SDL_SysWMmsg { |
146 SDL_version version; | 141 SDL_version version; |
147 int eventCode; /* The window for the message */ | 142 int eventCode; /* The window for the message */ |
154 int wimpVersion; /* Wimp version running under */ | 149 int wimpVersion; /* Wimp version running under */ |
155 int taskHandle; /* The RISC OS task handle */ | 150 int taskHandle; /* The RISC OS task handle */ |
156 int window; /* The RISC OS display window */ | 151 int window; /* The RISC OS display window */ |
157 } SDL_SysWMinfo; | 152 } SDL_SysWMinfo; |
158 | 153 |
159 #elif defined(__QNXNTO__) | 154 #elif SDL_VIDEO_DRIVER_PHOTON |
160 #include <sys/neutrino.h> | 155 #include <sys/neutrino.h> |
161 #include <Ph.h> | 156 #include <Ph.h> |
162 | 157 |
163 /* The QNX custom event structure */ | 158 /* The QNX custom event structure */ |
164 struct SDL_SysWMmsg { | 159 struct SDL_SysWMmsg { |
184 typedef struct SDL_SysWMinfo { | 179 typedef struct SDL_SysWMinfo { |
185 SDL_version version; | 180 SDL_version version; |
186 int data; | 181 int data; |
187 } SDL_SysWMinfo; | 182 } SDL_SysWMinfo; |
188 | 183 |
189 #endif /* OS type */ | 184 #endif /* video driver type */ |
190 | 185 |
191 #endif /* SDL_PROTOTYPES_ONLY */ | 186 #endif /* SDL_PROTOTYPES_ONLY */ |
192 | 187 |
193 /* Function prototypes */ | 188 /* Function prototypes */ |
194 /* | 189 /* |