Skip to content

TSdlWindowFlag

The flags on a window.

These cover a lot of true/false, or on/off, window state. Some of it is immutable after being set through TSdlWindow.Create, 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.

Definition

Unit: Neslib.Sdl3.Video

type TSdlWindowFlag = (Fullscreen, OpenGL, Occluded, Hidden, Borderless, Resizable, Minimized, Maximized, MouseGrabbed, InputFocus, MouseFocus, External, Modal, HighPixelDensisty, MouseCapture...)

See Also

Enumeration Values

Fullscreen = 0

Window is in fullscreen mode


OpenGL = 1

Window usable with OpenGL context


Occluded = 2

Window is occluded


Hidden = 3

Window is neither mapped onto the desktop nor shown in the taskbar/dock/window list; TSdlWindow.Show is required for it to become visible


Borderless = 4

No window decoration


Resizable = 5

Window can be resized


Minimized = 6

Window is minimized


Maximized = 7

Window is maximized


MouseGrabbed = 8

Window has grabbed mouse input


InputFocus = 9

Window has input focus


MouseFocus = 10

Window has mouse focus


External = 11

Window not created by SDL


Window is modal


HighPixelDensisty = 13

Window uses high pixel density back buffer if possible


MouseCapture = 14

Window has mouse captured (unrelated to MouseGrabbed)


MouseRelativeMode = 15

Window has relative mode enabled


AlwaysOnTop = 16

Window should always be above others


Utility = 17

Window should be treated as a utility window, not showing in the task bar and window list


Tooltip = 18

Window should be treated as a tooltip and does not get mouse or keyboard focus, requires a parent window


PopupMenu = 19

Window should be treated as a popup menu, requires a parent window


KeyboardGrabbed = 20

Window has grabbed keyboard input


Vulkan = 28

Window usable for Vulkan surface


Metal = 29

Window usable for Metal view


Transparent = 30

Window with transparent buffer


NotFocusable = 31

Window should not be focusable


__Last = 63