X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/eb91c0be88784698015321e7e2f9c1cbc408e032..d45d30c8682f858321600e2958167d7ef54ebeb5:/docs/latex/wx/dobjsmpl.tex diff --git a/docs/latex/wx/dobjsmpl.tex b/docs/latex/wx/dobjsmpl.tex index d874bde9dd..8a6c747ede 100644 --- a/docs/latex/wx/dobjsmpl.tex +++ b/docs/latex/wx/dobjsmpl.tex @@ -11,7 +11,7 @@ \section{\class{wxDataObjectSimple}}\label{wxdataobjectsimple} -This is the simplest possible implementation of +This is the simplest possible implementation of \helpref{wxDataObject}{wxdataobject} class. The data object of (a class derived from) this class only supports one format, so the number of virtual functions to be implemented is reduced. @@ -19,10 +19,15 @@ to be implemented is reduced. Notice that this is still an abstract base class and cannot be used but should be derived from. +\pythonnote{If you wish to create a derived wxDataObjectSimple class in +wxPython you should derive the class from wxPyDataObjectSimple +in order to get Python-aware capabilities for the various virtual +methods.} + \wxheading{Virtual functions to override} -The objects supporting rendering the data must override -\helpref{GetDataSize}{wxdataobjectsimplegetdatasize} and +The objects supporting rendering the data must override +\helpref{GetDataSize}{wxdataobjectsimplegetdatasize} and \helpref{GetDataHere}{wxdataobjectsimplegetdatahere} while the objects which may be set must override \helpref{SetData}{wxdataobjectsimplesetdata}. Of course, the objects supporting both operations must override all threee @@ -38,10 +43,10 @@ methods. \wxheading{See also} -\helpref{Clipboard and drag and drop overview}{wxclipboardonfigoverview}, -\helpref{DnD sample}{samplednd}, -\helpref{wxFileDataObject}{wxfiledataobject}, -\helpref{wxTextDataObject}{wxtextdataobject}, +\helpref{Clipboard and drag and drop overview}{wxdndoverview}, +\helpref{DnD sample}{samplednd}, +\helpref{wxFileDataObject}{wxfiledataobject}, +\helpref{wxTextDataObject}{wxtextdataobject}, \helpref{wxBitmapDataObject}{wxbitmapdataobject} \latexignore{\rtfignore{\wxheading{Members}}} @@ -80,6 +85,10 @@ object supports rendering its data. Copy the data to the buffer, return TRUE on success. Must be implemented in the derived class if the object supports rendering its data. +\pythonnote{When implementing this method in wxPython, no additional +parameters are required and the data should be returned from the +method as a string.} + \membersection{wxDataObjectSimple::SetData}\label{wxdataobjectsimplesetdata} \func{virtual bool}{SetData}{\param{size\_t }{len}, \param{const void }{*buf}} @@ -87,4 +96,7 @@ derived class if the object supports rendering its data. Copy the data from the buffer, return TRUE on success. Must be implemented in the derived class if the object supports setting its data. +\pythonnote{When implementing this method in wxPython, the data comes +as a single string parameter rather than the two shown here.} +