]> git.saurik.com Git - wxWidgets.git/blame - include/wx/mac/carbon/pnghand.h
On screens with restricted space, it's useful to be able to add controls
[wxWidgets.git] / include / wx / mac / carbon / pnghand.h
CommitLineData
8cf73271
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
8cf73271
SC
10/////////////////////////////////////////////////////////////////////////////
11
a76fd371
RN
12#ifndef _WX_PNGHAND_H_
13#define _WX_PNGHAND_H_
14
a76fd371
RN
15#include "wx/defs.h"
16
96bbbe1b 17#if wxUSE_LIBPNG
8cf73271
SC
18
19class WXDLLEXPORT wxPNGFileHandler: public wxBitmapHandler
20{
21 DECLARE_DYNAMIC_CLASS(wxPNGFileHandler)
22public:
23 inline wxPNGFileHandler(void)
24 {
19d360ad
SC
25 SetName(wxT("PNG bitmap file"));
26 SetExtension(wxT("bmp"));
27 SetType(wxBITMAP_TYPE_PNG);
8cf73271
SC
28 };
29
30 virtual bool LoadFile(wxBitmap *bitmap, const wxString& name, long flags,
31 int desiredWidth, int desiredHeight);
32 virtual bool SaveFile(const wxBitmap *bitmap, const wxString& name, int type, const wxPalette *palette = NULL);
33};
34
a76fd371
RN
35#endif //wxUSE_LIBPNG
36
8cf73271
SC
37#endif
38 // _WX_PNGHAND_H_
39