![]() |
Gamedev Framework (gf) 1.2.0
A C++17 framework for 2D games
|
An interface for getting and setting the contents of the system clipboard. More...
#include <gf/Clipboard.h>
Static Public Member Functions | |
static std::string | getString () |
Get the content of the clipboard as string data. More... | |
static void | setString (const std::string &text) |
Set the content of the clipboard as string data. More... | |
An interface for getting and setting the contents of the system clipboard.
Usage example:
|
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 string.
|
static |
Set the content of the clipboard as string data.
This function sets the content of the clipboard as a string.
text | A string containing the data to be sent to the clipboard |