Function sdl2_sys::SDL_SetWindowAlwaysOnTop

source ·
pub unsafe extern "C" fn SDL_SetWindowAlwaysOnTop(
    window: *mut SDL_Window,
    on_top: SDL_bool,
)
Expand description

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

\since This function is available since SDL 2.0.16.

\sa SDL_GetWindowFlags