equal
deleted
inserted
replaced
1 /* |
1 /* |
2 SDL - Simple DirectMedia Layer |
2 SDL - Simple DirectMedia Layer |
3 Copyright (C) 1997-2009 Sam Lantinga |
3 Copyright (C) 1997-2012 Sam Lantinga |
4 |
4 |
5 This library is free software; you can redistribute it and/or |
5 This library is free software; you can redistribute it and/or |
6 modify it under the terms of the GNU Lesser General Public |
6 modify it under the terms of the GNU Lesser General Public |
7 License as published by the Free Software Foundation; either |
7 License as published by the Free Software Foundation; either |
8 version 2.1 of the License, or (at your option) any later version. |
8 version 2.1 of the License, or (at your option) any later version. |
201 |
201 |
202 /* Function prototypes */ |
202 /* Function prototypes */ |
203 /** |
203 /** |
204 * This function gives you custom hooks into the window manager information. |
204 * This function gives you custom hooks into the window manager information. |
205 * It fills the structure pointed to by 'info' with custom information and |
205 * It fills the structure pointed to by 'info' with custom information and |
206 * returns 1 if the function is implemented. If it's not implemented, or |
206 * returns 0 if the function is not implemented, 1 if the function is |
207 * the version member of the 'info' structure is invalid, it returns 0. |
207 * implemented and no error occurred, and -1 if the version member of |
|
208 * the 'info' structure is not filled in or not supported. |
208 * |
209 * |
209 * You typically use this function like this: |
210 * You typically use this function like this: |
210 * @code |
211 * @code |
211 * SDL_SysWMInfo info; |
212 * SDL_SysWMinfo info; |
212 * SDL_VERSION(&info.version); |
213 * SDL_VERSION(&info.version); |
213 * if ( SDL_GetWMInfo(&info) ) { ... } |
214 * if ( SDL_GetWMInfo(&info) ) { ... } |
214 * @endcode |
215 * @endcode |
215 */ |
216 */ |
216 extern DECLSPEC int SDLCALL SDL_GetWMInfo(SDL_SysWMinfo *info); |
217 extern DECLSPEC int SDLCALL SDL_GetWMInfo(SDL_SysWMinfo *info); |