---
name: "SDL_DropEvent"
section: "3type"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_DropEvent"
---

# SDL\_DropEvent(3type)

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

## NAME

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

## HEADER FILE

Defined in SDL3/SDL\_events.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**typedef struct SDL\_DropEvent** **{**     **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 \*/**     **Uint32 reserved;**     **Uint64 timestamp;   /\*\*\< In nanoseconds, populated using SDL\_GetTicksNS() \*/**     **SDL\_WindowID windowID;    /\*\*\< The window that was dropped on, if any \*/**     **float x;            /\*\*\< X coordinate, relative to window (not on begin) \*/**     **float y;            /\*\*\< Y coordinate, relative to window (not on begin) \*/**     **const char \*source; /\*\*\< The source app that sent this drop event, or NULL if that isn't available \*/**     **const char \*data;   /\*\*\< The text for SDL\_EVENT\_DROP\_TEXT and the file name for SDL\_EVENT\_DROP\_FILE, NULL for other events \*/** **} SDL\_DropEvent;**

## AVAILABILITY

This struct is available since SDL 3.2.0.
