2003-05-07 13:24:11 -04:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
2006-07-25 10:31:55 -04:00
|
|
|
// Name: wx/motif/dataobj2.h
|
2003-05-07 13:24:11 -04:00
|
|
|
// Purpose: declaration of standard wxDataObjectSimple-derived classes
|
|
|
|
// Author: Mattia Barbon
|
|
|
|
// Created: 27.04.03
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) 2003 Mattia Barbon
|
2004-05-23 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
2003-05-07 13:24:11 -04:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_MOTIF_DATAOBJ2_H_
|
|
|
|
#define _WX_MOTIF_DATAOBJ2_H_
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// wxBitmapDataObject is a specialization of wxDataObject for bitmaps
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
2005-08-02 20:53:09 -04:00
|
|
|
class WXDLLIMPEXP_CORE wxBitmapDataObject : public wxBitmapDataObjectBase
|
2003-05-07 13:24:11 -04:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
// ctors
|
|
|
|
wxBitmapDataObject()
|
|
|
|
: wxBitmapDataObjectBase() { }
|
|
|
|
wxBitmapDataObject(const wxBitmap& bitmap)
|
|
|
|
: wxBitmapDataObjectBase(bitmap) { }
|
|
|
|
|
|
|
|
// implement base class pure virtuals
|
|
|
|
// ----------------------------------
|
|
|
|
virtual size_t GetDataSize() const;
|
|
|
|
virtual bool GetDataHere(void *buf) const;
|
|
|
|
virtual bool SetData(size_t len, const void *buf);
|
2005-09-13 12:37:11 -04:00
|
|
|
|
|
|
|
// unhide base class virtual functions
|
|
|
|
virtual size_t GetDataSize(const wxDataFormat& WXUNUSED(format)) const
|
|
|
|
{ return GetDataSize(); }
|
|
|
|
virtual bool GetDataHere(const wxDataFormat& WXUNUSED(format),
|
|
|
|
void *buf) const
|
|
|
|
{ return GetDataHere(buf); }
|
|
|
|
virtual bool SetData(const wxDataFormat& WXUNUSED(format),
|
|
|
|
size_t len, const void *buf)
|
|
|
|
{ return SetData(len, buf); }
|
2003-05-07 13:24:11 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _WX_MOTIF_DATAOBJ2_H_
|