1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: include/wx/motif/dataobj2.h
3 // Purpose: declaration of standard wxDataObjectSimple-derived classes
4 // Author: Mattia Barbon
7 // Copyright: (c) 2003 Mattia Barbon
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_MOTIF_DATAOBJ2_H_
12 #define _WX_MOTIF_DATAOBJ2_H_
14 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
15 #pragma interface "dataobj.h"
18 // ----------------------------------------------------------------------------
19 // wxBitmapDataObject is a specialization of wxDataObject for bitmaps
20 // ----------------------------------------------------------------------------
22 class WXDLLIMPEXP_CORE wxBitmapDataObject
: public wxBitmapDataObjectBase
27 : wxBitmapDataObjectBase() { }
28 wxBitmapDataObject(const wxBitmap
& bitmap
)
29 : wxBitmapDataObjectBase(bitmap
) { }
31 // implement base class pure virtuals
32 // ----------------------------------
33 virtual size_t GetDataSize() const;
34 virtual bool GetDataHere(void *buf
) const;
35 virtual bool SetData(size_t len
, const void *buf
);
37 // unhide base class virtual functions
38 virtual size_t GetDataSize(const wxDataFormat
& WXUNUSED(format
)) const
39 { return GetDataSize(); }
40 virtual bool GetDataHere(const wxDataFormat
& WXUNUSED(format
),
42 { return GetDataHere(buf
); }
43 virtual bool SetData(const wxDataFormat
& WXUNUSED(format
),
44 size_t len
, const void *buf
)
45 { return SetData(len
, buf
); }
48 #endif // _WX_MOTIF_DATAOBJ2_H_