zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 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...
 
DECLSPEC int SDLCALL SDL_SetClipboardText (const char *text)
 Put UTF-8 text into the clipboard. More...
 

Detailed Description

Include file for SDL clipboard handling

Definition in file SDL_clipboard.h.

Function Documentation

DECLSPEC char* SDLCALL SDL_GetClipboardText ( void  )

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

See Also
SDL_SetClipboardText()

Definition at line 45 of file SDL_clipboard.c.

References _this, SDL_VideoDevice::clipboard_text, SDL_VideoDevice::GetClipboardText, SDL_GetVideoDevice(), and SDL_strdup().

Referenced by SDLTest_CommonEvent().

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

Definition at line 61 of file SDL_clipboard.c.

References _this, SDL_VideoDevice::clipboard_text, SDL_VideoDevice::HasClipboardText, SDL_FALSE, SDL_GetVideoDevice(), and SDL_TRUE.

DECLSPEC int SDLCALL SDL_SetClipboardText ( const char *  text)

Put UTF-8 text into the clipboard.

See Also
SDL_GetClipboardText()

Definition at line 28 of file SDL_clipboard.c.

References _this, SDL_VideoDevice::clipboard_text, SDL_free(), SDL_GetVideoDevice(), SDL_strdup(), and SDL_VideoDevice::SetClipboardText.

Referenced by SDLTest_CommonEvent().