]> git.saurik.com Git - wxWidgets.git/blame - src/gtk1/dataobj.cpp
For MSW, scan line boundary aligned, and >2MB case enabled
[wxWidgets.git] / src / gtk1 / dataobj.cpp
CommitLineData
8b53e5a2
RR
1///////////////////////////////////////////////////////////////////////////////
2// Name: dataobj.cpp
3// Purpose: wxDataObject class
4// Author: Robert Roebling
5// Id: $Id$
6// Copyright: (c) 1998 Robert Roebling
7// Licence: wxWindows licence
8///////////////////////////////////////////////////////////////////////////////
9
10#ifdef __GNUG__
11#pragma implementation "dataobj.h"
12#endif
13
14#include "wx/dataobj.h"
15
16//-------------------------------------------------------------------------
17// wxDataObject
18//-------------------------------------------------------------------------
19
20IMPLEMENT_ABSTRACT_CLASS( wxDataObject, wxObject )
21
22// ----------------------------------------------------------------------------
23// wxTextDataObject
24// ----------------------------------------------------------------------------
25
26IMPLEMENT_DYNAMIC_CLASS( wxTextDataObject, wxDataObject )
27
28// ----------------------------------------------------------------------------
29// wxFileDataObject
30// ----------------------------------------------------------------------------
31
32IMPLEMENT_DYNAMIC_CLASS( wxFileDataObject, wxDataObject )
33
34// ----------------------------------------------------------------------------
35// wxBitmapDataObject
36// ----------------------------------------------------------------------------
37
38IMPLEMENT_DYNAMIC_CLASS( wxBitmapDataObject, wxDataObject )
39
40// ----------------------------------------------------------------------------
41// wxPrivateDataObject
42// ----------------------------------------------------------------------------
43
44IMPLEMENT_DYNAMIC_CLASS( wxPrivateDataObject, wxDataObject )
45
46void wxPrivateDataObject::SetData( const char *data, size_t size )
47{
48 m_size = size;
49
50 if (m_data) delete[] m_data;
51
52 m_data = new char[size];
53
54 memcpy( m_data, data, size );
55}
56