]>
Commit | Line | Data |
---|---|---|
2fd284a4 JS |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: xpmhand.h | |
3 | // Purpose: XPM bitmap handler | |
4 | // Author: Julian Smart | |
5 | // Modified by: | |
6 | // Created: 04/01/98 | |
7 | // RCS-ID: $Id$ | |
8 | // Copyright: (c) Julian Smart | |
9 | // Licence: wxWindows licence | |
10 | ///////////////////////////////////////////////////////////////////////////// | |
11 | ||
12 | #ifdef __GNUG__ | |
13 | #pragma interface "xpmhand.h" | |
14 | #endif | |
15 | ||
16 | #ifndef _WX_XPMHAND_H_ | |
17 | #define _WX_XPMHAND_H_ | |
18 | ||
19 | class WXDLLEXPORT wxXPMFileHandler: public wxBitmapHandler | |
20 | { | |
21 | DECLARE_DYNAMIC_CLASS(wxXPMFileHandler) | |
22 | public: | |
23 | inline wxXPMFileHandler(void) | |
24 | { | |
25 | m_name = "XPM bitmap file"; | |
26 | m_extension = "xpm"; | |
27 | m_type = wxBITMAP_TYPE_XPM; | |
28 | }; | |
29 | ||
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); | |
33 | }; | |
34 | ||
35 | class WXDLLEXPORT wxXPMDataHandler: public wxBitmapHandler | |
36 | { | |
37 | DECLARE_DYNAMIC_CLASS(wxXPMDataHandler) | |
38 | public: | |
39 | inline wxXPMDataHandler(void) | |
40 | { | |
41 | m_name = "XPM bitmap data"; | |
42 | m_extension = "xpm"; | |
43 | m_type = wxBITMAP_TYPE_XPM_DATA; | |
44 | }; | |
45 | ||
46 | virtual bool Create(wxBitmap *bitmap, void *data, long flags, int width, int height, int depth = 1); | |
47 | }; | |
48 | ||
49 | #endif | |
50 | // _WX_XPMHAND_H_ | |
51 | ||
1f381068 | 52 | |
2c4c6c4a | 53 | |
44866302 | 54 | |
b28c70cf | 55 | |
46522c79 | 56 | |
405c80ff | 57 | |
0c83d66b | 58 | |
0f65af99 | 59 | |
2dfe62c8 | 60 | |
d352e850 | 61 | |
b080e420 | 62 | |
9c9f40d0 | 63 | |
71ba5d26 | 64 | |
81a4f846 | 65 |