]>
Commit | Line | Data |
---|---|---|
1 | /////////////////////////////////////////////////////////////////////////////// | |
2 | // Name: wx/motif/dataobj2.h | |
3 | // Purpose: declaration of standard wxDataObjectSimple-derived classes | |
4 | // Author: Mattia Barbon | |
5 | // Created: 27.04.03 | |
6 | // Copyright: (c) 2003 Mattia Barbon | |
7 | // Licence: wxWindows licence | |
8 | /////////////////////////////////////////////////////////////////////////////// | |
9 | ||
10 | #ifndef _WX_MOTIF_DATAOBJ2_H_ | |
11 | #define _WX_MOTIF_DATAOBJ2_H_ | |
12 | ||
13 | // ---------------------------------------------------------------------------- | |
14 | // wxBitmapDataObject is a specialization of wxDataObject for bitmaps | |
15 | // ---------------------------------------------------------------------------- | |
16 | ||
17 | class WXDLLIMPEXP_CORE wxBitmapDataObject : public wxBitmapDataObjectBase | |
18 | { | |
19 | public: | |
20 | // ctors | |
21 | wxBitmapDataObject() | |
22 | : wxBitmapDataObjectBase() { } | |
23 | wxBitmapDataObject(const wxBitmap& bitmap) | |
24 | : wxBitmapDataObjectBase(bitmap) { } | |
25 | ||
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); | |
31 | ||
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), | |
36 | void *buf) const | |
37 | { return GetDataHere(buf); } | |
38 | virtual bool SetData(const wxDataFormat& WXUNUSED(format), | |
39 | size_t len, const void *buf) | |
40 | { return SetData(len, buf); } | |
41 | }; | |
42 | ||
43 | #endif // _WX_MOTIF_DATAOBJ2_H_ |