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.

DropEvent

File or text dropped onto a window; also the begin and complete markers around a drop

Operations

GetFile #

The dropped file's path, or the dropped text for SDL_DROPTEXT

method : public : GetFile() ~ String

Return

TypeDescription
Stringpath or text, Nil for SDL_DROPBEGIN and SDL_DROPCOMPLETE

GetTimestamp #

Timestamp of the event

method : public : GetTimestamp() ~ Int

Return

TypeDescription
Intevent timestamp

GetType #

Event type

method : public : GetType() ~ Int

Return

TypeDescription
IntEventType->SDL_DROPFILE, SDL_DROPTEXT, SDL_DROPBEGIN or SDL_DROPCOMPLETE

GetWindowID #

The window that was dropped on, if any

method : public : GetWindowID() ~ Int

Return

TypeDescription
Intwindow ID