Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

SDL_WindowFlags - The flags on a window.

Availability

       This datatype is available since SDL 3.2.0.

Description

       These cover a lot of true/false, or on/off, window state. Some of it is immutable after being set through
       SDL_CreateWindow  (),  some  of it can be changed on existing windows by the app, and some of it might be
       altered by the user or system outside of the app's control.

Header File

       Defined in SDL3/SDL_video.h

Name

       SDL_WindowFlags - The flags on a window.

See Also

(3), SDL_GetWindowFlags(3)

Simple Directmedia Layer                           SDL 3.2.10                             SDL_WindowFlags(3type)

Synopsis

#include"SDL3/SDL.h"typedefUint64SDL_WindowFlags;#defineSDL_WINDOW_FULLSCREENSDL_UINT64_C(0x0000000000000001)/**<windowisinfullscreenmode*/#defineSDL_WINDOW_OPENGLSDL_UINT64_C(0x0000000000000002)/**<windowusablewithOpenGLcontext*/#defineSDL_WINDOW_OCCLUDEDSDL_UINT64_C(0x0000000000000004)/**<windowisoccluded*/#defineSDL_WINDOW_HIDDENSDL_UINT64_C(0x0000000000000008)/**<windowisneithermappedontothedesktopnorshowninthetaskbar/dock/windowlist;SDL_ShowWindow()isrequiredforittobecomevisible*/#defineSDL_WINDOW_BORDERLESSSDL_UINT64_C(0x0000000000000010)/**<nowindowdecoration*/#defineSDL_WINDOW_RESIZABLESDL_UINT64_C(0x0000000000000020)/**<windowcanberesized*/#defineSDL_WINDOW_MINIMIZEDSDL_UINT64_C(0x0000000000000040)/**<windowisminimized*/#defineSDL_WINDOW_MAXIMIZEDSDL_UINT64_C(0x0000000000000080)/**<windowismaximized*/#defineSDL_WINDOW_MOUSE_GRABBEDSDL_UINT64_C(0x0000000000000100)/**<windowhasgrabbedmouseinput*/#defineSDL_WINDOW_INPUT_FOCUSSDL_UINT64_C(0x0000000000000200)/**<windowhasinputfocus*/#defineSDL_WINDOW_MOUSE_FOCUSSDL_UINT64_C(0x0000000000000400)/**<windowhasmousefocus*/#defineSDL_WINDOW_EXTERNALSDL_UINT64_C(0x0000000000000800)/**<windownotcreatedbySDL*/#defineSDL_WINDOW_MODALSDL_UINT64_C(0x0000000000001000)/**<windowismodal*/#defineSDL_WINDOW_HIGH_PIXEL_DENSITYSDL_UINT64_C(0x0000000000002000)/**<windowuseshighpixeldensitybackbufferifpossible*/#defineSDL_WINDOW_MOUSE_CAPTURESDL_UINT64_C(0x0000000000004000)/**<windowhasmousecaptured(unrelatedtoMOUSE_GRABBED)*/#defineSDL_WINDOW_MOUSE_RELATIVE_MODESDL_UINT64_C(0x0000000000008000)/**<windowhasrelativemodeenabled*/#defineSDL_WINDOW_ALWAYS_ON_TOPSDL_UINT64_C(0x0000000000010000)/**<windowshouldalwaysbeaboveothers*/#defineSDL_WINDOW_UTILITYSDL_UINT64_C(0x0000000000020000)/**<windowshouldbetreatedasautilitywindow,notshowinginthetaskbarandwindowlist*/#defineSDL_WINDOW_TOOLTIPSDL_UINT64_C(0x0000000000040000)/**<windowshouldbetreatedasatooltipanddoesnotgetmouseorkeyboardfocus,requiresaparentwindow*/#defineSDL_WINDOW_POPUP_MENUSDL_UINT64_C(0x0000000000080000)/**<windowshouldbetreatedasapopupmenu,requiresaparentwindow*/#defineSDL_WINDOW_KEYBOARD_GRABBEDSDL_UINT64_C(0x0000000000100000)/**<windowhasgrabbedkeyboardinput*/#defineSDL_WINDOW_VULKANSDL_UINT64_C(0x0000000010000000)/**<windowusableforVulkansurface*/#defineSDL_WINDOW_METALSDL_UINT64_C(0x0000000020000000)/**<windowusableforMetalview*/#defineSDL_WINDOW_TRANSPARENTSDL_UINT64_C(0x0000000040000000)/**<windowwithtransparentbuffer*/#defineSDL_WINDOW_NOT_FOCUSABLESDL_UINT64_C(0x0000000080000000)/**<windowshouldnotbefocusable*/

See Also