include/SDL_video.h
branchSDL-1.3
changeset 1724 6c63fc2bd986
parent 1722 5daa04d862f1
child 1725 98a3207ddde8
     1.1 --- a/include/SDL_video.h	Thu Jul 06 05:53:32 2006 +0000
     1.2 +++ b/include/SDL_video.h	Thu Jul 06 07:17:11 2006 +0000
     1.3 @@ -148,6 +148,7 @@
     1.4      SDL_WINDOWEVENT_NONE,               /**< Never used */
     1.5      SDL_WINDOWEVENT_SHOWN,              /**< Window has been shown */
     1.6      SDL_WINDOWEVENT_HIDDEN,             /**< Window has been hidden */
     1.7 +    SDL_WINDOWEVENT_EXPOSED,            /**< Window has been exposed and should be redrawn */
     1.8      SDL_WINDOWEVENT_MOVED,              /**< Window has been moved to data1,data2 */
     1.9      SDL_WINDOWEVENT_RESIZED,            /**< Window size changed to data1xdata2 */
    1.10      SDL_WINDOWEVENT_MINIMIZED,          /**< Window has been minimized */
    1.11 @@ -157,6 +158,7 @@
    1.12      SDL_WINDOWEVENT_LEAVE,              /**< The window has lost mouse focus */
    1.13      SDL_WINDOWEVENT_FOCUS_GAINED,       /**< The window has gained keyboard focus */
    1.14      SDL_WINDOWEVENT_FOCUS_LOST,         /**< The window has lost keyboard focus */
    1.15 +    SDL_WINDOWEVENT_CLOSE,                              /**< The window manager requests that the window be closed */
    1.16  } SDL_WindowEventID;
    1.17  
    1.18  /**
    1.19 @@ -1419,6 +1421,13 @@
    1.20   */
    1.21  extern DECLSPEC void SDLCALL SDL_GL_SwapBuffers(void);
    1.22  
    1.23 +/*
    1.24 + * Calculate the intersection of two rectangles
    1.25 + */
    1.26 +extern DECLSPEC SDL_bool SDLCALL SDL_IntersectRect(const SDL_Rect * A,
    1.27 +                                                   const SDL_Rect * B,
    1.28 +                                                   SDL_Rect * intersection);
    1.29 +
    1.30  /* Ends C function definitions when using C++ */
    1.31  #ifdef __cplusplus
    1.32  /* *INDENT-OFF* */