]> git.saurik.com Git - wxWidgets.git/blame - include/wx/imaggif.h
added wxStringOutputStream::TellO(); fixed bugs in OnSysWrite()
[wxWidgets.git] / include / wx / imaggif.h
CommitLineData
8f493002
VS
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
65571936 7// Licence: wxWindows licence
8f493002
VS
8/////////////////////////////////////////////////////////////////////////////
9
10#ifndef _WX_IMAGGIF_H_
11#define _WX_IMAGGIF_H_
12
12028905 13#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
8f493002
VS
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
26class WXDLLEXPORT wxGIFHandler : public wxImageHandler
27{
8f493002 28public:
2b5f62a0
VZ
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 }
8f493002
VS
36
37#if wxUSE_STREAMS
7beb59f3
WS
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 );
2b5f62a0 40 virtual bool DoCanRead( wxInputStream& stream );
8f493002 41#endif
2b5f62a0
VZ
42
43private:
44 DECLARE_DYNAMIC_CLASS(wxGIFHandler)
8f493002
VS
45};
46#endif
47
48
49#endif
50 // _WX_IMAGGIF_H_
51