]> git.saurik.com Git - wxWidgets.git/blob - include/wx/imaggif.h
SCROLLWIN instead of SCROLL again
[wxWidgets.git] / include / wx / imaggif.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: imaggif.h
3 // Purpose: wxImage GIF handler
4 // Author: Vaclav Slavik & Guillermo Rodriguez Garcia
5 // RCS-ID: $Id$
6 // Copyright: (c) Guillermo Rodriguez Garcia
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10 #ifndef _WX_IMAGGIF_H_
11 #define _WX_IMAGGIF_H_
12
13 #ifdef __GNUG__
14 #pragma interface "imaggif.h"
15 #endif
16
17 #include "wx/image.h"
18
19
20 //-----------------------------------------------------------------------------
21 // wxGIFHandler
22 //-----------------------------------------------------------------------------
23
24 #if wxUSE_GIF
25
26 class WXDLLEXPORT wxGIFHandler : public wxImageHandler
27 {
28 DECLARE_DYNAMIC_CLASS(wxGIFHandler)
29
30 public:
31
32 inline wxGIFHandler()
33 {
34 m_name = "GIF file";
35 m_extension = "gif";
36 m_type = wxBITMAP_TYPE_GIF;
37 m_mime = "image/gif";
38 };
39
40 #if wxUSE_STREAMS
41 virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=TRUE, int index=0 );
42 virtual bool SaveFile( wxImage *image, wxOutputStream& stream, bool verbose=TRUE );
43 virtual bool DoCanRead( wxInputStream& stream );
44 #endif
45 };
46 #endif
47
48
49 #endif
50 // _WX_IMAGGIF_H_
51