Give access to the system clipboard. More...
#include <Clipboard.hpp>
Static Public Member Functions | |
static String | getString () |
Get the content of the clipboard as string data. More... | |
static void | setString (const String &text) |
Set the content of the clipboard as string data. More... | |
Give access to the system clipboard.
sf::Clipboard provides an interface for getting and setting the contents of the system clipboard.
Usage example:
Definition at line 41 of file Clipboard.hpp.
|
static |
Get the content of the clipboard as string data.
This function returns the content of the clipboard as a string. If the clipboard does not contain string it returns an empty sf::String object.
|
static |
Set the content of the clipboard as string data.
This function sets the content of the clipboard as a string.
text | sf::String containing the data to be sent to the clipboard |