Wiki Page Content

Differences between revisions 3 and 5 (spanning 2 versions)
Revision 3 as of 2010-07-26 01:35:55
Size: 2925
Editor: SheenaSmith
Comment: update content
Revision 5 as of 2010-07-26 01:44:39
Size: 2923
Editor: SheenaSmith
Comment: minor change
Deletions are marked like this. Additions are marked like this.
Line 16: Line 16:
||SDL_SYSWM_TYPE||'''subsystem'''||^the window manager type; see [[#Remarks|Remarks]] for details|| ||SDL_SYSWM_TYPE||'''subsystem'''||^the window manager type^; see [[#Remarks|Remarks]] for details||
Line 18: Line 18:
||struct ???||'''info.x11'''||^the struct containing video info^ ???|| ||struct ???||'''info.x11'''||^the native x11 info structure^ ???||

DRAFT

SDL_SysWMinfo

A structure that contains system-dependent window manager information.

Data Fields

For Win32 window management systems (Windows)

SDL_version

version

a version field you fill in before you call a function

HWND

window

the Win32 display window

For X11 window management systems (Unix)

SDL_version

version

a version field you fill in before you call a function

SDL_SYSWM_TYPE

subsystem

the window manager type; see Remarks for details

union ???

info

a union containing window manager information ???

struct ???

info.x11

the native x11 info structure ???

Display

info.x11.*display

the X11 display

Window

info.x11.window

the X11 display window

Code Examples

For Win32 window management systems (Windows):
*

typedef struct {
  SDL_version version;
  HWND window;                    /* The Win32 display window */
} SDL_SysWMinfo;

green


*

For X11 window management systems (Unix):
*
green


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;


*

Remarks

SDL_SYSWM_TYPE currently has only 1 value: SDL_SYSWM_X11

When this structure is returned, it holds information about which low level system it is using, and will be one of SDL_SYSWM_TYPE.

*This structure is filled in by SDL_GetWMInfo.* green


CategoryStruct

None: SDL_SysWMinfo (last edited 2016-12-01 08:58:06 by realitix)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit