Loading...
Searching...
No Matches
Clipboard.h File Reference

Go to the source code of this file.

Functions

const char * sfClipboard_getString (void)
 Get the content of the clipboard as string data (returns an ANSI string)
 
const sfUint32sfClipboard_getUnicodeString (void)
 Get the content of the clipboard as string data (returns a Unicode string)
 
void sfClipboard_setString (const char *text)
 Set the content of the clipboard as ANSI string data.
 
void sfClipboard_setUnicodeString (const sfUint32 *text)
 Set the content of the clipboard as Unicode string data.
 

Function Documentation

◆ sfClipboard_getString()

const char * sfClipboard_getString ( void  )

Get the content of the clipboard as string data (returns an ANSI string)

This function returns the content of the clipboard as a string. If the clipboard does not contain string it returns an empty string.

Returns
Clipboard contents as a locale-dependent ANSI string

◆ sfClipboard_getUnicodeString()

const sfUint32 * sfClipboard_getUnicodeString ( void  )

Get the content of the clipboard as string data (returns a Unicode string)

This function returns the content of the clipboard as a string. If the clipboard does not contain string it returns an empty string.

Returns
Clipboard contents as UTF-32

◆ sfClipboard_setString()

void sfClipboard_setString ( const char *  text)

Set the content of the clipboard as ANSI string data.

This function sets the content of the clipboard as an ANSI string.

Parameters
textANSI string containing the data to be sent to the clipboard

◆ sfClipboard_setUnicodeString()

void sfClipboard_setUnicodeString ( const sfUint32 text)

Set the content of the clipboard as Unicode string data.

This function sets the content of the clipboard as a Unicode string.

Parameters
textUnicode string containing the data to be sent to the clipboard