v2026.11.2
All Bundles
Bundle

SDL2 multimedia library for 2D graphics, input handling, audio playback, and window management. Core types: Window, Renderer, Texture, Surface, Event, and Mixer. Compile with -lib sdl2.

WindowEvent

Window state change event: shown, resized, focus gained, close requested and so on

Operations

GetData1 #

Event dependent data: the new width for a resize or size change, the new x position for a move

method : public : GetData1() ~ Int

Return

TypeDescription
Intfirst data value

GetData2 #

Event dependent data: the new height for a resize or size change, the new y position for a move

method : public : GetData2() ~ Int

Return

TypeDescription
Intsecond data value

GetEvent #

What happened to the window

method : public : GetEvent() ~ Int

Return

TypeDescription
Inta WindowEventID value, such as WindowEventID->SDL_WINDOWEVENT_RESIZED

GetTimestamp #

Timestamp of the event

method : public : GetTimestamp() ~ Int

Return

TypeDescription
Intevent timestamp

GetType #

Event type

method : public : GetType() ~ Int

Return

TypeDescription
IntEventType->SDL_WINDOWEVENT

GetWindowID #

The associated window

method : public : GetWindowID() ~ Int

Return

TypeDescription
Intwindow ID