copynpaste.h File Reference


#include <string>
#include "localconsts.h"

Go to the source code of this file.


bool retrieveBuffer (std::string &text, size_t &pos)
bool sendBuffer (const std::string &text)

Function Documentation

◆ retrieveBuffer()

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.

514 {
515  return false;
516 }

Referenced by TextField::handlePaste().

◆ sendBuffer()

bool sendBuffer ( const std::string &  text)

Definition at line 518 of file copynpaste.cpp.

519 {
520  return false;
521 }

Referenced by ChatWindow::copyToClipboard(), NpcDialog::copyToClipboard(), and TextField::handleCopy().