Cinder  0.9.1
Static Public Member Functions | List of all members
cinder::Clipboard Class Reference

#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())
 

Detailed Description

Singleton representing the system's clipboard.

Member Function Documentation

bool cinder::Clipboard::hasString ( )
static

Returns whether the clipboard contains a string.

bool cinder::Clipboard::hasImage ( )
static

Returns whether the clipboard contains an image.

std::string cinder::Clipboard::getString ( )
static

Returns the clipboard contents as a UTF-8 string or an empty string if the clipboard does not contain a string.

ImageSourceRef cinder::Clipboard::getImage ( )
static

Returns the clipboard contents as an ImageSourceRef or a null if the clipboard does not contain an image.

void cinder::Clipboard::setString ( const std::string &  str)
static

Sets the clipboard contents to the UTF-8 string str.

void cinder::Clipboard::setImage ( ImageSourceRef  image,
ImageTarget::Options  options = ImageTarget::Options() 
)
static

Sets the clipboard contents to the ImageSource image.


The documentation for this class was generated from the following files: