SDL
2.0
|
Go to the source code of this file.
Functions | |
int | SDL_SetClipboardText (const char *text) |
Put UTF-8 text into the clipboard. More... | |
char * | SDL_GetClipboardText (void) |
Get UTF-8 text from the clipboard, which must be freed with SDL_free() More... | |
SDL_bool | SDL_HasClipboardText (void) |
Returns a flag indicating whether the clipboard exists and contains a text string that is non-empty. More... | |
Include file for SDL clipboard handling
Definition in file SDL_clipboard.h.
char* SDL_GetClipboardText | ( | void | ) |
Get UTF-8 text from the clipboard, which must be freed with SDL_free()
Definition at line 49 of file SDL_clipboard.c.
References _this, SDL_VideoDevice::clipboard_text, SDL_VideoDevice::GetClipboardText, SDL_GetVideoDevice(), SDL_SetError, SDL_strdup, and text.
Returns a flag indicating whether the clipboard exists and contains a text string that is non-empty.
Definition at line 70 of file SDL_clipboard.c.
References _this, SDL_VideoDevice::clipboard_text, SDL_VideoDevice::HasClipboardText, SDL_FALSE, SDL_GetVideoDevice(), SDL_SetError, and SDL_TRUE.
int SDL_SetClipboardText | ( | const char * | text | ) |
Put UTF-8 text into the clipboard.
Definition at line 28 of file SDL_clipboard.c.
References _this, SDL_VideoDevice::clipboard_text, SDL_free, SDL_GetVideoDevice(), SDL_SetError, SDL_strdup, and SDL_VideoDevice::SetClipboardText.