]> git.saurik.com Git - wxWidgets.git/blob - include/wx/mac/carbon/pnghand.h
Applied patch [ 1181975 ] [wxMSW] Removes all flicker from wxNotebook
[wxWidgets.git] / include / wx / mac / carbon / pnghand.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: pnghand.h
3 // Purpose: PNG 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 #ifndef _WX_PNGHAND_H_
13 #define _WX_PNGHAND_H_
14
15 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16 #pragma interface "pnghand.h"
17 #endif
18
19 #include "wx/defs.h"
20
21 #if wxUSE_LIBPNG
22
23 class WXDLLEXPORT wxPNGFileHandler: public wxBitmapHandler
24 {
25 DECLARE_DYNAMIC_CLASS(wxPNGFileHandler)
26 public:
27 inline wxPNGFileHandler(void)
28 {
29 SetName(wxT("PNG bitmap file"));
30 SetExtension(wxT("bmp"));
31 SetType(wxBITMAP_TYPE_PNG);
32 };
33
34 virtual bool LoadFile(wxBitmap *bitmap, const wxString& name, long flags,
35 int desiredWidth, int desiredHeight);
36 virtual bool SaveFile(const wxBitmap *bitmap, const wxString& name, int type, const wxPalette *palette = NULL);
37 };
38
39 #endif //wxUSE_LIBPNG
40
41 #endif
42 // _WX_PNGHAND_H_
43