SDL 3.0
SDL_DropEvent Struct Reference

An event used to request a file open by the system (event.drop.*) This event is enabled by default, you can disable it with SDL_SetEventEnabled(). More...

#include <SDL_events.h>

Data Fields

Uint32 type
 
Uint64 timestamp
 
char * file
 
SDL_WindowID windowID
 
float x
 
float y
 

Detailed Description

An event used to request a file open by the system (event.drop.*) This event is enabled by default, you can disable it with SDL_SetEventEnabled().

Note
If this event is enabled, you must free the filename in the event.

Definition at line 527 of file SDL_events.h.

Field Documentation

◆ file

char* SDL_DropEvent::file

The file name, which should be freed with SDL_free(), is NULL on begin/complete

Definition at line 531 of file SDL_events.h.

◆ timestamp

Uint64 SDL_DropEvent::timestamp

In nanoseconds, populated using SDL_GetTicksNS()

Definition at line 530 of file SDL_events.h.

◆ type

◆ windowID

SDL_WindowID SDL_DropEvent::windowID

The window that was dropped on, if any

Definition at line 532 of file SDL_events.h.

◆ x

float SDL_DropEvent::x

X coordinate, relative to window (not on begin)

Definition at line 533 of file SDL_events.h.

◆ y

float SDL_DropEvent::y

Y coordinate, relative to window (not on begin)

Definition at line 534 of file SDL_events.h.


The documentation for this struct was generated from the following file: