Get driver-specific information about a window.
Defined in SDL_syswm.h
SDL_bool SDL_GetWindowWMInfo(SDL_Window * window, SDL_SysWMinfo * info);
SDL_Window * | window | the window about which information is being requested. |
SDL_SysWMinfo * | info | an SDL_SysWMinfo structure filled in with window information. |
(SDL_bool) Returns SDL_TRUE if the function is implemented and the version
member of the info
struct is valid, or SDL_FALSE if the information could not be retrieved; call SDL_GetError() for more information.
You must include SDL_syswm.h for the declaration of SDL_SysWMinfo.
The caller must initialize the info
structure's version by using SDL_VERSION(&info.version)
, and then this function will fill in the rest of the structure with information about the given window.
This function is available since SDL 2.0.0.