include/SDL_video.h
changeset 6788 036f53f2f5aa
parent 6787 95a4c5a5464c
child 6885 700f1b25f77f
     1.1 --- a/include/SDL_video.h	Mon Dec 31 11:07:46 2012 -0800
     1.2 +++ b/include/SDL_video.h	Mon Dec 31 12:15:25 2012 -0800
     1.3 @@ -535,6 +535,7 @@
     1.4   *        automatically matches the size of the display mode.
     1.5   *
     1.6   *  \sa SDL_GetWindowMinimumSize()
     1.7 + *  \sa SDL_SetWindowMaximumSize()
     1.8   */
     1.9  extern DECLSPEC void SDLCALL SDL_SetWindowMinimumSize(SDL_Window * window,
    1.10                                                        int min_w, int min_h);
    1.11 @@ -542,12 +543,34 @@
    1.12  /**
    1.13   *  \brief Get the minimum size of a window's client area.
    1.14   *
    1.15 + *  \sa SDL_GetWindowMaximumSize()
    1.16   *  \sa SDL_SetWindowMinimumSize()
    1.17   */
    1.18  extern DECLSPEC void SDLCALL SDL_GetWindowMinimumSize(SDL_Window * window,
    1.19                                                        int *w, int *h);
    1.20  
    1.21  /**
    1.22 + *  \brief Set the maximum size of a window's client area.
    1.23 + *
    1.24 + *  \note You can't change the maximum size of a fullscreen window, it
    1.25 + *        automatically matches the size of the display mode.
    1.26 + *
    1.27 + *  \sa SDL_GetWindowMaximumSize()
    1.28 + *  \sa SDL_SetWindowMinimumSize()
    1.29 + */
    1.30 +extern DECLSPEC void SDLCALL SDL_SetWindowMaximumSize(SDL_Window * window,
    1.31 +                                                      int max_w, int max_h);
    1.32 +    
    1.33 +/**
    1.34 + *  \brief Get the maximum size of a window's client area.
    1.35 + *
    1.36 + *  \sa SDL_GetWindowMinimumSize()
    1.37 + *  \sa SDL_SetWindowMaximumSize()
    1.38 + */
    1.39 +extern DECLSPEC void SDLCALL SDL_GetWindowMaximumSize(SDL_Window * window,
    1.40 +                                                      int *w, int *h);
    1.41 +
    1.42 +/**
    1.43   *  \brief Set the border state of a window.
    1.44   *
    1.45   *  This will add or remove the window's SDL_WINDOW_BORDERLESS flag and