include/SDL_video.h
changeset 10024 9a1189c7b891
parent 10021 3beca914a2ad
child 10025 bf4f8cde1c54
     1.1 --- a/include/SDL_video.h	Tue Jan 05 02:27:26 2016 -0500
     1.2 +++ b/include/SDL_video.h	Tue Jan 05 02:29:06 2016 -0500
     1.3 @@ -612,6 +612,25 @@
     1.4                                                 int *h);
     1.5  
     1.6  /**
     1.7 + *  \brief Get the size of a window's borders (decorations) around the client area.
     1.8 + *
     1.9 + *  \param window The window to query.
    1.10 + *  \param top Pointer to variable for storing the size of the top border. NULL is permitted.
    1.11 + *  \param left Pointer to variable for storing the size of the left border. NULL is permitted.
    1.12 + *  \param bottom Pointer to variable for storing the size of the bottom border. NULL is permitted.
    1.13 + *  \param right Pointer to variable for storing the size of the right border. NULL is permitted.
    1.14 + *
    1.15 + *  \return 0 on success, or -1 if getting this information is not supported.
    1.16 + *
    1.17 + *  \note if this function fails (returns -1), the size values will be
    1.18 + *        initialized to 0, 0, 0, 0 (if a non-NULL pointer is provided), as
    1.19 + *        if the window in question was borderless.
    1.20 + */
    1.21 +extern DECLSPEC int SDLCALL SDL_GetWindowBordersSize(SDL_Window * window,
    1.22 +                                                     int *top, int *left,
    1.23 +                                                     int *bottom, int *right);
    1.24 +
    1.25 +/**
    1.26   *  \brief Set the minimum size of a window's client area.
    1.27   *
    1.28   *  \param window    The window to set a new minimum size.