SDL_DropEvent

An event used to drop text or request a file open by the system (event.drop.*)

\since This struct is available since SDL 3.2.0.

Members

Variables

data
const(char)* data;

< The text for SDL_EVENT_DROP_TEXT and the file name for SDL_EVENT_DROP_FILE, NULL for other events

reserved
Uint32 reserved;
Undocumented in source.
source
const(char)* source;

< The source app that sent this drop event, or NULL if that isn't available

timestamp
Uint64 timestamp;

< In nanoseconds, populated using SDL_GetTicksNS()

type
SDL_EventType type;

< SDL_EVENT_DROP_BEGIN or SDL_EVENT_DROP_FILE or SDL_EVENT_DROP_TEXT or SDL_EVENT_DROP_COMPLETE or SDL_EVENT_DROP_POSITION

windowID
SDL_WindowID windowID;

< The window that was dropped on, if any

x
float x;

< X coordinate, relative to window (not on begin)

y
float y;

< Y coordinate, relative to window (not on begin)

Meta