Contents Up Previous Next

wxClipboard: wxObject

There is one wxClipboard object referenced by the pointer wxTheClipboard, initialized by calling wxInitClipboard. Under X, clipboard manipulation must be done by using this class, and such code will work under MS Windows also. Under MS Windows, you have the alternative of using the normal clipboard functions.

The documentation for this class will be expanded in due course. At present, wxClipboard is only used in the wxMediaWindow add-on library.

See also wxClipboardClient, wxInitClipboard.

wxClipboardClient::GetClipboardClient
wxClipboardClient::GetClipboardData
wxClipboardClient::GetClipboardString
wxClipboardClient::SetClipboardClient
wxClipboardClient::SetClipboardString


wxClipboardClient::GetClipboardClient

wxClipboardClient * GetClipboardClient(void)

Get the clipboard client directly. Will be NULL if clipboard data is a string, or if some other application owns the clipboard. This can be useful for shortcutting data translation, if the clipboard user can check for a specific client.


wxClipboardClient::GetClipboardData

char * GetClipboardData(char *format, long *length, long time)

Get data from the clipboard.

Get the data from the clipboard in the format "TEXT".


wxClipboardClient::GetClipboardString

char * GetClipboardString(long time)

Get the data from the clipboard in the format "TEXT".


wxClipboardClient::SetClipboardClient

void SetClipboardClient(wxClipboardClient *client, long time)

Set the clipboard data owner.


wxClipboardClient::SetClipboardString

void SetClipboardString(char *data, long time)

Set the clipboard string; does not require a client.