SDL  2.0
SDL_SysWMinfo Struct Reference

#include <SDL_syswm.h>

+ Collaboration diagram for SDL_SysWMinfo:

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
 

Detailed Description

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.

Field Documentation

◆ dev_index

int SDL_SysWMinfo::dev_index

Device index (ex: the X in /dev/dri/cardX)

Definition at line 334 of file SDL_syswm.h.

◆ display [1/2]

Display* SDL_SysWMinfo::display

The X11 display

Definition at line 245 of file SDL_syswm.h.

◆ display [2/2]

struct wl_display* SDL_SysWMinfo::display

Wayland display

Definition at line 291 of file SDL_syswm.h.

◆ drm_fd

int SDL_SysWMinfo::drm_fd

DRM FD (unavailable on Vulkan windows)

Definition at line 335 of file SDL_syswm.h.

◆ dummy

Uint8 SDL_SysWMinfo::dummy[64]

Definition at line 342 of file SDL_syswm.h.

◆ egl_window

struct wl_egl_window* SDL_SysWMinfo::egl_window

Wayland EGL window (native window)

Definition at line 294 of file SDL_syswm.h.

◆ gbm_dev

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

◆ shell_surface

void* SDL_SysWMinfo::shell_surface

DEPRECATED Wayland shell_surface (window manager handle)

Definition at line 293 of file SDL_syswm.h.

◆ subsystem

SDL_SYSWM_TYPE SDL_SysWMinfo::subsystem

Definition at line 225 of file SDL_syswm.h.

◆ surface

struct wl_surface* SDL_SysWMinfo::surface

Wayland surface

Definition at line 292 of file SDL_syswm.h.

◆ version

SDL_version SDL_SysWMinfo::version

Definition at line 224 of file SDL_syswm.h.

◆ window

Window SDL_SysWMinfo::window

The X11 window

Definition at line 246 of file SDL_syswm.h.

◆ 

struct { ... } SDL_SysWMinfo::wl

◆ 

struct { ... } SDL_SysWMinfo::x11

◆ xdg_surface

struct xdg_surface* SDL_SysWMinfo::xdg_surface

Wayland xdg surface (window manager handle)

Definition at line 295 of file SDL_syswm.h.

◆ xdg_toplevel

struct xdg_toplevel* SDL_SysWMinfo::xdg_toplevel

Wayland xdg toplevel role

Definition at line 296 of file SDL_syswm.h.


The documentation for this struct was generated from the following file: