SDL
2.0
|
#include <SDL_syswm.h>
Data Fields | |
SDL_version | version |
SDL_SYSWM_TYPE | subsystem |
union { | |
struct { | |
Display * display | |
Window window | |
} x11 | |
struct { | |
struct wl_display * display | |
struct wl_surface * surface | |
void * shell_surface | |
struct wl_egl_window * egl_window | |
struct xdg_surface * xdg_surface | |
struct xdg_toplevel * xdg_toplevel | |
struct xdg_popup * xdg_popup | |
struct xdg_positioner * xdg_positioner | |
} wl | |
struct { | |
int dev_index | |
int drm_fd | |
struct gbm_device * gbm_dev | |
} kmsdrm | |
Uint8 dummy [64] | |
} | info |
The custom window manager information structure.
When this structure is returned, it holds information about which low level system it is using, and will be one of SDL_SYSWM_TYPE.
Definition at line 226 of file SDL_syswm.h.
int SDL_SysWMinfo::dev_index |
Device index (ex: the X in /dev/dri/cardX)
Definition at line 340 of file SDL_syswm.h.
Display* SDL_SysWMinfo::display |
The X11 display
Definition at line 249 of file SDL_syswm.h.
struct wl_display* SDL_SysWMinfo::display |
Wayland display
Definition at line 295 of file SDL_syswm.h.
int SDL_SysWMinfo::drm_fd |
DRM FD (unavailable on Vulkan windows)
Definition at line 341 of file SDL_syswm.h.
Uint8 SDL_SysWMinfo::dummy[64] |
Definition at line 348 of file SDL_syswm.h.
struct wl_egl_window* SDL_SysWMinfo::egl_window |
Wayland EGL window (native window)
Definition at line 298 of file SDL_syswm.h.
struct gbm_device* SDL_SysWMinfo::gbm_dev |
GBM device (unavailable on Vulkan windows)
Definition at line 342 of file SDL_syswm.h.
union { ... } SDL_SysWMinfo::info |
struct { ... } SDL_SysWMinfo::kmsdrm |
void* SDL_SysWMinfo::shell_surface |
DEPRECATED Wayland shell_surface (window manager handle)
Definition at line 297 of file SDL_syswm.h.
SDL_SYSWM_TYPE SDL_SysWMinfo::subsystem |
Definition at line 229 of file SDL_syswm.h.
struct wl_surface* SDL_SysWMinfo::surface |
Wayland surface
Definition at line 296 of file SDL_syswm.h.
SDL_version SDL_SysWMinfo::version |
Definition at line 228 of file SDL_syswm.h.
Window SDL_SysWMinfo::window |
The X11 window
Definition at line 250 of file SDL_syswm.h.
struct { ... } SDL_SysWMinfo::wl |
struct { ... } SDL_SysWMinfo::x11 |
struct xdg_popup* SDL_SysWMinfo::xdg_popup |
Wayland xdg popup role
Definition at line 301 of file SDL_syswm.h.
struct xdg_positioner* SDL_SysWMinfo::xdg_positioner |
Wayland xdg positioner, for popup
Definition at line 302 of file SDL_syswm.h.
struct xdg_surface* SDL_SysWMinfo::xdg_surface |
Wayland xdg surface (window manager handle)
Definition at line 299 of file SDL_syswm.h.
struct xdg_toplevel* SDL_SysWMinfo::xdg_toplevel |
Wayland xdg toplevel role
Definition at line 300 of file SDL_syswm.h.