cinder::Clipboard Class Reference

Singleton representing the system's clipboard. More...

#include <Clipboard.h>

List of all members.

Static Public Member Functions

static bool hasString ()
 Returns whether the clipboard contains a string.
static bool hasImage ()
 Returns whether the clipboard contains an image.
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.
static ImageSourceRef getImage ()
 Returns the clipboard contents as an ImageSourceRef or a null if the clipboard does not contain an image.
static void setString (const std::string &str)
 Sets the clipboard contents to the UTF-8 string str.
static void setImage (ImageSourceRef image, ImageTarget::Options options=ImageTarget::Options())
 Sets the clipboard contents to the ImageSource image.

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: