SDL_SysWMinfo

Name

SDL_SysWMinfo -- System-specific window-manager info

Structure Definition

The definition depends on the system.

Generic

typedef struct {
  SDL_version version;
  int data;
} SDL_SysWMinfo;

X11

typedef enum {
  SDL_SYSWM_X11
} SDL_SYSWM_TYPE;

typedef struct {
  SDL_version version;
  SDL_SYSWM_TYPE subsystem;
  union {
    struct {
      Display *display;       /* The X11 display */
      Window window;          /* The X11 display window */
      /* These locking functions should be called around
         any X11 functions using the display variable.
         They lock the event thread, so should not be
         called around event functions or from event filters.
      */
      void (*lock_func)(void);
      void (*unlock_func)(void);

      /* Introduced in SDL 1.0.2 */
      Window fswindow;        /* The X11 fullscreen window */
      Window wmwindow;        /* The X11 managed input window */

      /* Introduced in SDL 1.2.12 */
      Display *gfxdisplay;      /* The X11 display to which rendering is done */
    } x11;
  } info;
} SDL_SysWMinfo;

Windows

typedef struct {
  SDL_version version;
  HWND window;                    /* The Win32 display window */
  HGLRC hglrc;                    /* The OpenGL context, if any */
} SDL_SysWMinfo;

RISCOS

typedef struct {
  SDL_version version;
  int wimpVersion;    /* Wimp version running under */
  int taskHandle;     /* The RISCOS task handle */
  int window;         /* The RISCOS display window */
} SDL_SysWMinfo;

Description

This structure is filled in by SDL_GetWMInfo.

See Also

SDL_GetWMInfo

SDL_SysWMInfo (last edited 2008-04-17 08:18:23 by localhost)