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 | |
} 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 222 of file SDL_syswm.h.
int SDL_SysWMinfo::dev_index |
Device index (ex: the X in /dev/dri/cardX)
Definition at line 334 of file SDL_syswm.h.
Display* SDL_SysWMinfo::display |
The X11 display
Definition at line 245 of file SDL_syswm.h.
struct wl_display* SDL_SysWMinfo::display |
Wayland display
Definition at line 291 of file SDL_syswm.h.
int SDL_SysWMinfo::drm_fd |
DRM FD (unavailable on Vulkan windows)
Definition at line 335 of file SDL_syswm.h.
Uint8 SDL_SysWMinfo::dummy[64] |
Definition at line 342 of file SDL_syswm.h.
struct wl_egl_window* SDL_SysWMinfo::egl_window |
Wayland EGL window (native window)
Definition at line 294 of file SDL_syswm.h.
struct gbm_device* SDL_SysWMinfo::gbm_dev |
GBM device (unavailable on Vulkan windows)
Definition at line 336 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 293 of file SDL_syswm.h.
SDL_SYSWM_TYPE SDL_SysWMinfo::subsystem |
Definition at line 225 of file SDL_syswm.h.
struct wl_surface* SDL_SysWMinfo::surface |
Wayland surface
Definition at line 292 of file SDL_syswm.h.
SDL_version SDL_SysWMinfo::version |
Definition at line 224 of file SDL_syswm.h.
Window SDL_SysWMinfo::window |
The X11 window
Definition at line 246 of file SDL_syswm.h.
struct { ... } SDL_SysWMinfo::wl |
struct { ... } SDL_SysWMinfo::x11 |
struct xdg_surface* SDL_SysWMinfo::xdg_surface |
Wayland xdg surface (window manager handle)
Definition at line 295 of file SDL_syswm.h.
struct xdg_toplevel* SDL_SysWMinfo::xdg_toplevel |
Wayland xdg toplevel role
Definition at line 296 of file SDL_syswm.h.