X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7f24fdbfeae21875fe73f5aa69aede354baed29b..2e9f62dafb75dc5baa3800af456d1b0248d85357:/docs/latex/wx/dobjsmpl.tex diff --git a/docs/latex/wx/dobjsmpl.tex b/docs/latex/wx/dobjsmpl.tex index 3770c66ad0..6e9fe1d7d6 100644 --- a/docs/latex/wx/dobjsmpl.tex +++ b/docs/latex/wx/dobjsmpl.tex @@ -6,12 +6,12 @@ %% Created: 02.11.99 %% RCS-ID: $Id$ %% Copyright: (c) Vadim Zeitlin -%% Licence: wxWindows licence +%% License: wxWindows license %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \section{\class{wxDataObjectSimple}}\label{wxdataobjectsimple} -This is the simplest possible implementation of +This is the simplest possible implementation of the \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,6 +19,11 @@ 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 @@ -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,6 @@ 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.}