WindowEvent.Type

All supported Window Event Types

Values

ValueMeaning
ShownSDL_WINDOWEVENT_SHOWN

Window has been shown

HiddenSDL_WINDOWEVENT_HIDDEN

Window has been hidden

ExposedSDL_WINDOWEVENT_EXPOSED

Window has been exposed and should be redrawn

MovedSDL_WINDOWEVENT_MOVED

Window has been moved

ResizedSDL_WINDOWEVENT_RESIZED

Window has been resized

SizeChangedSDL_WINDOWEVENT_SIZE_CHANGED

Window size has changed; this event is followed by Type.Resized

MinimizedSDL_WINDOWEVENT_MINIMIZED

Window has been minimized

MaximizedSDL_WINDOWEVENT_MAXIMIZED

Window has been maximized

RestoredSDL_WINDOWEVENT_RESTORED

Window has been restored to normal size and position

EnterSDL_WINDOWEVENT_ENTER

Window has gained mouse focus

LeaveSDL_WINDOWEVENT_LEAVE

Window has lost mouse focus

FocusGainedSDL_WINDOWEVENT_FOCUS_GAINED

Window has gained keyboard focus

FocusLostSDL_WINDOWEVENT_FOCUS_LOST

Window has lost keyboard focus

CloseSDL_WINDOWEVENT_CLOSE

The window manager requests that the window be closed

Meta