Singleton representing the system's clipboard. More...
#include <Clipboard.h>
Static Public Member Functions | |
static bool | hasString () |
Returns whether the clipboard contains a string. More... | |
static bool | hasImage () |
Returns whether the clipboard contains an image. More... | |
static std::string | getString () |
Returns the clipboard contents as a UTF-8 string or an empty string if the clipboard does not contain a string. More... | |
static ImageSourceRef | getImage () |
Returns the clipboard contents as an ImageSourceRef or a null if the clipboard does not contain an image. More... | |
static void | setString (const std::string &str) |
Sets the clipboard contents to the UTF-8 string str. More... | |
static void | setImage (ImageSourceRef image, ImageTarget::Options options=ImageTarget::Options()) |
Sets the clipboard contents to the ImageSource image. More... | |
Singleton representing the system's clipboard.
|
static |
Returns whether the clipboard contains a string.
|
static |
Returns whether the clipboard contains an image.
|
static |
Returns the clipboard contents as a UTF-8 string or an empty string if the clipboard does not contain a string.
|
static |
Returns the clipboard contents as an ImageSourceRef or a null if the clipboard does not contain an image.
|
static |
Sets the clipboard contents to the UTF-8 string str.
|
static |
Sets the clipboard contents to the ImageSource image.