include/SDL_syswm.h
changeset 5065 7e4c7790700e
parent 5063 5680976fb37a
child 5199 164f20ba08eb
equal deleted inserted replaced
5064:eae20af0b983 5065:7e4c7790700e
   123             HWND hwnd;                  /**< The window for the message */
   123             HWND hwnd;                  /**< The window for the message */
   124             UINT msg;                   /**< The type of message */
   124             UINT msg;                   /**< The type of message */
   125             WPARAM wParam;              /**< WORD message parameter */
   125             WPARAM wParam;              /**< WORD message parameter */
   126             LPARAM lParam;              /**< LONG message parameter */
   126             LPARAM lParam;              /**< LONG message parameter */
   127         } win;
   127         } win;
   128 #elif defined(SDL_VIDEO_DRIVER_X11)
   128 #endif
       
   129 #if defined(SDL_VIDEO_DRIVER_X11)
   129         struct {
   130         struct {
   130             XEvent event;
   131             XEvent event;
   131         } x11;
   132         } x11;
   132 #elif defined(SDL_VIDEO_DRIVER_DIRECTFB)
   133 #endif
       
   134 #if defined(SDL_VIDEO_DRIVER_DIRECTFB)
   133         struct {
   135         struct {
   134             DFBEvent event;
   136             DFBEvent event;
   135         } dfb;
   137         } dfb;
   136 #elif defined(SDL_VIDEO_DRIVER_COCOA)
   138 #endif
       
   139 #if defined(SDL_VIDEO_DRIVER_COCOA)
   137         struct
   140         struct
   138         {
   141         {
   139             /* No Cocoa window events yet */
   142             /* No Cocoa window events yet */
   140         } cocoa;
   143         } cocoa;
   141 #elif defined(SDL_VIDEO_DRIVER_UIKIT)
   144 #endif
       
   145 #if defined(SDL_VIDEO_DRIVER_UIKIT)
   142         struct
   146         struct
   143         {
   147         {
   144             /* No UIKit window events yet */
   148             /* No UIKit window events yet */
   145         } uikit;
   149         } uikit;
   146 else
   150 #endif
   147         /* Can't have an empty union */
   151         /* Can't have an empty union */
   148         int dummy;
   152         int dummy;
   149 #endif
       
   150     } msg;
   153     } msg;
   151 };
   154 };
   152 
   155 
   153 /**
   156 /**
   154  *  The custom window manager information structure.
   157  *  The custom window manager information structure.
   165 #if defined(SDL_VIDEO_DRIVER_WINDOWS)
   168 #if defined(SDL_VIDEO_DRIVER_WINDOWS)
   166         struct
   169         struct
   167         {
   170         {
   168             HWND window;                /**< The window handle */
   171             HWND window;                /**< The window handle */
   169         } win;
   172         } win;
   170 #elif defined(SDL_VIDEO_DRIVER_X11)
   173 #endif
       
   174 #if defined(SDL_VIDEO_DRIVER_X11)
   171         struct
   175         struct
   172         {
   176         {
   173             Display *display;           /**< The X11 display */
   177             Display *display;           /**< The X11 display */
   174             Window window;              /**< The X11 window */
   178             Window window;              /**< The X11 window */
   175         } x11;
   179         } x11;
   176 #elif defined(SDL_VIDEO_DRIVER_DIRECTFB)
   180 #endif
       
   181 #if defined(SDL_VIDEO_DRIVER_DIRECTFB)
   177         struct
   182         struct
   178         {
   183         {
   179             IDirectFB *dfb;             /**< The directfb main interface */
   184             IDirectFB *dfb;             /**< The directfb main interface */
   180             IDirectFBWindow *window;    /**< The directfb window handle */
   185             IDirectFBWindow *window;    /**< The directfb window handle */
   181             IDirectFBSurface *surface;  /**< The directfb client surface */
   186             IDirectFBSurface *surface;  /**< The directfb client surface */
   182         } dfb;
   187         } dfb;
   183 #elif defined(SDL_VIDEO_DRIVER_COCOA)
   188 #endif
       
   189 #if defined(SDL_VIDEO_DRIVER_COCOA)
   184         struct
   190         struct
   185         {
   191         {
   186             NSWindow *window;           /* The Cocoa window */
   192             NSWindow *window;           /* The Cocoa window */
   187         } cocoa;
   193         } cocoa;
   188 #elif defined(SDL_VIDEO_DRIVER_UIKIT)
   194 #endif
       
   195 #if defined(SDL_VIDEO_DRIVER_UIKIT)
   189         struct
   196         struct
   190         {
   197         {
   191             UIWindow *window;           /* The UIKit window */
   198             UIWindow *window;           /* The UIKit window */
   192         } uikit;
   199         } uikit;
   193 #else
   200 #endif
   194         /* Can't have an empty union */
   201         /* Can't have an empty union */
   195         int dummy;
   202         int dummy;
   196 #endif
       
   197     } info;
   203     } info;
   198 };
   204 };
   199 
   205 
   200 #endif /* SDL_PROTOTYPES_ONLY */
   206 #endif /* SDL_PROTOTYPES_ONLY */
   201 
   207