X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/661dc384df649f673d06fa1038e343cf263932af..f03ec224dcde69ee0b30f5baecc4b5e5466b02c1:/include/wx/gifdecod.h?ds=sidebyside diff --git a/include/wx/gifdecod.h b/include/wx/gifdecod.h index 30fa11cfed..922ac29777 100644 --- a/include/wx/gifdecod.h +++ b/include/wx/gifdecod.h @@ -2,9 +2,9 @@ // Name: gifdecod.h // Purpose: wxGIFDecoder, GIF reader for wxImage and wxAnimation // Author: Guillermo Rodriguez Garcia -// Version: 3.0 -// Last rev: 1999/08/10 -// Copyright: (c) Guillermo Rodriguez Garcia +// Version: 3.02 +// CVS-ID: $Id$ +// Copyright: (c) 1999 Guillermo Rodriguez Garcia // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -17,7 +17,8 @@ #include "wx/setup.h" -#if wxUSE_STREAMS +#if wxUSE_STREAMS && wxUSE_GIF + #include "wx/stream.h" #include "wx/image.h" @@ -29,7 +30,7 @@ typedef struct _IMAGEN unsigned int left; /* x coord (in logical screen) */ unsigned int top; /* y coord (in logical screen) */ int transparent; /* transparent color (-1 = none) */ - int disposal; /* disposal method */ + int disposal; /* disposal method (-1 = unspecified) */ long delay; /* delay in ms (-1 = unused) */ unsigned char *p; /* bitmap */ unsigned char *pal; /* palette */ @@ -46,12 +47,10 @@ typedef struct _IMAGEN /* error codes */ #define E_OK 0 /* everything was OK */ -#define E_ARCHIVO -1 /* error opening file */ -#define E_FORMATO -2 /* error in gif header */ -#define E_MEMORIA -3 /* error allocating memory */ - +#define E_FORMATO 1 /* error in gif header */ +#define E_MEMORIA 2 /* error allocating memory */ -class wxGIFDecoder +class WXDLLEXPORT wxGIFDecoder { private: /* logical screen */ @@ -82,6 +81,7 @@ public: // constructor, destructor, etc. wxGIFDecoder(wxInputStream *s, bool anim = FALSE); ~wxGIFDecoder(); + bool CanRead(); int ReadGIF(); void Destroy(); @@ -116,6 +116,6 @@ public: }; -#endif // wxUSE_STREAM +#endif // wxUSE_STREAM && wxUSE_GIF #endif // _WX_GIFDECOD_H