WindowFlags

Window creation flags.

Values

ValueMeaning
FullscreenSDL_WINDOW_FULLSCREEN

Fullscreen window with custom resolution.

FullscreenAutoSDL_WINDOW_FULLSCREEN_DESKTOP

Fullscreen window without automatic resolution.

ShownSDL_WINDOW_SHOWN

Directly show the window without calling show();

HiddenSDL_WINDOW_HIDDEN

Window is hidden by default and needs to be shown by show();

BorderlessSDL_WINDOW_BORDERLESS

Window has no border or title bar.

ResizableSDL_WINDOW_RESIZABLE

Window is resizable.

MinimizedSDL_WINDOW_MINIMIZED

Window is initially started in minimized mode.

MaximizedSDL_WINDOW_MAXIMIZED

Window is initially started in maximized mode.

FocusedSDL_WINDOW_INPUT_FOCUS | SDL_WINDOW_MOUSE_FOCUS

Window directly gains input and mouse focus on startup.

HighDPISDL_WINDOW_ALLOW_HIGHDPI

Window allows high DPI monitors.

DefaultShown | Focused

Combination of Shown | Focused

Meta