]>
git.saurik.com Git - wxWidgets.git/blob - src/gtk/dataobj.cpp
1 ///////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxDataObject class
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 ///////////////////////////////////////////////////////////////////////////////
11 #pragma implementation "dataobj.h"
14 #include "wx/dataobj.h"
16 //-------------------------------------------------------------------------
18 //-------------------------------------------------------------------------
20 IMPLEMENT_ABSTRACT_CLASS( wxDataObject
, wxObject
)
22 // ----------------------------------------------------------------------------
24 // ----------------------------------------------------------------------------
26 IMPLEMENT_DYNAMIC_CLASS( wxTextDataObject
, wxDataObject
)
28 // ----------------------------------------------------------------------------
30 // ----------------------------------------------------------------------------
32 IMPLEMENT_DYNAMIC_CLASS( wxFileDataObject
, wxDataObject
)
34 // ----------------------------------------------------------------------------
36 // ----------------------------------------------------------------------------
38 IMPLEMENT_DYNAMIC_CLASS( wxBitmapDataObject
, wxDataObject
)
40 // ----------------------------------------------------------------------------
41 // wxPrivateDataObject
42 // ----------------------------------------------------------------------------
44 IMPLEMENT_DYNAMIC_CLASS( wxPrivateDataObject
, wxDataObject
)
46 void wxPrivateDataObject::SetData( const char *data
, size_t size
)
50 if (m_data
) delete[] m_data
;
52 m_data
= new char[size
];
54 memcpy( m_data
, data
, size
);