]> git.saurik.com Git - wxWidgets.git/blame - include/wx/osx/pnghand.h
wxMessageBox off the main thread lost result code.
[wxWidgets.git] / include / wx / osx / pnghand.h
CommitLineData
6762286d 1/////////////////////////////////////////////////////////////////////////////
80fdcdb9 2// Name: wx/osx/pnghand.h
6762286d
SC
3// Purpose: PNG bitmap handler
4// Author: Julian Smart
03647350 5// Modified by:
6762286d 6// Created: 04/01/98
6762286d
SC
7// Copyright: (c) Julian Smart
8// Licence: wxWindows licence
9/////////////////////////////////////////////////////////////////////////////
10
11#ifndef _WX_PNGHAND_H_
12#define _WX_PNGHAND_H_
13
14#include "wx/defs.h"
15
16#if wxUSE_LIBPNG
17
18class WXDLLIMPEXP_CORE wxPNGFileHandler: public wxBitmapHandler
19{
20 DECLARE_DYNAMIC_CLASS(wxPNGFileHandler)
21public:
22 inline wxPNGFileHandler(void)
23 {
24 SetName(wxT("PNG bitmap file"));
25 SetExtension(wxT("bmp"));
26 SetType(wxBITMAP_TYPE_PNG);
6dd0883d 27 }
6762286d
SC
28
29 virtual bool LoadFile(wxBitmap *bitmap, const wxString& name, long flags,
30 int desiredWidth, int desiredHeight);
31 virtual bool SaveFile(const wxBitmap *bitmap, const wxString& name, int type, const wxPalette *palette = NULL);
32};
33
34#endif //wxUSE_LIBPNG
35
5c6eb3a8 36#endif
6762286d
SC
37 // _WX_PNGHAND_H_
38