]> git.saurik.com Git - wxWidgets.git/blob - include/wx/imagxpm.h
don't use -single_module together with -bundle under Darwin (ld gives an error for...
[wxWidgets.git] / include / wx / imagxpm.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: imaggif.h
3 // Purpose: wxImage XPM handler
4 // Author: Vaclav Slavik
5 // RCS-ID: $Id$
6 // Copyright: (c) 2001 Vaclav Slavik
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10 #ifndef _WX_IMAGXPM_H_
11 #define _WX_IMAGXPM_H_
12
13 #include "wx/image.h"
14
15
16 //-----------------------------------------------------------------------------
17 // wxXPMHandler
18 //-----------------------------------------------------------------------------
19
20 class WXDLLEXPORT wxXPMHandler : public wxImageHandler
21 {
22 public:
23 inline wxXPMHandler()
24 {
25 m_name = wxT("XPM file");
26 m_extension = wxT("xpm");
27 m_type = wxBITMAP_TYPE_XPM;
28 m_mime = wxT("image/xpm");
29 }
30
31 #if wxUSE_STREAMS
32 virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=true, int index=-1 );
33 virtual bool SaveFile( wxImage *image, wxOutputStream& stream, bool verbose=true );
34 virtual bool DoCanRead( wxInputStream& stream );
35 #endif
36
37 private:
38 DECLARE_DYNAMIC_CLASS(wxXPMHandler)
39 };
40
41
42 #endif
43 // _WX_IMAGXPM_H_
44