![]() |
Cinder
0.9.1
|
#include <Clipboard.h>
Static Public Member Functions | |
static bool | hasString () |
static bool | hasImage () |
static std::string | getString () |
static ImageSourceRef | getImage () |
static void | setString (const std::string &str) |
static void | setImage (ImageSourceRef image, ImageTarget::Options options=ImageTarget::Options()) |
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.