SDL_SetWindowResizable

Set the user-resizable state of a window.

This will add or remove the window's SDL_WINDOW_RESIZABLE flag and allow/disallow user resizing of the window. This is a no-op if the window's resizable state already matches the requested state.

You can't change the resizable state of a fullscreen window.

extern (C) nothrow @nogc extern
bool
SDL_SetWindowResizable

Parameters

window SDL_Window*

the window of which to change the resizable state.

resizable bool

true to allow resizing, false to disallow.

Return Value

Type: bool

true on success or false on failure; call SDL_GetError() for more information.

Threadsafety: This function should only be called on the main thread.

See Also

Meta