SDL 3.0
SDL_DropEvent Struct Reference

#include <SDL_events.h>

Data Fields

SDL_EventType type
 
Uint32 reserved
 
Uint64 timestamp
 
SDL_WindowID windowID
 
float x
 
float y
 
char * source
 
char * data
 

Detailed Description

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

The data is owned by SDL and should be copied if the application wants to hold onto it beyond the scope of handling this event. Do not free it!

Since
This struct is available since SDL 3.0.0.

Definition at line 739 of file SDL_events.h.

Field Documentation

◆ data

char* SDL_DropEvent::data

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

Definition at line 748 of file SDL_events.h.

◆ reserved

Uint32 SDL_DropEvent::reserved

Definition at line 742 of file SDL_events.h.

◆ source

char* SDL_DropEvent::source

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

Definition at line 747 of file SDL_events.h.

◆ timestamp

Uint64 SDL_DropEvent::timestamp

In nanoseconds, populated using SDL_GetTicksNS()

Definition at line 743 of file SDL_events.h.

◆ type

◆ windowID

SDL_WindowID SDL_DropEvent::windowID

The window that was dropped on, if any

Definition at line 744 of file SDL_events.h.

◆ x

float SDL_DropEvent::x

X coordinate, relative to window (not on begin)

Definition at line 745 of file SDL_events.h.

◆ y

float SDL_DropEvent::y

Y coordinate, relative to window (not on begin)

Definition at line 746 of file SDL_events.h.


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