SDL  2.0
SDL_clipboard.h File Reference
#include "SDL_stdinc.h"
#include "begin_code.h"
#include "close_code.h"
+ Include dependency graph for SDL_clipboard.h:
+ This graph shows which files directly or indirectly include this file:

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...
 

Detailed Description

Include file for SDL clipboard handling

Definition in file SDL_clipboard.h.

Function Documentation

◆ SDL_GetClipboardText()

char* SDL_GetClipboardText ( void  )

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

See also
SDL_SetClipboardText()

◆ SDL_HasClipboardText()

SDL_bool 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()

int SDL_SetClipboardText ( const char *  text)

Put UTF-8 text into the clipboard.

See also
SDL_GetClipboardText()