include/SDL_syswm.h
changeset 8062 4fc5f66d63cc
parent 7455 0a988affc7e7
child 8134 7c9192be51a7
equal deleted inserted replaced
8061:a5f8137ccf01 8062:4fc5f66d63cc
    99 typedef enum
    99 typedef enum
   100 {
   100 {
   101     SDL_SYSWM_UNKNOWN,
   101     SDL_SYSWM_UNKNOWN,
   102     SDL_SYSWM_WINDOWS,
   102     SDL_SYSWM_WINDOWS,
   103     SDL_SYSWM_X11,
   103     SDL_SYSWM_X11,
       
   104     SDL_SYSWM_WAYLAND,
   104     SDL_SYSWM_DIRECTFB,
   105     SDL_SYSWM_DIRECTFB,
   105     SDL_SYSWM_COCOA,
   106     SDL_SYSWM_COCOA,
   106     SDL_SYSWM_UIKIT,
   107     SDL_SYSWM_UIKIT,
   107 } SDL_SYSWM_TYPE;
   108 } SDL_SYSWM_TYPE;
   108 
   109 
   173         {
   174         {
   174             Display *display;           /**< The X11 display */
   175             Display *display;           /**< The X11 display */
   175             Window window;              /**< The X11 window */
   176             Window window;              /**< The X11 window */
   176         } x11;
   177         } x11;
   177 #endif
   178 #endif
       
   179 #if defined(SDL_VIDEO_DRIVER_WAYLAND)
       
   180         struct
       
   181         {
       
   182             struct wl_display *display;            /**< Wayland display */
       
   183             struct wl_surface *surface;            /**< Wayland surface */
       
   184             struct wl_shell_surface *shell_surface; /**< Wayland shell_surface (window manager handle) */
       
   185         } wl;
       
   186 #endif
   178 #if defined(SDL_VIDEO_DRIVER_DIRECTFB)
   187 #if defined(SDL_VIDEO_DRIVER_DIRECTFB)
   179         struct
   188         struct
   180         {
   189         {
   181             IDirectFB *dfb;             /**< The directfb main interface */
   190             IDirectFB *dfb;             /**< The directfb main interface */
   182             IDirectFBWindow *window;    /**< The directfb window handle */
   191             IDirectFBWindow *window;    /**< The directfb window handle */