My Project
|
Go to the source code of this file.
Functions | |
DECLSPEC int SDLCALL | SDL_SetClipboardText (const char *text) |
DECLSPEC char *SDLCALL | SDL_GetClipboardText (void) |
DECLSPEC SDL_bool SDLCALL | SDL_HasClipboardText (void) |
DECLSPEC int SDLCALL | SDL_SetPrimarySelectionText (const char *text) |
DECLSPEC char *SDLCALL | SDL_GetPrimarySelectionText (void) |
DECLSPEC SDL_bool SDLCALL | SDL_HasPrimarySelectionText (void) |
Include file for SDL clipboard handling
DECLSPEC char *SDLCALL SDL_GetClipboardText | ( | void | ) |
Get UTF-8 text from the clipboard, which must be freed with SDL_free().
This functions returns empty string if there was not enough memory left for a copy of the clipboard's content.
DECLSPEC char *SDLCALL SDL_GetPrimarySelectionText | ( | void | ) |
Get UTF-8 text from the primary selection, which must be freed with SDL_free().
This functions returns empty string if there was not enough memory left for a copy of the primary selection's content.
DECLSPEC SDL_bool SDLCALL SDL_HasClipboardText | ( | void | ) |
Query whether the clipboard exists and contains a non-empty text string.
DECLSPEC SDL_bool SDLCALL SDL_HasPrimarySelectionText | ( | void | ) |
Query whether the primary selection exists and contains a non-empty text string.
DECLSPEC int SDLCALL SDL_SetClipboardText | ( | const char * | text | ) |
Put UTF-8 text into the clipboard.
text | the text to store in the clipboard |
DECLSPEC int SDLCALL SDL_SetPrimarySelectionText | ( | const char * | text | ) |
Put UTF-8 text into the primary selection.
text | the text to store in the primary selection |