comparison include/SDL_syswm.h @ 999:8be85fa59cf3

Added a usage example for SDL_GetWMInfo()
author Sam Lantinga <slouken@libsdl.org>
date Tue, 30 Nov 2004 15:21:29 +0000
parents 04a403e4ccf5
children 0f3aa6ab3341
comparison
equal deleted inserted replaced
998:0e6627072f7a 999:8be85fa59cf3
186 /* 186 /*
187 * This function gives you custom hooks into the window manager information. 187 * This function gives you custom hooks into the window manager information.
188 * It fills the structure pointed to by 'info' with custom information and 188 * It fills the structure pointed to by 'info' with custom information and
189 * returns 1 if the function is implemented. If it's not implemented, or 189 * returns 1 if the function is implemented. If it's not implemented, or
190 * the version member of the 'info' structure is invalid, it returns 0. 190 * the version member of the 'info' structure is invalid, it returns 0.
191 *
192 * You typically use this function like this:
193 * SDL_SysWMInfo info;
194 * SDL_VERSION(&info.version);
195 * if ( SDL_GetWMInfo(&info) ) { ... }
191 */ 196 */
192 extern DECLSPEC int SDLCALL SDL_GetWMInfo(SDL_SysWMinfo *info); 197 extern DECLSPEC int SDLCALL SDL_GetWMInfo(SDL_SysWMinfo *info);
193 198
194 199
195 /* Ends C function definitions when using C++ */ 200 /* Ends C function definitions when using C++ */