Add SDL_SetWindowAlwaysOnTop()

This commit is contained in:
Joseph Lyncheski 2021-04-19 07:13:38 -04:00 committed by Sam Lantinga
parent 6be9c00970
commit a0a5da5d91
11 changed files with 65 additions and 0 deletions

View file

@ -1010,6 +1010,21 @@ extern DECLSPEC void SDLCALL SDL_SetWindowBordered(SDL_Window * window,
extern DECLSPEC void SDLCALL SDL_SetWindowResizable(SDL_Window * window,
SDL_bool resizable);
/**
* \brief Set the window to always be above the others.
*
* This will add or remove the window's `SDL_WINDOW_ALWAYS_ON_TOP`
* flag. This will bring the window to the front and keep the window above
* the rest.
*
* \param window The window of which to change the always on top state.
* \param on_top SDL_TRUE to set the window always on top, SDL_FALSE to disable.
*
* \sa SDL_SetWindowAlwaysOnTop
*/
extern DECLSPEC void SDLCALL SDL_SetWindowAlwaysOnTop(SDL_Window * window,
SDL_bool on_top);
/**
* Show a window.
*