X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/294e9a7aa00c23de9aad973b3998071b81159aee..7087444f7e4f0f0954ed7011f4c5e87aa68497ce:/docs/latex/wx/clipbrd.tex?ds=inline diff --git a/docs/latex/wx/clipbrd.tex b/docs/latex/wx/clipbrd.tex index dcab3d5fb1..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. + +