]>
Commit | Line | Data |
---|---|---|
dd38c875 | 1 | /////////////////////////////////////////////////////////////////////////////// |
925f7740 | 2 | // Name: wx/motif/dataobj2.h |
dd38c875 MB |
3 | // Purpose: declaration of standard wxDataObjectSimple-derived classes |
4 | // Author: Mattia Barbon | |
5 | // Created: 27.04.03 | |
dd38c875 | 6 | // Copyright: (c) 2003 Mattia Barbon |
65571936 | 7 | // Licence: wxWindows licence |
dd38c875 MB |
8 | /////////////////////////////////////////////////////////////////////////////// |
9 | ||
10 | #ifndef _WX_MOTIF_DATAOBJ2_H_ | |
11 | #define _WX_MOTIF_DATAOBJ2_H_ | |
12 | ||
dd38c875 MB |
13 | // ---------------------------------------------------------------------------- |
14 | // wxBitmapDataObject is a specialization of wxDataObject for bitmaps | |
15 | // ---------------------------------------------------------------------------- | |
16 | ||
94c7b088 | 17 | class WXDLLIMPEXP_CORE wxBitmapDataObject : public wxBitmapDataObjectBase |
dd38c875 MB |
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); | |
3f62badb VZ |
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); } | |
dd38c875 MB |
41 | }; |
42 | ||
43 | #endif // _WX_MOTIF_DATAOBJ2_H_ |