SDL_GetWMInfo

Name

SDL_GetWMInfo -- Gets window-manager specific information, if available

Synopsis

#include "SDL_syswm.h"

int SDL_GetWMInfo(SDL_SysWMinfo *info);

Description

This function fills in the structure pointed to by info with window-manager specific information. The info.version field has to be set to the used SDL version. Perhaps Windows specific: Return value on failure is -1.

Return Value

1 if the function is implemented and no error occured, 0 if function is unimplemented, -1 if implemented but a failure occurred. (Non-zero if function implemented, zero if not.)

Usage

// ... some code here ...
SDL_VERSION(&info.version); // this is important!
if (SDL_GetWMInfo(&info))
   // ... structure manipulating code ...
// ... some code here ...

See Also

SDL_SysWMInfo

SDL_GetWMInfo (last edited 2008-06-27 23:13:00 by d206-116-183-120)