include/SDL_video.h
changeset 9447 728a4bf8e02f
parent 9412 8b1436ce1028
child 9619 b94b6d0bff0f
equal deleted inserted replaced
9445:17095a4130ce 9447:728a4bf8e02f
   720  *  \brief Set a window's input grab mode.
   720  *  \brief Set a window's input grab mode.
   721  *
   721  *
   722  *  \param window The window for which the input grab mode should be set.
   722  *  \param window The window for which the input grab mode should be set.
   723  *  \param grabbed This is SDL_TRUE to grab input, and SDL_FALSE to release input.
   723  *  \param grabbed This is SDL_TRUE to grab input, and SDL_FALSE to release input.
   724  *
   724  *
       
   725  *  If the caller enables a grab while another window is currently grabbed,
       
   726  *  the other window loses its grab in favor of the caller's window.
       
   727  *
   725  *  \sa SDL_GetWindowGrab()
   728  *  \sa SDL_GetWindowGrab()
   726  */
   729  */
   727 extern DECLSPEC void SDLCALL SDL_SetWindowGrab(SDL_Window * window,
   730 extern DECLSPEC void SDLCALL SDL_SetWindowGrab(SDL_Window * window,
   728                                                SDL_bool grabbed);
   731                                                SDL_bool grabbed);
   729 
   732 
   733  *  \return This returns SDL_TRUE if input is grabbed, and SDL_FALSE otherwise.
   736  *  \return This returns SDL_TRUE if input is grabbed, and SDL_FALSE otherwise.
   734  *
   737  *
   735  *  \sa SDL_SetWindowGrab()
   738  *  \sa SDL_SetWindowGrab()
   736  */
   739  */
   737 extern DECLSPEC SDL_bool SDLCALL SDL_GetWindowGrab(SDL_Window * window);
   740 extern DECLSPEC SDL_bool SDLCALL SDL_GetWindowGrab(SDL_Window * window);
       
   741 
       
   742 /**
       
   743  *  \brief Get the window that currently has an input grab enabled.
       
   744  *
       
   745  *  \return This returns the window if input is grabbed, and NULL otherwise.
       
   746  *
       
   747  *  \sa SDL_SetWindowGrab()
       
   748  */
       
   749 extern DECLSPEC SDL_Window * SDLCALL SDL_GetGrabbedWindow(void);
   738 
   750 
   739 /**
   751 /**
   740  *  \brief Set the brightness (gamma correction) for a window.
   752  *  \brief Set the brightness (gamma correction) for a window.
   741  *
   753  *
   742  *  \return 0 on success, or -1 if setting the brightness isn't supported.
   754  *  \return 0 on success, or -1 if setting the brightness isn't supported.