1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: XPM bitmap handler
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
13 #pragma interface "xpmhand.h"
16 #ifndef _WX_XPMHAND_H_
17 #define _WX_XPMHAND_H_
19 class WXDLLEXPORT wxXPMFileHandler
: public wxBitmapHandler
21 DECLARE_DYNAMIC_CLASS(wxXPMFileHandler
)
23 inline wxXPMFileHandler(void)
25 m_name
= "XPM bitmap file";
27 m_type
= wxBITMAP_TYPE_XPM
;
30 virtual bool LoadFile(wxBitmap
*bitmap
, const wxString
& name
, long flags
,
31 int desiredWidth
= -1, int desiredHeight
= -1);
32 virtual bool SaveFile(wxBitmap
*bitmap
, const wxString
& name
, int type
, const wxPalette
*palette
= NULL
);
35 class WXDLLEXPORT wxXPMDataHandler
: public wxBitmapHandler
37 DECLARE_DYNAMIC_CLASS(wxXPMDataHandler
)
39 inline wxXPMDataHandler(void)
41 m_name
= "XPM bitmap data";
43 m_type
= wxBITMAP_TYPE_XPM_DATA
;
46 virtual bool Create(wxBitmap
*bitmap
, void *data
, long flags
, int width
, int height
, int depth
= 1);