include/SDL_video.h
changeset 10026 5f73f513b9f5
parent 10025 bf4f8cde1c54
child 10027 f7ab0613164a
     1.1 --- a/include/SDL_video.h	Tue Jan 05 02:46:10 2016 -0500
     1.2 +++ b/include/SDL_video.h	Tue Jan 05 02:28:56 2016 -0500
     1.3 @@ -874,6 +874,20 @@
     1.4  extern DECLSPEC int SDLCALL SDL_GetWindowOpacity(SDL_Window * window, float * out_opacity);
     1.5  
     1.6  /**
     1.7 + *  \brief Explicitly sets input focus to the window.
     1.8 + *
     1.9 + *  You almost certainly want SDL_RaiseWindow() instead of this function. Use
    1.10 + *  this with caution, as you might give focus to a window that's completely
    1.11 + *  obscured by other windows.
    1.12 + *
    1.13 + *  \param window The window that should get the input focus
    1.14 + * 
    1.15 + *  \return 0 on success, or -1 otherwise.
    1.16 + *  \sa SDL_RaiseWindow()
    1.17 + */
    1.18 +extern DECLSPEC int SDLCALL SDL_SetWindowInputFocus(SDL_Window * window);
    1.19 +
    1.20 +/**
    1.21   *  \brief Set the gamma ramp for a window.
    1.22   *
    1.23   *  \param window The window for which the gamma ramp should be set.