Mercurial > sdl-ios-xcode
comparison include/SDL_shape.h @ 4769:83f9b95da263
Added the standard headers and footers that make SDL_shape.h and SDL_shape.c integrate properly into the build.
author | Eli Gottlieb <eligottlieb@gmail.com> |
---|---|
date | Thu, 27 May 2010 16:44:35 -0400 |
parents | 4435e014eacc |
children | 90576a84d30d |
comparison
equal
deleted
inserted
replaced
4768:4435e014eacc | 4769:83f9b95da263 |
---|---|
18 | 18 |
19 Eli Gottlieb | 19 Eli Gottlieb |
20 eligottlieb@gmail.com | 20 eligottlieb@gmail.com |
21 */ | 21 */ |
22 | 22 |
23 struct SDL_Shaped_Window; | 23 #ifndef _SDL_shape_h |
24 typedef struct SDL_Shaped_Window SDL_Shaped_Window; | 24 #define _SDL_shape_h |
25 | |
26 #include "SDL_stdinc.h" | |
27 #include "SDL_pixels.h" | |
28 #include "SDL_rect.h" | |
29 #include "SDL_surface.h" | |
30 #include "SDL_video.h" | |
31 | |
32 #include "begin_code.h" | |
33 /* Set up for C function definitions, even when using C++ */ | |
34 #ifdef __cplusplus | |
35 /* *INDENT-OFF* */ | |
36 extern "C" { | |
37 /* *INDENT-ON* */ | |
38 #endif | |
25 | 39 |
26 /** | 40 /** |
27 * \brief Create a shaped window with the specified position, dimensions, and flags. | 41 * \brief Create a shaped window with the specified position, dimensions, and flags. |
28 * | 42 * |
29 * \param title The title of the window, in UTF-8 encoding. | 43 * \param title The title of the window, in UTF-8 encoding. |
43 * | 57 * |
44 * \sa SDL_DestroyWindow() | 58 * \sa SDL_DestroyWindow() |
45 */ | 59 */ |
46 extern DECLSPEC SDL_Window * SDLCALL SDL_CreateShapedWindow(const char *title,unsigned int x,unsigned int y,unsigned int w,unsigned int h,Uint32 flags); | 60 extern DECLSPEC SDL_Window * SDLCALL SDL_CreateShapedWindow(const char *title,unsigned int x,unsigned int y,unsigned int w,unsigned int h,Uint32 flags); |
47 | 61 |
48 extern DECLSPE SDL_bool SDLCALL SDL_WindowIsShaped(const SDL_Window *window); | 62 extern DECLSPEC SDL_bool SDLCALL SDL_WindowIsShaped(const SDL_Window *window); |
49 extern DECLSPEC int SDLCALL SDL_SelectShapeRenderer(const SDL_Window *window); | 63 extern DECLSPEC int SDLCALL SDL_SelectShapeRenderer(const SDL_Window *window); |
50 | 64 |
51 extern DECLSPEC void SDLCALL SDL_DestroyShapedWindow(const SDL_Shaped_Window *window); | 65 /* Ends C function definitions when using C++ */ |
66 #ifdef __cplusplus | |
67 /* *INDENT-OFF* */ | |
68 } | |
69 /* *INDENT-ON* */ | |
70 #endif | |
71 #include "close_code.h" | |
72 | |
73 #endif /* _SDL_shape_h */ |