Crazy Eddie's GUI System
${CEGUI_VERSION}
|
Defines a clipboard handling class. More...
Public Member Functions | |
Clipboard () | |
constructor | |
~Clipboard () | |
destructor | |
void | setNativeProvider (NativeClipboardProvider *provider) |
sets native clipboard provider More... | |
NativeClipboardProvider * | getNativeProvider () const |
retrieves currently set native clipboard provider More... | |
void | setData (const String &mimeType, const void *buffer, size_t size) |
sets contents of this clipboard to given raw data More... | |
void | getData (String &mimeType, const void *&buffer, size_t &size) |
retrieves contents of this clipboard as raw data More... | |
void | setText (const String &text) |
convenience method that sets contents to given string | |
String | getText () |
convenience method that retrieves contents as a string | |
Clipboard () | |
constructor | |
~Clipboard () | |
destructor | |
void | setNativeProvider (NativeClipboardProvider *provider) |
sets native clipboard provider More... | |
NativeClipboardProvider * | getNativeProvider () const |
retrieves currently set native clipboard provider More... | |
void | setData (const String &mimeType, const void *buffer, size_t size) |
sets contents of this clipboard to given raw data More... | |
void | getData (String &mimeType, const void *&buffer, size_t &size) |
retrieves contents of this clipboard as raw data More... | |
void | setText (const String &text) |
convenience method that sets contents to given string | |
String | getText () |
convenience method that retrieves contents as a string | |
Defines a clipboard handling class.
void CEGUI::Clipboard::getData | ( | String & | mimeType, |
const void *& | buffer, | ||
size_t & | size | ||
) |
retrieves contents of this clipboard as raw data
mimeType | current mime type |
buffer | the raw data buffer (can be 0 if size == 0!) |
size | size of the returned buffer |
You shan't change the buffer contents, only read from it!
References CEGUI::NativeClipboardProvider::retrieveFromClipboard().
Referenced by getText().
void CEGUI::Clipboard::getData | ( | String & | mimeType, |
const void *& | buffer, | ||
size_t & | size | ||
) |
retrieves contents of this clipboard as raw data
mimeType | current mime type |
buffer | the raw data buffer (can be 0 if size == 0!) |
size | size of the returned buffer |
You shan't change the buffer contents, only read from it!
NativeClipboardProvider* CEGUI::Clipboard::getNativeProvider | ( | ) | const |
retrieves currently set native clipboard provider
NativeClipboardProvider * CEGUI::Clipboard::getNativeProvider | ( | ) | const |
retrieves currently set native clipboard provider
void CEGUI::Clipboard::setData | ( | const String & | mimeType, |
const void * | buffer, | ||
size_t | size | ||
) |
sets contents of this clipboard to given raw data
mimeType | describes type of the data in the clipboard |
buffer | raw buffer containing data to push into the clipboard |
size | size (in bytes) of given data |
References CEGUI::NativeClipboardProvider::sendToClipboard().
Referenced by setText().
void CEGUI::Clipboard::setData | ( | const String & | mimeType, |
const void * | buffer, | ||
size_t | size | ||
) |
sets contents of this clipboard to given raw data
mimeType | describes type of the data in the clipboard |
buffer | raw buffer containing data to push into the clipboard |
size | size (in bytes) of given data |
void CEGUI::Clipboard::setNativeProvider | ( | NativeClipboardProvider * | provider | ) |
sets native clipboard provider
provider | the native clipboard provider to set |
void CEGUI::Clipboard::setNativeProvider | ( | NativeClipboardProvider * | provider | ) |
sets native clipboard provider
provider | the native clipboard provider to set |
Referenced by TestNativeClipboardProvider::retrieveFromClipboard().