comparison include/SDL_video.h @ 1724:6c63fc2bd986 SDL-1.3

Proof of concept done - Win32 GDI implementation mostly complete.
author Sam Lantinga <slouken@libsdl.org>
date Thu, 06 Jul 2006 07:17:11 +0000
parents 5daa04d862f1
children 98a3207ddde8
comparison
equal deleted inserted replaced
1723:4bdbb9b2bd0a 1724:6c63fc2bd986
146 typedef enum 146 typedef enum
147 { 147 {
148 SDL_WINDOWEVENT_NONE, /**< Never used */ 148 SDL_WINDOWEVENT_NONE, /**< Never used */
149 SDL_WINDOWEVENT_SHOWN, /**< Window has been shown */ 149 SDL_WINDOWEVENT_SHOWN, /**< Window has been shown */
150 SDL_WINDOWEVENT_HIDDEN, /**< Window has been hidden */ 150 SDL_WINDOWEVENT_HIDDEN, /**< Window has been hidden */
151 SDL_WINDOWEVENT_EXPOSED, /**< Window has been exposed and should be redrawn */
151 SDL_WINDOWEVENT_MOVED, /**< Window has been moved to data1,data2 */ 152 SDL_WINDOWEVENT_MOVED, /**< Window has been moved to data1,data2 */
152 SDL_WINDOWEVENT_RESIZED, /**< Window size changed to data1xdata2 */ 153 SDL_WINDOWEVENT_RESIZED, /**< Window size changed to data1xdata2 */
153 SDL_WINDOWEVENT_MINIMIZED, /**< Window has been minimized */ 154 SDL_WINDOWEVENT_MINIMIZED, /**< Window has been minimized */
154 SDL_WINDOWEVENT_MAXIMIZED, /**< Window has been maximized */ 155 SDL_WINDOWEVENT_MAXIMIZED, /**< Window has been maximized */
155 SDL_WINDOWEVENT_RESTORED, /**< Window has been restored to normal size and position */ 156 SDL_WINDOWEVENT_RESTORED, /**< Window has been restored to normal size and position */
156 SDL_WINDOWEVENT_ENTER, /**< The window has gained mouse focus */ 157 SDL_WINDOWEVENT_ENTER, /**< The window has gained mouse focus */
157 SDL_WINDOWEVENT_LEAVE, /**< The window has lost mouse focus */ 158 SDL_WINDOWEVENT_LEAVE, /**< The window has lost mouse focus */
158 SDL_WINDOWEVENT_FOCUS_GAINED, /**< The window has gained keyboard focus */ 159 SDL_WINDOWEVENT_FOCUS_GAINED, /**< The window has gained keyboard focus */
159 SDL_WINDOWEVENT_FOCUS_LOST, /**< The window has lost keyboard focus */ 160 SDL_WINDOWEVENT_FOCUS_LOST, /**< The window has lost keyboard focus */
161 SDL_WINDOWEVENT_CLOSE, /**< The window manager requests that the window be closed */
160 } SDL_WindowEventID; 162 } SDL_WindowEventID;
161 163
162 /** 164 /**
163 * \enum SDL_RendererFlags 165 * \enum SDL_RendererFlags
164 * 166 *
1417 /* 1419 /*
1418 * Swap the OpenGL buffers, if double-buffering is supported. 1420 * Swap the OpenGL buffers, if double-buffering is supported.
1419 */ 1421 */
1420 extern DECLSPEC void SDLCALL SDL_GL_SwapBuffers(void); 1422 extern DECLSPEC void SDLCALL SDL_GL_SwapBuffers(void);
1421 1423
1424 /*
1425 * Calculate the intersection of two rectangles
1426 */
1427 extern DECLSPEC SDL_bool SDLCALL SDL_IntersectRect(const SDL_Rect * A,
1428 const SDL_Rect * B,
1429 SDL_Rect * intersection);
1430
1422 /* Ends C function definitions when using C++ */ 1431 /* Ends C function definitions when using C++ */
1423 #ifdef __cplusplus 1432 #ifdef __cplusplus
1424 /* *INDENT-OFF* */ 1433 /* *INDENT-OFF* */
1425 } 1434 }
1426 /* *INDENT-ON* */ 1435 /* *INDENT-ON* */