X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/954b8ae60391d18b87a604e7919c87c0c6ae208b..efc5f2246391dc536e5ace471af019bba8d6851b:/docs/latex/wx/clipbrd.tex?ds=inline diff --git a/docs/latex/wx/clipbrd.tex b/docs/latex/wx/clipbrd.tex index 4a48ba13b9..e9b3352026 100644 --- a/docs/latex/wx/clipbrd.tex +++ b/docs/latex/wx/clipbrd.tex @@ -26,11 +26,11 @@ For example: // Read some text if (wxTheClipboard->Open()) { - wxTextDataObject data; - if (wxTheClipboard->IsSupported(data)) + if (wxTheClipboard->IsSupported( "STRING" )) { - wxTheClipboard->GetData(data); - wxMessageBox(data.GetText()); + wxTextDataObject data; + wxTheClipboard->GetData( &data ); + wxMessageBox( data.GetText() ); } wxTheClipboard->Close(); } @@ -83,14 +83,14 @@ Call this function to close the clipboard, having opened it with \helpref{wxClip \membersection{wxClipboard::GetData}\label{wxclipboardgetdata} -\func{bool}{GetData}{\param{wxDataObject&}{ data}} +\func{bool}{GetData}{\param{wxDataObject*}{ data}} Call this function to fill {\it data} with data on the clipboard, if available in the required format. Returns TRUE on success. \membersection{wxClipboard::IsSupported}\label{wxclipboardissupported} -\func{bool}{IsSupported}{\param{wxDataObject&}{ data}} +\func{bool}{IsSupported}{\param{wxDataFormat}{ format}} Returns TRUE if the format of the given data object is available on the clipboard. @@ -114,3 +114,12 @@ Call this function to set the data object to the clipboard. This function will clear all previous contents in the clipboard, so calling it several times does not make any sense. +\membersection{wxClipboard::UsePrimarySelection}\label{wxclipboarduseprimary} + +\func{void}{UsePrimarySelection}{\param{bool}{ primary = TRUE}} + +On platforms supporting it (currently only GTK), selects the so called +PRIMARY SELECTION as the clipboard as opposed to the normal clipboard, +if {\it primary} is TRUE. + +