include/SDL_video.h
changeset 10385 ad12658bc7ae
parent 10221 1448f9484494
child 10430 dc59df175689
     1.1 --- a/include/SDL_video.h	Thu Sep 29 16:52:48 2016 -0700
     1.2 +++ b/include/SDL_video.h	Thu Sep 29 22:52:41 2016 -0400
     1.3 @@ -83,6 +83,7 @@
     1.4   *  \sa SDL_SetWindowPosition()
     1.5   *  \sa SDL_SetWindowSize()
     1.6   *  \sa SDL_SetWindowBordered()
     1.7 + *  \sa SDL_SetWindowResizable()
     1.8   *  \sa SDL_SetWindowTitle()
     1.9   *  \sa SDL_ShowWindow()
    1.10   */
    1.11 @@ -707,6 +708,23 @@
    1.12                                                     SDL_bool bordered);
    1.13  
    1.14  /**
    1.15 + *  \brief Set the user-resizable state of a window.
    1.16 + *
    1.17 + *  This will add or remove the window's SDL_WINDOW_RESIZABLE flag and
    1.18 + *  allow/disallow user resizing of the window. This is a no-op if the
    1.19 + *  window's resizable state already matches the requested state.
    1.20 + *
    1.21 + *  \param window The window of which to change the resizable state.
    1.22 + *  \param resizable SDL_TRUE to allow resizing, SDL_FALSE to disallow.
    1.23 + *
    1.24 + *  \note You can't change the resizable state of a fullscreen window.
    1.25 + *
    1.26 + *  \sa SDL_GetWindowFlags()
    1.27 + */
    1.28 +extern DECLSPEC void SDLCALL SDL_SetWindowResizable(SDL_Window * window,
    1.29 +                                                    SDL_bool resizable);
    1.30 +
    1.31 +/**
    1.32   *  \brief Show a window.
    1.33   *
    1.34   *  \sa SDL_HideWindow()