SDL  2.0
SDL_dropevents_c.h File Reference
#include "../SDL_internal.h"
+ Include dependency graph for SDL_dropevents_c.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int SDL_SendDropFile (const char *file)
 

Function Documentation

int SDL_SendDropFile ( const char *  file)

Definition at line 31 of file SDL_dropevents.c.

References SDL_DROPFILE, SDL_ENABLE, SDL_GetEventState, SDL_PushEvent, and SDL_strdup.

32 {
33  int posted;
34 
35  /* Post the event, if desired */
36  posted = 0;
39  event.type = SDL_DROPFILE;
40  event.drop.file = SDL_strdup(file);
41  posted = (SDL_PushEvent(&event) > 0);
42  }
43  return (posted);
44 }
#define SDL_ENABLE
Definition: SDL_events.h:718
#define SDL_GetEventState(type)
Definition: SDL_events.h:731
struct _cl_event * event
#define SDL_PushEvent
#define SDL_strdup
General event structure.
Definition: SDL_events.h:521