1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/motif/dataobj2.h
3 // Purpose: declaration of standard wxDataObjectSimple-derived classes
4 // Author: Mattia Barbon
6 // Copyright: (c) 2003 Mattia Barbon
7 // Licence: wxWindows licence
8 ///////////////////////////////////////////////////////////////////////////////
10 #ifndef _WX_MOTIF_DATAOBJ2_H_
11 #define _WX_MOTIF_DATAOBJ2_H_
13 // ----------------------------------------------------------------------------
14 // wxBitmapDataObject is a specialization of wxDataObject for bitmaps
15 // ----------------------------------------------------------------------------
17 class WXDLLIMPEXP_CORE wxBitmapDataObject
: public wxBitmapDataObjectBase
22 : wxBitmapDataObjectBase() { }
23 wxBitmapDataObject(const wxBitmap
& bitmap
)
24 : wxBitmapDataObjectBase(bitmap
) { }
26 // implement base class pure virtuals
27 // ----------------------------------
28 virtual size_t GetDataSize() const;
29 virtual bool GetDataHere(void *buf
) const;
30 virtual bool SetData(size_t len
, const void *buf
);
32 // unhide base class virtual functions
33 virtual size_t GetDataSize(const wxDataFormat
& WXUNUSED(format
)) const
34 { return GetDataSize(); }
35 virtual bool GetDataHere(const wxDataFormat
& WXUNUSED(format
),
37 { return GetDataHere(buf
); }
38 virtual bool SetData(const wxDataFormat
& WXUNUSED(format
),
39 size_t len
, const void *buf
)
40 { return SetData(len
, buf
); }
43 #endif // _WX_MOTIF_DATAOBJ2_H_