| SDL_GetWindowBordersSize(3) | SDL3 FUNCTIONS | SDL_GetWindowBordersSize(3) |
SDL_GetWindowBordersSize - Get the size of a window's borders (decorations) around the client area.
Defined in SDL3/SDL_video.h
#include "SDL3/SDL.h"
bool SDL_GetWindowBordersSize(SDL_Window *window, int *top, int *left, int *bottom, int *right);
Note: If this function fails (returns false), the size values will be initialized to 0, 0, 0, 0 (if a non-NULL pointer is provided), as if the window in question was borderless.
Note: This function may fail on systems where the window has not yet been decorated by the display server (for example, immediately after calling
SDL_CreateWindow ). It is recommended that you wait at least until the window has been presented and composited, so that the window system has a chance to decorate the window and provide the border dimensions to SDL.
This function also returns false if getting the information is not supported.
Returns true on success or false on failure; call
SDL_GetError () for more information.
This function should only be called on the main thread.
This function is available since SDL 3.2.0.
•(3), SDL_GetWindowSize(3)
| SDL 3.2.10 | Simple Directmedia Layer |