ManaPlus
|
Go to the source code of this file.
Functions | |
bool | retrieveBuffer (std::string &text, size_t &pos) |
bool | sendBuffer (const std::string &text) |
bool retrieveBuffer | ( | std::string & | text, |
size_t & | pos | ||
) |
Attempts to retrieve text from the clipboard buffer and inserts it in text at position. The characters are encoded in utf-8.
Implemented for Windows, X11 and Mac OS X.
true
when successful or false
when there was a problem retrieving the clipboard buffer. Definition at line 513 of file copynpaste.cpp.
Referenced by TextField::handlePaste().
bool sendBuffer | ( | const std::string & | text | ) |
Definition at line 518 of file copynpaste.cpp.
Referenced by ChatWindow::copyToClipboard(), NpcDialog::copyToClipboard(), and TextField::handleCopy().