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 (SDL_Window *window, const char *file)
 
int SDL_SendDropText (SDL_Window *window, const char *text)
 
int SDL_SendDropComplete (SDL_Window *window)
 

Function Documentation

◆ SDL_SendDropComplete()

int SDL_SendDropComplete ( SDL_Window window)

Definition at line 92 of file SDL_dropevents.c.

References NULL, SDL_DROPCOMPLETE, and SDL_SendDrop().

93 {
94  return SDL_SendDrop(window, SDL_DROPCOMPLETE, NULL);
95 }
static int SDL_SendDrop(SDL_Window *window, const SDL_EventType evtype, const char *data)
#define NULL
Definition: begin_code.h:164

◆ SDL_SendDropFile()

int SDL_SendDropFile ( SDL_Window window,
const char *  file 
)

Definition at line 80 of file SDL_dropevents.c.

References SDL_DROPFILE, and SDL_SendDrop().

81 {
82  return SDL_SendDrop(window, SDL_DROPFILE, file);
83 }
static int SDL_SendDrop(SDL_Window *window, const SDL_EventType evtype, const char *data)

◆ SDL_SendDropText()

int SDL_SendDropText ( SDL_Window window,
const char *  text 
)

Definition at line 86 of file SDL_dropevents.c.

References SDL_DROPTEXT, and SDL_SendDrop().

87 {
88  return SDL_SendDrop(window, SDL_DROPTEXT, text);
89 }
static int SDL_SendDrop(SDL_Window *window, const SDL_EventType evtype, const char *data)
static char text[MAX_TEXT_LENGTH]
Definition: testime.c:47