Enum Window.Flags
- Namespace
- Godot
- Assembly
- GodotSharp.dll
public enum Window.Flags : long
Fields
AlwaysOnTop = 2The window is floating on top of all other windows. This flag is ignored for full-screen windows. Set with AlwaysOnTop.
Borderless = 1The window do not have native title bar and other decorations. This flag is ignored for full-screen windows. Set with Borderless.
ExcludeFromCapture = 9Windows is excluded from screenshots taken by ScreenGetImage(int), ScreenGetImageRect(Rect2I), and ScreenGetPixel(Vector2I).
Note: This flag is implemented on macOS and Windows.
Note: Setting this flag will NOT prevent other apps from capturing an image, it should not be used as a security measure.
ExtendToTitle = 6Window content is expanded to the full size of the window. Unlike borderless window, the frame is left intact and can be used to resize the window, title bar is transparent, but have minimize/maximize/close buttons. Set with ExtendToTitle.
Note: This flag is implemented only on macOS.
Note: This flag has no effect in embedded windows.
Max = 10Max value of the Window.Flags.
MousePassthrough = 7All mouse events are passed to the underlying window of the same application.
Note: This flag has no effect in embedded windows.
NoFocus = 4The window can't be focused. No-focus window will ignore all input, except mouse clicks. Set with Unfocusable.
Popup = 5Window is part of menu or OptionButton dropdown. This flag can't be changed when the window is visible. An active popup window will exclusively receive all input, without stealing focus from its parent. Popup windows are automatically closed when uses click outside it, or when an application is switched. Popup window must have transient parent set (see Transient).
Note: This flag has no effect in embedded windows (unless said window is a Popup).
ResizeDisabled = 0The window can't be resized by dragging its resize grip. It's still possible to resize the window using Size. This flag is ignored for full screen windows. Set with Unresizable.
SharpCorners = 8Window style is overridden, forcing sharp corners.
Note: This flag has no effect in embedded windows.
Note: This flag is implemented only on Windows (11).
Transparent = 3The window background can be transparent. Set with Transparent.
Note: This flag has no effect if either
ProjectSettings.display/window/per_pixel_transparency/allowed, or the window's TransparentBg is set to false.