1999-01-13 09:23:31 -05:00
|
|
|
\section{\class{wxPrivateDataObject}}\label{wxprivatedataobject}
|
|
|
|
|
1999-01-30 17:54:23 -05:00
|
|
|
wxPrivateDataObject is a specialization of wxDataObject for application-specific or standard
|
|
|
|
format data. The format of the data contained in an instance of this class must be identified
|
|
|
|
with a string literal corresponding to the mime-type of the data. Typically this would be
|
|
|
|
"image/png" or "text/html" or "application/word".
|
1999-01-13 09:23:31 -05:00
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
\helpref{wxDataObject}{wxdataobject}
|
|
|
|
|
1999-02-15 15:41:29 -05:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/dataobj.h>
|
|
|
|
|
1999-01-15 08:24:42 -05:00
|
|
|
\wxheading{See also}
|
|
|
|
|
|
|
|
\helpref{wxDataObject}{wxdataobject}
|
1999-01-13 09:23:31 -05:00
|
|
|
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
|
|
|
\membersection{wxPrivateDataObject::wxPrivateDataObject}\label{wxprivatedataobjectwxprivatedataobject}
|
|
|
|
|
1999-01-15 08:24:42 -05:00
|
|
|
\func{}{wxPrivateDataObject}{\void}
|
1999-01-13 09:23:31 -05:00
|
|
|
|
|
|
|
\membersection{wxPrivateDataObject::\destruct{wxPrivateDataObject}}\label{wxprivatedataobjectdtor}
|
|
|
|
|
1999-01-15 08:24:42 -05:00
|
|
|
\func{}{\destruct{wxPrivateDataObject}}{\void}
|
1999-01-13 09:23:31 -05:00
|
|
|
|
|
|
|
\membersection{wxPrivateDataObject::SetId}\label{wxprivatedataobjectsetid}
|
|
|
|
|
1999-01-15 08:24:42 -05:00
|
|
|
\func{virtual void}{SetId}{\param{const wxString\& }{id}}
|
1999-01-13 09:23:31 -05:00
|
|
|
|
1999-01-15 08:24:42 -05:00
|
|
|
The string ID identifies the format of clipboard or DnD data. A word
|
|
|
|
processor would e.g. add a wxTextDataObject and a wxPrivateDataObject
|
1999-01-30 17:54:23 -05:00
|
|
|
to the clipboard - the latter with the Id "application/word".
|
1999-01-13 09:23:31 -05:00
|
|
|
|
|
|
|
\membersection{wxPrivateDataObject::GetId}\label{wxprivatedataobjectgetid}
|
|
|
|
|
|
|
|
\constfunc{virtual wxString}{GetId}{\void}
|
|
|
|
|
1999-01-15 08:24:42 -05:00
|
|
|
Returns the ID of the clipboard or DnD data format.
|
|
|
|
|
1999-01-13 09:23:31 -05:00
|
|
|
\membersection{wxPrivateDataObject::SetData}\label{wxprivatedataobjectsetdata}
|
|
|
|
|
1999-01-15 08:24:42 -05:00
|
|
|
\func{virtual void}{SetData}{\param{const char }{*data}, \param{size\_t }{size}}
|
1999-01-13 09:23:31 -05:00
|
|
|
|
1999-01-30 17:54:23 -05:00
|
|
|
Set the data. The data object will make an internal copy.
|
1999-01-13 09:23:31 -05:00
|
|
|
|
1999-01-30 17:54:23 -05:00
|
|
|
\membersection{wxPrivateDataObject::GetSize}\label{wxprivatedataobjectgetsize}
|
1999-01-13 09:23:31 -05:00
|
|
|
|
|
|
|
\constfunc{virtual size\_t}{GetDataSize}{\void}
|
|
|
|
|
1999-01-15 08:24:42 -05:00
|
|
|
Returns the data size.
|
|
|
|
|
1999-01-13 09:23:31 -05:00
|
|
|
\membersection{wxPrivateDataObject::GetData}\label{wxprivatedataobjectgetdata}
|
|
|
|
|
1999-01-15 08:24:42 -05:00
|
|
|
\func{virtual char*}{GetData}{\void}
|
|
|
|
|
1999-01-30 17:54:23 -05:00
|
|
|
Returns a pointer to the data.
|
|
|
|
|
|
|
|
\membersection{wxPrivateDataObject::WriteData}\label{wxprivatedataobjectwritedata}
|
|
|
|
|
|
|
|
\constfunc{virtual void}{WriteData}{\param{void}{*dest} }
|
|
|
|
|
|
|
|
Write the data owned by this class to {\it dest}. By default, this
|
|
|
|
calls \helpref{WriteData}{wxprivatedataobjectwritedata2} with data
|
|
|
|
set using \helpref{SetData}{wxprivatedataobjectsetdata}.
|
|
|
|
This can be overridden to provide data on-demand; in this case
|
|
|
|
\helpref{WriteData(data,dest)}{wxprivatedataobjectwritedata2} (see below) must be called from
|
|
|
|
within the overriding WriteData() method.
|
|
|
|
|
|
|
|
\membersection{wxPrivateDataObject::WriteData}\label{wxprivatedataobjectwritedata2}
|
|
|
|
|
|
|
|
\constfunc{void}{WriteData}{\param{const char* }{data}, \param{void}{*dest} }
|
|
|
|
|
|
|
|
Writes the data {\it data} to {\it dest}. This method must be called
|
|
|
|
from \helpref{WriteData}{wxprivatedataobjectwritedata}.
|
1999-01-13 09:23:31 -05:00
|
|
|
|