comparison include/SDL_syswm.h @ 30:57bf11a5efd7

Added initial support for Nano-X (thanks Hsieh-Fu!)
author Sam Lantinga <slouken@lokigames.com>
date Fri, 11 May 2001 01:13:35 +0000
parents 74212992fb08
children 13ae3bc6e39a
comparison
equal deleted inserted replaced
29:a8360daed17d 30:57bf11a5efd7
48 typedef struct SDL_SysWMinfo SDL_SysWMinfo; 48 typedef struct SDL_SysWMinfo SDL_SysWMinfo;
49 #else 49 #else
50 50
51 /* This is the structure for custom window manager events */ 51 /* This is the structure for custom window manager events */
52 #if (defined(unix) || defined(__unix__) || defined(_AIX)) && \ 52 #if (defined(unix) || defined(__unix__) || defined(_AIX)) && \
53 (!defined(DISABLE_X11) && !defined(__CYGWIN32__)) 53 (defined(ENABLE_X11) && !defined(__CYGWIN32__))
54 /* AIX is unix, of course, but the native compiler CSet doesn't define unix */ 54 /* AIX is unix, of course, but the native compiler CSet doesn't define unix */
55 #include <X11/Xlib.h> 55 #include <X11/Xlib.h>
56 #include <X11/Xatom.h> 56 #include <X11/Xatom.h>
57 57
58 /* These are the various supported subsystems under UNIX */ 58 /* These are the various supported subsystems under UNIX */
91 /* Introduced in SDL 1.0.2 */ 91 /* Introduced in SDL 1.0.2 */
92 Window fswindow; /* The X11 fullscreen window */ 92 Window fswindow; /* The X11 fullscreen window */
93 Window wmwindow; /* The X11 managed input window */ 93 Window wmwindow; /* The X11 managed input window */
94 } x11; 94 } x11;
95 } info; 95 } info;
96 } SDL_SysWMinfo;
97
98 #elif defined(ENABLE_NANOX)
99 #include <microwin/nano-X.h>
100
101 /* The generic custom event structure */
102 struct SDL_SysWMmsg {
103 SDL_version version;
104 int data;
105 };
106
107 /* The windows custom window manager information structure */
108 typedef struct {
109 SDL_version version ;
110 GR_WINDOW_ID window ; /* The display window */
96 } SDL_SysWMinfo; 111 } SDL_SysWMinfo;
97 112
98 #elif defined(WIN32) 113 #elif defined(WIN32)
99 #include <windows.h> 114 #include <windows.h>
100 115