.\" This is a wxWidgets manpage page generated from the XML docs .TH wxDataObjectSimple 3wx 2005-02-15 "wxWidgets" "wxWidgets class documentation" .SH NAME wxDataObjectSimple \- .SH DESCRIPTION This is the simplest possible implementation of the 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. Notice that this is still an abstract base class and cannot be used but should be derived from. .SH "PARENTS" wxDataObject .SH "INCLUDE FILES" wx/dataobj.h .SH MEMBERS .SS wxDataObjectSimple (const wxDataFormat& format = wxFormatInvalid) Constructor accepts the supported format (none by default) which may also be set later with SetFormat . .SS const wxDataFormat& GetFormat () Returns the (one and only one) format supported by this object. It is supposed that the format is supported in both directions. .SS void SetFormat (const wxDataFormat& format) Sets the supported format. .SS virtual size_t GetDataSize () Gets the size of our data. Must be implemented in the derived class if the object supports rendering its data. .SS virtual bool GetDataHere (void *buf) Copy the data to the buffer, return true on success. Must be implemented in the derived class if the object supports rendering its data. .SS virtual bool SetData (size_t lenconst void *buf) Copy the data from the buffer, return true on success. Must be implemented in the derived class if the object supports setting its data. .SH "SEE ALSO" wxDataObject Clipboard and drag and drop overview DnD sample wxFileDataObject wxTextDataObject wxBitmapDataObject .SH "AUTHORS" Documentation content by Julian Smart, Robert Roebling, Vadim Zeitlin, Robin Dunn, et al Conversion to manpage format by Arnout Engelen (http://bzzt.net), bugreports welcome.