logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Availability

       This struct is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.10                               SDL_DropEvent(3type)

Header File

       Defined in SDL3/SDL_events.h

Name

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

Synopsis

#include"SDL3/SDL.h"typedefstructSDL_DropEvent{SDL_EventTypetype;/**<SDL_EVENT_DROP_BEGINorSDL_EVENT_DROP_FILEorSDL_EVENT_DROP_TEXTorSDL_EVENT_DROP_COMPLETEorSDL_EVENT_DROP_POSITION*/Uint32reserved;Uint64timestamp;/**<Innanoseconds,populatedusingSDL_GetTicksNS()*/SDL_WindowIDwindowID;/**<Thewindowthatwasdroppedon,ifany*/floatx;/**<Xcoordinate,relativetowindow(notonbegin)*/floaty;/**<Ycoordinate,relativetowindow(notonbegin)*/constchar*source;/**<Thesourceappthatsentthisdropevent,orNULLifthatisn'tavailable*/constchar*data;/**<ThetextforSDL_EVENT_DROP_TEXTandthefilenameforSDL_EVENT_DROP_FILE,NULLforotherevents*/}SDL_DropEvent;

See Also