home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / wxos2240.zip / wxWindows-2.4.0 / include / wx / imaggif.h < prev    next >
C/C++ Source or Header  |  2002-10-24  |  1KB  |  52 lines

  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name:        imaggif.h
  3. // Purpose:     wxImage GIF handler
  4. // Author:      Vaclav Slavik & Guillermo Rodriguez Garcia
  5. // RCS-ID:      $Id: imaggif.h,v 1.6.2.1 2002/10/23 17:32:01 RR Exp $
  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(__APPLE__)
  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.  
  52.