]> git.saurik.com Git - wxWidgets.git/blame - include/wx/mac/classic/pnghand.h
compilation fix: wxGenericCollapsiblePane needs wxButton and wxStaticLine
[wxWidgets.git] / include / wx / mac / classic / pnghand.h
CommitLineData
52479aef
SC
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
65571936 9// Licence: wxWindows licence
52479aef
SC
10/////////////////////////////////////////////////////////////////////////////
11
52479aef
SC
12#ifndef _WX_PNGHAND_H_
13#define _WX_PNGHAND_H_
14
15class WXDLLEXPORT wxPNGFileHandler: public wxBitmapHandler
16{
17 DECLARE_DYNAMIC_CLASS(wxPNGFileHandler)
18public:
19 inline wxPNGFileHandler(void)
20 {
21 m_name = wxT("PNG bitmap file");
22 m_extension = wxT("bmp");
23 m_type = wxBITMAP_TYPE_PNG;
24 };
25
26 virtual bool LoadFile(wxBitmap *bitmap, const wxString& name, long flags,
27 int desiredWidth, int desiredHeight);
28 virtual bool SaveFile(const wxBitmap *bitmap, const wxString& name, int type, const wxPalette *palette = NULL);
29};
30
31#endif
32 // _WX_PNGHAND_H_
33