X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/75ce0581545a6c151484e488596ed200c2ffd93e..7087444f7e4f0f0954ed7011f4c5e87aa68497ce:/docs/latex/wx/clipbrd.tex diff --git a/docs/latex/wx/clipbrd.tex b/docs/latex/wx/clipbrd.tex index 25c8fe089f..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(); } @@ -40,6 +40,10 @@ For example: \helpref{wxObject}{wxobject} +\wxheading{Include files} + + + \wxheading{See also} \helpref{Drag and drop overview}{wxdndoverview}, \helpref{wxDataObject}{wxdataobject} @@ -79,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. @@ -102,7 +106,7 @@ should keep the clipboard open for only a very short time. Returns TRUE on success. This should be tested (as in the sample shown above). -\membersection{wxClipboard::SetData}\label{wxclipboardadddata} +\membersection{wxClipboard::SetData}\label{wxclipboardsetdata} \func{bool}{SetData}{\param{wxDataObject*}{ data}} @@ -110,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. + +