Table of Contents

Enum DisplayServer.WindowEvent

Namespace
Godot
Assembly
GodotSharp.dll
public enum DisplayServer.WindowEvent : long

Fields

CloseRequest = 4

Sent when the user has attempted to close the window (e.g. close button is pressed).

DpiChange = 6

Sent when the window is moved to the display with different DPI, or display DPI is changed.

Note: This flag is implemented only on macOS.

FocusIn = 2

Sent when the window grabs focus.

FocusOut = 3

Sent when the window loses focus.

GoBackRequest = 5

Sent when the device "Back" button is pressed.

Note: This event is implemented only on Android.

MouseEnter = 0

Sent when the mouse pointer enters the window.

MouseExit = 1

Sent when the mouse pointer exits the window.

TitlebarChange = 7

Sent when the window title bar decoration is changed (e.g. ExtendToTitle is set or window entered/exited full screen mode).

Note: This flag is implemented only on macOS.