21 #include "../SDL_internal.h" 33 return SDL_SetError(
"Video subsystem must be initialized to set clipboard text");
54 SDL_SetError(
"Video subsystem must be initialized to get clipboard text");
75 SDL_SetError(
"Video subsystem must be initialized to check clipboard text");
int SDL_SetClipboardText(const char *text)
Put UTF-8 text into the clipboard.
static SDL_VideoDevice * _this
static char text[MAX_TEXT_LENGTH]
char * SDL_GetClipboardText(void)
Get UTF-8 text from the clipboard, which must be freed with SDL_free()
SDL_bool SDL_HasClipboardText(void)
Returns a flag indicating whether the clipboard exists and contains a text string that is non-empty...
SDL_bool(* HasClipboardText)(_THIS)
SDL_VideoDevice * SDL_GetVideoDevice(void)
char *(* GetClipboardText)(_THIS)
int(* SetClipboardText)(_THIS, const char *text)