]> git.saurik.com Git - wxWidgets.git/blame - include/wx/os2/xpmhand.h
Add wxInvertMask for OS/2 xpm processing
[wxWidgets.git] / include / wx / os2 / xpmhand.h
CommitLineData
020a1653
DW
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
19class WXDLLEXPORT wxXPMFileHandler: public wxBitmapHandler
20{
21 DECLARE_DYNAMIC_CLASS(wxXPMFileHandler)
22public:
23 inline wxXPMFileHandler(void)
24 {
25 m_sName = "XPM bitmap file";
26 m_sExtension = "xpm";
27 m_lType = wxBITMAP_TYPE_XPM;
28 };
29
30 virtual bool LoadFile( wxBitmap* pBitmap
31 ,const wxString& rsName
32 ,long lFlags
33 ,int nDesiredWidth = -1
34 ,int nDesiredHeight = -1
35 );
36 virtual bool SaveFile( wxBitmap* pBitmap
37 ,const wxString& rsName
38 ,int nType
39 ,const wxPalette* pPalette = NULL
40 );
41}; // end of CLASS wxWPMFileHandler
42
43class WXDLLEXPORT wxXPMDataHandler: public wxBitmapHandler
44{
45 DECLARE_DYNAMIC_CLASS(wxXPMDataHandler)
46public:
47 inline wxXPMDataHandler(void)
48 {
49 m_sName = "XPM bitmap data";
50 m_sExtension = "xpm";
51 m_lType = wxBITMAP_TYPE_XPM_DATA;
52 };
53 virtual bool Create( wxBitmap* pBitmap
54 ,void* pData
55 ,long lFlags
56 ,int lWidth
57 ,int lHeight
58 ,int lDepth = 1
59 );
60}; // end of wxXPMDataHandler
61
62#endif
63 // _WX_XPMHAND_H_
64