include/SDL_video.h
changeset 9447 728a4bf8e02f
parent 9412 8b1436ce1028
child 9619 b94b6d0bff0f
     1.1 --- a/include/SDL_video.h	Fri Mar 27 18:09:51 2015 -0400
     1.2 +++ b/include/SDL_video.h	Sat Mar 28 00:48:03 2015 -0400
     1.3 @@ -722,6 +722,9 @@
     1.4   *  \param window The window for which the input grab mode should be set.
     1.5   *  \param grabbed This is SDL_TRUE to grab input, and SDL_FALSE to release input.
     1.6   *
     1.7 + *  If the caller enables a grab while another window is currently grabbed,
     1.8 + *  the other window loses its grab in favor of the caller's window.
     1.9 + *
    1.10   *  \sa SDL_GetWindowGrab()
    1.11   */
    1.12  extern DECLSPEC void SDLCALL SDL_SetWindowGrab(SDL_Window * window,
    1.13 @@ -737,6 +740,15 @@
    1.14  extern DECLSPEC SDL_bool SDLCALL SDL_GetWindowGrab(SDL_Window * window);
    1.15  
    1.16  /**
    1.17 + *  \brief Get the window that currently has an input grab enabled.
    1.18 + *
    1.19 + *  \return This returns the window if input is grabbed, and NULL otherwise.
    1.20 + *
    1.21 + *  \sa SDL_SetWindowGrab()
    1.22 + */
    1.23 +extern DECLSPEC SDL_Window * SDLCALL SDL_GetGrabbedWindow(void);
    1.24 +
    1.25 +/**
    1.26   *  \brief Set the brightness (gamma correction) for a window.
    1.27   *
    1.28   *  \return 0 on success, or -1 if setting the brightness isn't supported.