include/SDL_video.h
changeset 6422 fd0ac1b56115
parent 6394 9612bcd79130
child 6429 ff5e34883bf8
     1.1 --- a/include/SDL_video.h	Thu Sep 13 01:29:18 2012 -0400
     1.2 +++ b/include/SDL_video.h	Thu Sep 13 01:43:53 2012 -0400
     1.3 @@ -84,6 +84,7 @@
     1.4   *  \sa SDL_SetWindowIcon()
     1.5   *  \sa SDL_SetWindowPosition()
     1.6   *  \sa SDL_SetWindowSize()
     1.7 + *  \sa SDL_SetWindowBorder()
     1.8   *  \sa SDL_SetWindowTitle()
     1.9   *  \sa SDL_ShowWindow()
    1.10   */
    1.11 @@ -518,6 +519,23 @@
    1.12                                                 int *h);
    1.13  
    1.14  /**
    1.15 + *  \brief Set the border state of a window.
    1.16 + *
    1.17 + *  This will add or remove the window's SDL_WINDOW_BORDERLESS flag and
    1.18 + *  add or remove the border from the actual window. This is a no-op if the
    1.19 + *  window's border already matches the requested state.
    1.20 + *
    1.21 + *  \param window The window of which to change the border state.
    1.22 + *  \param bordered SDL_FALSE to remove border, SDL_TRUE to add border.
    1.23 + *
    1.24 + *  \note You can't change the border state of a fullscreen window.
    1.25 + *  
    1.26 + *  \sa SDL_GetWindowFlags()
    1.27 + */
    1.28 +extern DECLSPEC void SDLCALL SDL_SetWindowBordered(SDL_Window * window,
    1.29 +                                                   SDL_bool bordered);
    1.30 +
    1.31 +/**
    1.32   *  \brief Show a window.
    1.33   *  
    1.34   *  \sa SDL_HideWindow()