Source cleaning: whitespaces, tabs, -1/wxDefaultCoord/wxNOT_FOUND, TRUE/true, FALSE...
[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 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
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 public:
29 inline wxGIFHandler()
30 {
31 m_name = wxT("GIF file");
32 m_extension = wxT("gif");
33 m_type = wxBITMAP_TYPE_GIF;
34 m_mime = wxT("image/gif");
35 }
36
37 #if wxUSE_STREAMS
38 virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=true, int index=-1 );
39 virtual bool SaveFile( wxImage *image, wxOutputStream& stream, bool verbose=true );
40 virtual bool DoCanRead( wxInputStream& stream );
41 #endif
42
43 private:
44 DECLARE_DYNAMIC_CLASS(wxGIFHandler)
45 };
46 #endif
47
48
49 #endif
50 // _WX_IMAGGIF_H_
51