arsa  2.7
Functions
SDL_clipboard.h File Reference
#include "SDL_stdinc.h"
#include "begin_code.h"
#include "close_code.h"

Go to the source code of this file.

Functions

DECLSPEC int SDLCALL SDL_SetClipboardText (const char *text)
 Put UTF-8 text into the clipboard. More...
 
DECLSPEC char *SDLCALL SDL_GetClipboardText (void)
 Get UTF-8 text from the clipboard, which must be freed with SDL_free() More...
 
DECLSPEC SDL_bool SDLCALL SDL_HasClipboardText (void)
 Returns a flag indicating whether the clipboard exists and contains a text string that is non-empty. More...
 

Detailed Description

Include file for SDL clipboard handling

Definition in file SDL_clipboard.h.

Function Documentation

◆ SDL_GetClipboardText()

DECLSPEC char* SDLCALL SDL_GetClipboardText ( void  )

Get UTF-8 text from the clipboard, which must be freed with SDL_free()

See also
SDL_SetClipboardText()

◆ SDL_HasClipboardText()

DECLSPEC SDL_bool SDLCALL SDL_HasClipboardText ( void  )

Returns a flag indicating whether the clipboard exists and contains a text string that is non-empty.

See also
SDL_GetClipboardText()

◆ SDL_SetClipboardText()

DECLSPEC int SDLCALL SDL_SetClipboardText ( const char *  text)

Put UTF-8 text into the clipboard.

See also
SDL_GetClipboardText()